标签:open 登录失败 ssh登录 remove int class connected lib emc
ssh vagrant@192.168.10.10
The authenticity of host '192.168.10.10 (192.168.10.10)' can't be established.
ECDSA key fingerprint is SHA256:8nyfIaEq9jMHfb9aQIlPh5OAGXjjSVGEDiXfMjlD7H8.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added '192.168.10.10' (ECDSA) to the list of known hosts.
vagrant@192.168.10.10: Permission denied (publickey,gssapi-keyex,gssapi-with-mic).
> 11:06:29 Connecting to 192.168.10.10 port 22
> 11:06:29 Command: ssh -p 22 vagrant@192.168.10.12
> 11:06:29 Connect to 192.168.10.12:22, with timeout 15.000000
> 11:06:29 Create socket with IPv4 address family
> 11:06:29 Socket is connected successfully
> 11:06:29 Client banner: SSH-2.0-libssh_0.7.5
> 11:06:29 Server banner: SSH-2.0-OpenSSH_7.4
> 11:06:29 Negotiated with server
> 11:06:29 Authentication that can continue: publickey, gssapi-with-mic
> 11:06:29 Disconnected from server
[root@cent ~]# yum -y remove openssh-server
[root@cent ~]# yum -y install openssh-server
[root@cent ~]# sshd-keygen
[root@cent ~]# vim /etc/ssh/sshd_config
# 添加以下内容至文件末尾处 :wq
PubkeyAuthentication yes
[root@cent ~]# systemctl restart sshd.service
标签:open 登录失败 ssh登录 remove int class connected lib emc
原文地址:https://www.cnblogs.com/zhangyangdev/p/11428341.html