Sungju's Slow Life

Personal journal


passwordless login via ssh in Mac

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

Please log in using one of these methods to post your comment:

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 )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.

About Me

A software engineer who loves any technologies that makes life easier. That’s why I love Linux and Mac at the same time.

Newsletter

%d bloggers like this: