ssh-copy-idで簡単にSSHの鍵を通す

パスワードなしでSSHログインしたいよ!って時に
公開鍵をコピーして、authorized_keysに追記して、パーミション変えてハァハァ、
ってやってませんか?

ssh-copy-idコマンドで1発です!

[mikeda@cent ~]$ ssh-keygen -t rsa
[mikeda@cent ~]$ ssh-copy-id -i .ssh/id_rsa.pub test01
15
mikeda@test01's password:
Now try logging into the machine, with "ssh 'test01'", and check in:

  .ssh/authorized_keys

to make sure we haven't added extra keys that you weren't expecting.

[mikeda@cent ~]$ ssh test01
Last login: Thu Jun 24 05:14:35 2010 from 192.168.0.10
[mikeda@test01 ~]$