root@local:~# ssh-keygenGenerating public/private rsa key pair. Enter file in which to save the key (/root/.ssh/id_rsa): Created directory '/root/.ssh'. Enter passphrase (empty for no passphrase): Enter same passphrase again: Your identification has been saved in /root/.ssh/id_rsa. Your public key has been saved in /root/.ssh/id_rsa.pub. The key fingerprint is: de:4f:c6:49:60:45:92:07:18:df:f1:a5:50:dc:ef:f4 root@local The key's randomart image is: +--[ RSA 2048]----+ | .oo+=o...| | ...+.+.o.| | +.. o .| | . . o| | S . o.| | . . o . E| | . . = | | + | | . | +-----------------+ root@local:~# ssh-copy-id 192.168.0.1 The authenticity of host '192.168.0.1 (192.168.0.1)' can't be established. RSA key fingerprint is 8b:96:46:5c:90:c9:eb:de:5e:be:76:ec:8b:ff:bc:e2. Are you sure you want to continue connecting (yes/no)? yes Warning: Permanently added '192.168.0.1' (RSA) to the list of known hosts. root@192.168.0.1's password: Now try logging into the machine, with "ssh '192.168.0.1'", and check in: .ssh/authorized_keys to make sure we haven't added extra keys that you weren't expecting. root@local:~# ssh 192.168.0.1 Linux debian 2.6.32-5-amd64 #1 SMP Wed May 18 23:13:22 UTC 2011 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: Tue Aug 9 00:16:25 2011 from 192.168.0.18 root@remote:~#