http://blog.chinaunix.net/uid-20548989-id-1667463.html
一、通过 ssh-keygen命令创建认证文件
# ssh-keygen -b 1024 -t dsa
Generating public/private dsa key pair. Enter file in which to save the key (/root/.ssh/id_dsa): Enter passphrase (empty for no passphrase): Enter same passphrase again: Your identification has been saved in /root/.ssh/id_dsa. Your public key has been saved in /root/.ssh/id_dsa.pub. The key fingerprint is: ............................... The key's randomart image is: .............................
|
The authenticity of host '192.168.1.202 (192.168.1.202)' can't be established. RSA key fingerprint is 46:8f:d3:43:db:52:b1:c2:16:99:cd:03:9b:3f:0c:e8. Are you sure you want to continue connecting (yes/no)? yes Warning: Permanently added '192.168.1.202' (RSA) to the list of known hosts. @'s password: <服务器口令> Now try logging into the machine, with "ssh '@'", and check in: .ssh/authorized_keys to make sure we haven't added extra keys that you weren't expecting.
|
|