いつもコマンド名忘れて手でやってたけどいい加減辞める。

% brew install ssh-copy-id
% ssh-copy-id root@198.199.104.49
/usr/local/bin/ssh-copy-id: INFO: attempting to log in with the new key(s), to filter out any that are already installed
/usr/local/bin/ssh-copy-id: INFO: 1 key(s) remain to be installed -- if you are prompted now it is to install the new keys
root@198.199.104.49's password: 

Number of key(s) added:        1

Now try logging into the machine, with:   "ssh 'root@198.199.104.49'"
and check to make sure that only the key(s) you wanted were added.

% ssh root@198.199.104.49
Linux fjord 3.2.0-4-amd64 #1 SMP Debian 3.2.41-2+deb7u2 x86_64

The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.

Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
Last login: Mon Jul 22 09:15:47 2013 from 36-2-206-69.tokyo.ap.gmo-isp.jp
root@fjord:~#

Yay!

Comments


Option