ServerA$mkdir /home/jojo/.ssh ServerA$cd /home/jojo/.ssh ServerA$ssh-keygen -d # 產生 SSH2 DSA public key Generating public/private dsa key pair. Enter file in which to save the key (/home/jojo/.ssh/id_dsa): # 直接按 Enter Enter passphrase (empty for no passphrase): # 直接按 Enter 就是不使用密碼 Enter same passphrase again: # 直接按 Enter Your identification has been saved in /home/jojo/.ssh/id_dsa. Your public key has been saved in /home/jojo/.ssh/id_dsa.pub. The key fingerprint is: a9:8a:c7:0b:a6:59:71:03:92:ff:ac:e9:96:c2:5a:74 jojo@ntut.idv.tw Server A$