Created
January 26, 2016 16:02
-
-
Save megastef/a38bd70dc5e09180e600 to your computer and use it in GitHub Desktop.
Key change on uberspace.de - using a separate identity
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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