putty自动登录

* 使用PUTTYGEN.EXE生成key pair,SSH2,1024位
* 将public key添加到服务器~/.ssh/authorized_keys文件中
* 做一些修改
---- BEGIN SSH2 PUBLIC KEY ----
Comment: "rsa-key-20090914"
AAAAB3NzaC1yc2EAAAABJQAAAIEAuOgJ0I0OBo6pw+kUkbywnAdlYHdbZaYjsQKL
W0UThwweMjJHVCFmXxyWOJzX5ss+NL6T0la/YrpagZSCgMmmQ4j5GvAGwd6FMY5S
SFn0hewU3PD5Q8SmQBJRWPFAYad2OSUh1G21GSDR2xiMohx4rwFAxJiWkD8zcC+P
B9QfDP0=
---- END SSH2 PUBLIC KEY ----

把前两行和最后一行删除,然后把内容并成一行,最后在前面添加“ssh-rsa”
ssh-rsa AAAAB3NzaC1yc2EAAAABJQAAAIEAuOgJ0I0OBo6pw+kUkbywnAdlYHdbZaYjsQKLW0UThwweMjJHVCFmXxyWOJzX5ss+NL6T0la/YrpagZSCgMmmQ4j5GvAGwd6FMY5SSFn0hewU3PD5Q8SmQBJRWPFAYad2OSUh1G21GSDR2xiMohx4rwFAxJiWkD8zcC+PB9QfDP0=

* 在putty中设置登录的用户名和private key

[注]putty下载页 http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html

你可能感兴趣的:(html,ssh)