centos6.5配置ssh免秘钥登陆执行pssh命令的讲解
发表于:2025-12-03 作者:千家信息网编辑
千家信息网最后更新 2025年12月03日,1.检查并安装pssh,yum list pssh2.因为没有配置免秘钥登陆,pssh命令执行失败。[root@bogon ]# pssh -H root@192.168.245.129 -i upt
千家信息网最后更新 2025年12月03日centos6.5配置ssh免秘钥登陆执行pssh命令的讲解
1.检查并安装pssh,yum list pssh
2.因为没有配置免秘钥登陆,pssh命令执行失败。
[root@bogon ]# pssh -H root@192.168.245.129 -i uptime[1] 11:00:36 [FAILURE] root@192.168.245.129 Exited with error code 255Stderr: The authenticity of host '192.168.245.129 (192.168.245.129)' can't be established.RSA key fingerprint is 84:2d:70:33:1c:45:fa:e6:4b:94:72:7e:10:98:7c:a8.Are you sure you want to continue connecting (yes/no)? Host key verification failed.
3.生成秘钥。
[root@bogon tmp]# ssh-keygen -t rsaGenerating 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:9e:14:9a:cc:8d:9b:fd:51:c5:68:24:e1:ce:c6:d7:33 root@bogonThe key's randomart image is:+--[ RSA 2048]----+| o.. || . o o || . . o o || o = = . o || * S = o E || * o o o || o + . || . . || . |+-----------------+
[root@bogon .ssh]# lltotal 8-rw------- 1 root root 1675 Aug 22 11:06 id_rsa-rw-r--r-- 1 root root 392 Aug 22 11:06 id_rsa.pub
4.拷贝到被管对象。
[root@bogon .ssh]# ssh-copy-id -i /root/.ssh/id_rsa.pub root@192.168.245.129The authenticity of host '192.168.245.129 (192.168.245.129)' can't be established.RSA key fingerprint is 84:2d:70:33:1c:45:fa:e6:4b:94:72:7e:10:98:7c:a8.Are you sure you want to continue connecting (yes/no)? yesWarning: Permanently added '192.168.245.129' (RSA) to the list of known hosts.reverse mapping checking getaddrinfo for bogon [192.168.245.129] failed - POSSIBLE BREAK-IN ATTEMPT!root@192.168.245.129's password: Now try logging into the machine, with "ssh 'root@192.168.245.129'", and check in: .ssh/authorized_keysto make sure we haven't added extra keys that you weren't expecting.
5.pssh命令执行成功。
[root@bogon .ssh]# pssh -H root@192.168.245.129 -i uptime[1] 11:10:39 [SUCCESS] root@192.168.245.129 20:10:39 up 2:07, 1 user, load average: 0.00, 0.00, 0.00
总结
以上就是这篇文章的全部内容了,希望本文的内容对大家的学习或者工作具有一定的参考学习价值,谢谢大家对的支持。如果你想了解更多相关内容请查看下面相关链接
内容
命令
学习
登陆
配置
成功
价值
对象
就是
拷贝
更多
篇文章
链接
参考
工作
支持
检查
生成
数据库的安全要保护哪些东西
数据库安全各自的含义是什么
生产安全数据库录入
数据库的安全性及管理
数据库安全策略包含哪些
海淀数据库安全审计系统
建立农村房屋安全信息数据库
易用的数据库客户端支持安全管理
连接数据库失败ssl安全错误
数据库的锁怎样保障安全
数据库可用技术有哪些
农安县热门的计算机网络技术
linux中安全数据库
棋牌游戏软件开发扫雷
福州软件开发定制费用
硅谷网络安全公司排名
网页服务器关闭怎么回事
打开数据库服务
上海农产品消费数据库
北京巨卓腾网络技术
转转下载软件开发
巨人网络安全手抄报
iis和数据库哪个先安装
自己在网上做软件开发
体脂秤软件开发
中化能源互联网科技姜新宇
网络安全基本假设
数据库技术是信息集成的工具
北京班信网络技术 学而思
数据库外键是什么
项目软件开发全过程
商品期权下单软件开发
华为数据库怎么样
唐山网络安全培训
网络技术专业如何培养
数据安全法和网络安全法关系
r星服务器连接失败无法建立连接
华为软件开发云政府补贴
计算机三级的网络技术难吗
ef数据库迁移出错