Using SSH without a password

Suppose you have two machines, the local one (you) and the remote one (remote.com).

To ssh from the local to the server without needing a password, perform these steps:

  1. ssh-keygen -t rsa
    (don't use a passphrase. Just hit return twice)
  2. scp ~/.ssh/id_rsa.pub remote.com:
  3. On the remote machine (remote.com) cat ~/id_rsa.pub >> ~/.ssh/authorized_keys
About these ads

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

Follow

Get every new post delivered to your Inbox.

%d bloggers like this: