SSH Linux login without password

Below is probably the quickest way to achieve this

 

1. Generate SSH key (if you don’t have one already)

ssh-keygen -t rsa

 

2. Use SSH to create a remote directory ~/.ssh

ssh username@dev.company.com mkdir -p .ssh

 

3. Append your public key to .ssh/authorized_keys on remote host

cat ~/.ssh/id_rsa.pub | ssh username@dev.company.com 'cat >> .ssh/authorized_keys'

 

 

That’s it!

Advertisements

Tagged:

One thought on “SSH Linux login without password

  1. jynmalcolm January 1, 2017 at 6:38 am Reply

    It’s truly a great and useful piece of information. I’m satisfied that you simply shared this useful info with us. Please stay us up to date like this. Thank you for sharing.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: