Skip to content

Instantly share code, notes, and snippets.

@haio
Created December 26, 2012 03:01
Show Gist options
  • Save haio/4377547 to your computer and use it in GitHub Desktop.
Save haio/4377547 to your computer and use it in GitHub Desktop.
login remote sever via SSH
# ssh -p 22 root@address
## First
if the remote sever don't have your public key,you will nedd to login by put the password,the whole process should be encrypt but you may connect to the server that you are not willing to.
##Second
the second way is more safely, you need put your puiblic key in .ssh/authorized_keys of remote server,by this you just type "ssh root@address" in your commandline, it's very simple and safe.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment