You can access your remote ssh server without password by put your ssh key in remote.
Step 1: generate a key if you don’t have already
$ ssh-keygen -t rsa
Use the default for all paths.
http://pagead2.googlesyndication.com/pagead/show_ads.js
Step 2: Copy the file to the remote server that you want to access. As Mac doesn’t have ssh-copy-id, you should it manually.
$ cat ~/.ssh/id_rsa.pub | ssh @ 'cat >> ~/.ssh/authorized_keys'
That’s it. Now you can access the remote without put password.
Leave a Reply