Step 1. In your Mac computer. Use terminal of course.
$ ssh-keygen
Some questions will be provided. Just press Enter key.
Step 2. Copy ~/.ssh/id_rsa.pub to Linux
$ cat ~/.ssh/id_rsa.pub | ssh user_id@your.linux.machine "umask 077; mkdir -p .ssh ; cat >> .ssh/authorized_keys"
You will be asked to provide password for user_id@your.linux.machine.
Step 3. ssh login to Linux machine without password.
$ ssh your.linux.machine
Done.
댓글 없음:
댓글 쓰기