Eu estou em uma empresa.
Ip da máquina linux é 192.168.8.183,
O Ip da minha máquina Windows é 172.16.22.53.
A máquina linux e o Windows mashine são máquinas reais, não a VM virtualbox.
Primeiro instalei o cygwin.
E então eu instalei o copssh e o openssh-server para minha máquina Windows. Mas depois de tentar muito, eu desinstalo o copssh e o openssh-server.
Agora só existe cygwin!
Depois disso, reinicie minha máquina Windows.
E então eu logar na máquina linux usando putty im minha máquina windows, e então use $ ssh [email protected], mas aparece algum erro:
[sikaiwei@login-0-11 ~]$ ssh [email protected]
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@ WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED! @
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY!
Someone could be eavesdropping on you right now (man-in-the-middle attack)!
It is also possible that the RSA host key has just been changed.
The fingerprint for the RSA key sent by the remote host is
61:aa:6a:0d:85:da:bc:82:64:42:b6:56:3f:27:02:2b.
Please contact your system administrator.
Add correct host key in /home/sikaiwei/.ssh/known_hosts to get rid of this message.
Offending key in /home/sikaiwei/.ssh/known_hosts:2
Password authentication is disabled to avoid man-in-the-middle attacks.
Keyboard-interactive authentication is disabled to avoid man-in-the-middle attacks.
Agent forwarding is disabled to avoid man-in-the-middle attacks.
X11 forwarding is disabled to avoid man-in-the-middle attacks.
Permission denied (publickey,password,keyboard-interactive).
[sikaiwei@login-0-11 ~]$
Eu acho isso:
Add correct host key in /home/sikaiwei/.ssh/known_hosts to get rid of this message.
Então eu vou para /home/sikaiwei/.ssh/known_hosts:
[sikaiwei@login-0-11 .ssh]$ vi known_hosts
192.168.8.183 ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEAr0OPxQ49Nvl9JxvUEKsFa0LraupPW
i3zShoBCiSNSgaiQZNA/7v6YCYovVV+Fyd1+AoIuAVN+17jiuiLc9Upxkqu3
/BQnEZB1quDUFPLnNYXguentNmGDLeovrrzHCY8nfUNstxNOm
/fGosu1kwmQT7MyWB2j2dhjgkf8k0NOsrZkBOoz4zwoLhvAs
/N8zhiI+DKiJ3b6SSxPfr582FM2uEnsXB6jql4B2AONICxmPfU1nBhsSx0IaX+esOGDD9
Rfk03QPqPAgmDapqGbz6EhnUY3cIXt5JEpznkogM6gZoTNLB+fX878YHqRRkqzBUD
4xhp5dlAQ+h5nCscK5GcFw==
172.16.22.53 ssh-rsa
AAAAB3NzaC1yc2EAAAADAQABAAAAgQDQxnLSG/xVy6jSMd2cyv+5G2pR8MrKOnlqJv+ppfl5Nb1CfKgrK8c
Q2BnlFuSJTnVWsBtc89812tGmLsaE2NaFVxDStAW0JoqO5W9IShT0hCRvcn9sAu3yS
ZQYYXZgJIG0dSR2YBUyNv+tqRQWSbWswGUKjVqOlRPQ/M6DTsLFCw==
Eu removi a linha 2, mas depois:
[sikaiwei@login-0-11 .ssh]$ ssh [email protected]
Warning: Permanently added '172.16.22.53' (RSA) to the list of known hosts.
[email protected]'s password:
Permission denied, please try again.
[email protected]'s password:
Permission denied, please try again.
[email protected]'s password:
Permission denied (publickey,password,keyboard-interactive).