ssh/sftp using private key
Got password-less ssh/sftp enabled on the server, wanted to quick login using the given private key w/o having to add it to id_rsa.
Here are the commands to do that.
SSH :
ssh -i /path/to/private/key user@hostname
SFTP:
sftp -oIdentityFile=/path/to/private/key user@hostname
Cheers!
Written by Pavan
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Linux
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#