|
发表于 2007-1-15 07:54:23
|
显示全部楼层
If u r using ssh version 2, run ssh-keygen -t rsa on local machine, it will generate two files id_rsa and id_rsa.pub in your $HOME/.ssh folder by default.
It will also ask u to input the passphase, the default is empty.
On the remote side, copy the content of id_rsa.pub into $HOME/.ssh/authorized_keys2
Then u can just write an easy shell script to connect. When u run this shell script no password would be asked. |
|