:: ssh [scp] login without password authentication
:: install dependency
installing ssh-client (Debian)
# aptitude install openssh-client
:: configure ssh / scp login without password authentication
+ generate dsa keygen
[ tox : ~ ]$ ssh-keygen -t dsa Generating public/private dsa key pair. Enter file in which to save the key (/home/tox/.ssh/id_dsa): Enter passphrase (empty for no passphrase): [ just return/enter ] Enter same passphrase again: [ just return/enter ] Your identification has been saved in /home/tox/.ssh/id_dsa. Your public key has been saved in /home/tox/.ssh/id_dsa.pub. The key fingerprint is: e0:be:0a:93:b9:01:d2:4a:18:25:fa:d8:8b:48:13:9b tox@blackonsole The key’s randomart image is: +–[ DSA 1024]—-+ |. . | |.o | |o. . | |.*+ . . | |=E+ . S | |=+.+ . | |+ B . | | = . | | . … | +—————–+
+ copy [ scp ] dsa keygen to SSH Server (10.100.100.35)
[ tox : ~ ]$ scp .ssh/id_dsa.pub [email protected]:~username/.ssh/authorized_keys Password : [ usernamepass ]
make sure the .ssh directory is at the username home directory on 10.100.100.35.
:: testink
+ ssh
[ tox : ~ ]$ ssh [email protected] Last login: Wed Nov 11 10:40:56 2009 from 10.100.100.33 Have a lot of fun… [ username: ~ ]$ whoami username
+ scp
[ tox : ~ ]$ scp [email protected]:/tmp/test /tmp test 100% 0 0.0KB/s 00:00 [ tox : ~ ]$ ls -l /tmp/test -rw-r–r– 1 tox tox 0 2009-11-11 20:22 /tmp/test
:: links
+ google