Skip to content

Instantly share code, notes, and snippets.

@megastef
Created January 26, 2016 16:02
Show Gist options
  • Save megastef/a38bd70dc5e09180e600 to your computer and use it in GitHub Desktop.
Save megastef/a38bd70dc5e09180e600 to your computer and use it in GitHub Desktop.
Key change on uberspace.de - using a separate identity
export UUSER=seti123
export UHOST=aldebaran.uberspace.de
cd ~/.ssh
ssh-keygen -t rsa -b 4096 -f uberspace_rsa4096
cat ~/.ssh/uberspace_rsa4096.pub | ssh -p 4022 $UUSER@$UHOST 'cat >> .ssh/authorized_keys'
cat <<EOF >> ~/.ssh/config
Host $UHOST
Port 22
IdentityFile ~/.ssh/uberspace_rsa4096
EOF
ssh $UUSER@$UHOST
:)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment