SSH互信

简介:

[root@akin log]# ssh-keygen 
Generating public/private rsa key pair.
Enter file in which to save the key (/root/.ssh/id_rsa): 
Enter passphrase (empty for no passphrase): 
Enter same passphrase again: 
Your identification has been saved in /root/.ssh/id_rsa.
Your public key has been saved in /root/.ssh/id_rsa.pub.
The key fingerprint is:
92:50:4a:fc:3b:1f:ac:20:5c:28:ee:2f:e8:89:41:3b root@akin.com
[root@akin log]# ssh-copy-id root@192.168.14.12
/usr/bin/ssh-copy-id: ERROR: No identities found
[root@akin log]# ssh-copy-id -i ~/.ssh/id_rsa.pub root@192.168.14.12
21
The authenticity of host '192.168.14.12 (192.168.14.12)' can't be established.
RSA key fingerprint is 32:12:7d:48:30:0b:f6:24:e9:d2:81:1f:41:a4:9e:0c.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added '192.168.14.12' (RSA) to the list of known hosts.
Address 192.168.14.12 maps to localhost, but this does not map back to the address - POSSIBLE BREAK-IN

ATTEMPT!
root@192.168.14.12's password: 
Now try logging into the machine, with "ssh 'root@192.168.14.12'", and check in:

  .ssh/authorized_keys

to make sure we haven't added extra keys that you weren't expecting.

[root@akin log]# ssh root@192.168.14.12
Address 192.168.14.12 maps to localhost, but this does not map back to the address - POSSIBLE BREAK-IN

ATTEMPT!
Last login: Tue Apr 24 13:52:32 2012 from 192.168.10.238
[root@akin2 ~]# exit
logout
Connection to 192.168.14.12 closed.

来自badb0y提供


本文转自 liang3391 51CTO博客,原文链接:http://blog.51cto.com/liang3391/843228

相关文章
|
分布式计算 Hadoop Shell
使用shell脚本实现自动SSH互信功能
使用shell脚本实现自动SSH互信功能
222 1
|
网络安全
[ansible]建立ssh互信
[ansible]建立ssh互信
186 3
|
Linux 网络安全
linux 配置ssh互信
linux 配置ssh互信
|
Linux 网络安全
Linux 多台主机配置 ssh 互信脚本
互信是指配置免密登录另一台主机,常用于自动化脚本!
|
Linux 网络安全 数据安全/隐私保护
|
网络安全 数据安全/隐私保护
|
Linux 网络安全 数据安全/隐私保护