sshの公開鍵をリモートホストに簡単に持っていく方法
Clouder::Blogger: sshの公開鍵をリモートホストに簡単に持っていく方法
>ssh-copy-id ってコマンドを使うとさくっとできるみたい。
おおおおおぉ。しらんかった!!
ssh-copy-id -i .ssh/id_rsa.pub hostname
After being prompted to enter your password for the last time, SSH will say:
Now try logging into the machine, with "ssh 'hostname'", and check in:
.ssh/authorized_keys
to make sure we haven't added extra keys that you weren't expecting.
Try it. No more passwords!