由 diver 在 08-24-2004 14:23 发表:
如何去掉ssh的RSA公匙验证?
由于工作需要,在短时间要通过ssh登录多台linux机器,但每次都出现如下的信息:
>
> 源码:
>
> * * *
>
>
> >
> The authenticity of host 'localhost (127.0.0.1)' can't be established.
> >
> RSA key fingerprint is 12:bf:6a:49:c8:f6:17:13:0e:9b:08:98:e4:e9:19:83.
> >
> Are you sure you want to continue connecting (yes/no)?
> >
>
>
> * * *
如何忽略这些信息呢?该怎样设置?
谢谢!
We believe that the UNIX operating system is the best operating system available today.
------------------
03.9.20
由 wllhc 在 08-24-2004 17:50 发表:
你需要将你的公钥文件放在所要访问的服务器上。比如你是A机,用户是wllhc,你不想使用密码就能登陆B机用户testssh的SSH可以这样:
A机 上的操作
1:切换到普通用户wllhc
2:生成密码对: $ ssh-keygen -t rsa
按提示输入密码对的文件名,默认是你宿主目录下的 indentity文件(/home/wllhc/.ssh/indentity),然后”Enter passphrase (empty for no passphrase)” 那里直接回车就好了。
3:上传你的公钥文件(indentiy.pub)到B机testssh用户的ssh目录下(/home/testssh/.ssh)
B机上的操作
1:切换到testssh
2, # cd /home/testssh/.ssh/
3, 将A机的公钥文件追加到你的authorized_keys文件里
cat indentiy.pub >> authorized_keys
4,改变authorized_keys文件的权限
chmod 600 authorized_keys
生活好比被强