相关疑难解决方法(0)

为什么通过 SSH 连接到 GitHub 时会抛出错误“警告:远程主机标识已更改”?

就在不久前,我在推送到 GitHub 时开始收到此警告。

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 a host key has just been changed.
Run Code Online (Sandbox Code Playgroud)

这是正常现象吗?我该如何解决?

git ssh github ssh-keys

641
推荐指数
6
解决办法
8万
查看次数

Ubuntu-ssh - - 警告:远程主机识别已更改

我无法ssh和rysnc到远程系统.它不断给出此错误消息:

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 a host key has just been changed.
The fingerprint for the RSA key sent by the remote host is
a3:8f:7c:07:c9:12:d8:aa:cd:c2:ba:b3:27:68:bc:c2.
Please contact your system administrator.
Add correct host key in /root/.ssh/known_hosts to get rid of this message.
Offending RSA key in /root/.ssh/known_hosts:8
RSA host key for xxx.xxx.xxx.xxx has changed …
Run Code Online (Sandbox Code Playgroud)

ssh openssh

61
推荐指数
5
解决办法
7万
查看次数

SSH 主机密钥轮换

打开 bitbucket 时,我在 Snackbar 上收到一条消息,上面写着“SSH 主机密钥轮换”,它的真正含义是什么?我需要做点什么吗?

\n

SSH 主机密钥轮换

\n

重要通知:Bitbucket Cloud\xe2\x80\x99s RSA SSH 主机密钥将于 2023 年 6 月 20 日 1700 UTC 轮换

\n

bitbucket bitbucket-api

15
推荐指数
2
解决办法
1万
查看次数

如何摆脱“远程主机标识已更改”消息

我的计算机上安装了多个虚拟机,通过 ssh 连接到它们:

\n\n
ssh vm1@localhost\n
Run Code Online (Sandbox Code Playgroud)\n\n

或者

\n\n
ssh vm2@localhost\n
Run Code Online (Sandbox Code Playgroud)\n\n

因此,每次连接到不同的虚拟机时,我都需要编辑~/.ssh/known_hosts文件以删除: \xe2\x80\x9c WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED!\xe2\x80\x9d 消息。

\n\n

有没有办法自动信任本地主机上的所有虚拟机?

\n

ssh

13
推荐指数
2
解决办法
3万
查看次数

VSCode 远程 SSH 连接失败

我正在尝试使用 Remote-SSH 扩展来编辑 Debian 服务器上的文件。SSH 连接已正确建立,但随后我收到一条错误消息:

Failed to connect to the remote extension host server
Run Code Online (Sandbox Code Playgroud)

和日志:

[13:19:04.182] Remote server is listening on port 51569
[13:19:04.182] Parsed server configuration: {"agentPort":51569,"osReleaseId":"debian","arch":"x86_64","webUiAccessToken":"","sshAuthSock":"","tmpDir":"/tmp"}
[13:19:04.184] Starting forwarding server. localPort 59828 -> socksPort 59825 -> remotePort 51569
[13:19:04.185] Forwarding server listening on 59828
[13:19:04.185] Waiting for ssh tunnel to be ready
[13:19:04.186] Tunneled remote port 51569 to local port 59828
[13:19:04.186] Resolved "ssh-remote+home-debian.web-data.host" to "127.0.0.1:59828"
[13:19:04.187] [Forwarding server 59828] Got connection 0
[13:19:04.195] ------
[13:19:04.208] [Forwarding …
Run Code Online (Sandbox Code Playgroud)

ssh remote-debugging visual-studio-code vscode-remote

3
推荐指数
5
解决办法
1万
查看次数

警告:远程主机标识已更改 (1)

输入命令后

ssh -p 8101 karaf@docker-ip onos1
Run Code Online (Sandbox Code Playgroud)

我收到错误

    @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
    @    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 a host key has just been changed.
The fingerprint for the RSA key sent by the remote host is
SHA256:rV+69MOdHKanIvP41a9Xspug6am7/BV7CHVjhxxxxx.

Please contact your system administrator.
Add correct host key in `/home/pranav/.ssh/known_hosts` to get rid of this message.
Offending RSA …
Run Code Online (Sandbox Code Playgroud)

localhost rsa-key-fingerprint

2
推荐指数
1
解决办法
9366
查看次数