rysnc -av install.log 192.168.176.252:/tmp/
出现提示root@192.168.176.252'password:
输入密码后:
提示:Permission denied,please try again
出现提示root@192.168.176.252'password:
输入密码后:
提示:Permission denied,please try again
(1)这种提示是从A主机ssh远程登录到主机B没有:
私钥id_rsa,而id_rsa是主机B在使用命令ssh-keygen -t rsa 生成的秘钥之一,另外一个公钥id_rsa.pub,公
钥id_rsa.pub是放在主机B上,id_rsa是放在主机A上。
(2)另外一个情况,当主机的A的私钥id_rsa 与远程主机B的id_rsa不匹配。输入密码也会包提示:Server refused our key”
Server refused our key”
解决方法:可以用ssh-keygen -t rsa 重新生成一对秘钥。
也可以用工具puttygen生成效应的一对秘钥。但是有时puttygen生成的私钥*.ppk文件openssh无法读。这时
有要ssh-keygen -t rsa 生成私钥文件id_ras,再用puttygen工具将其转换为*.ppk文件注意客户端主机上。
1,卸载 [root@localhost ~]# rpm -qa|grep ssh
openssh-server-4.3p2-82.el5
openssh-clients-4.3p2-82.el5
openssh-4.3p2-82.el5
[root@localhost ~]# rpm -e openssh-server-4.3p2-82.el5
[root@localhost ~]# rpm -e openssh-clients-4.3p2-82.el5
[root@localhost ~]# rpm -e openssh-4.3p2-82.el5
[root@localhost ~]# service sshd status
或者用yum remove -y openssh*
2,安装
[root@localhost ~]# yum install -y openssh-ssh*
私钥id_rsa,而id_rsa是主机B在使用命令ssh-keygen -t rsa 生成的秘钥之一,另外一个公钥id_rsa.pub,公
钥id_rsa.pub是放在主机B上,id_rsa是放在主机A上。
(2)另外一个情况,当主机的A的私钥id_rsa 与远程主机B的id_rsa不匹配。输入密码也会包提示:Server refused our key”
Server refused our key”
解决方法:可以用ssh-keygen -t rsa 重新生成一对秘钥。
也可以用工具puttygen生成效应的一对秘钥。但是有时puttygen生成的私钥*.ppk文件openssh无法读。这时
有要ssh-keygen -t rsa 生成私钥文件id_ras,再用puttygen工具将其转换为*.ppk文件注意客户端主机上。
1,卸载 [root@localhost ~]# rpm -qa|grep ssh
openssh-server-4.3p2-82.el5
openssh-clients-4.3p2-82.el5
openssh-4.3p2-82.el5
[root@localhost ~]# rpm -e openssh-server-4.3p2-82.el5
[root@localhost ~]# rpm -e openssh-clients-4.3p2-82.el5
[root@localhost ~]# rpm -e openssh-4.3p2-82.el5
[root@localhost ~]# service sshd status
或者用yum remove -y openssh*
2,安装
[root@localhost ~]# yum install -y openssh-ssh*