关于终端的一个(bug or 问题)。。。。
Tofloor
poster avatar
ylxdxx
deepin
2018-11-01 05:26
Author
本帖最后由 ylxdxx 于 2018-10-31 21:28 编辑

我用终端远程登录,第一次没有任何问题,不过在vps重新安装系统再进行登录时就报错了,登不上:
  1. shui@shui-PC:~$ expect -f /tmp/deepin-terminal-VJYXRZ
  2. spawn /usr/lib/deepin-terminal/zssh -X -o ServerAliveInterval=60 root@xxxxxxxxx -p xxxx -o PubkeyAuthentication=no -t echo 欢迎使用深度终端, 在您使用右键菜单进行上传和下载文件之前, 请先确保服务器已经安装了rz和sz命令。 && exec $SHELL -l
  3. Press ^@ (C-Space) to enter file transfer mode, then ? for help

  4. @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
  5. @    WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED!     @
  6. @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
  7. IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY!
  8. Someone could be eavesdropping on you right now (man-in-the-middle attack)!
  9. It is also possible that a host key has just been changed.
  10. The fingerprint for the RSA key sent by the remote host is
  11. SHA256:UqnyDO+DJehJ8OYF2Gd+qZHmGz0FnISPBfk5Fk7KyW0.
  12. Please contact your system administrator.
  13. Add correct host key in /home/shui/.ssh/known_hosts to get rid of this message.
  14. Offending RSA key in /home/shui/.ssh/known_hosts:1
  15.   remove with:
  16.   ssh-keygen -f "/home/shui/.ssh/known_hosts" -R "[xxxxxxxxxxx]:xxxx"
  17. RSA host key for [xxxxxxxxxxxx]:xxxxx has changed and you have requested strict checking.
  18. Host key verification failed.
  19. spawn_id: spawn id exp4 not open
  20.     while executing
  21. "interact"
  22.     (file "/tmp/deepin-terminal-VJYXRZ" line 61)
Copy the Code
必须手动删除known_hosts文件才行,希望能够修复
Reply Favorite View the author
All Replies
avatar
ylxdxx
deepin
2018-11-01 05:27
#1
Reply View the author
avatar
xiaoxiaoming
deepin
2018-11-01 05:44
#2
这个是ssh的问题,你在远程ssh登陆一台机器之后会在本地保存一个信息在known_hosts文件里,当这台远程机器改动了之后再ssh登陆时,远程机器发来的信息跟本地的文件里的信息匹配不上就会报这个问题
Reply View the author
avatar
ylxdxx
deepin
2018-11-01 05:59
#3
https://bbs.deepin.org/post/170412
这个是ssh的问题,你在远程ssh登陆一台机器之后会在本地保存一个信息在known_hosts文件里,当这台远程机器 ...

但我在手机上登录的时候没有遇到过错误,他会弹出一个提示框点yes就ok了
Reply View the author
avatar
xiaoxiaoming
deepin
2018-11-01 06:21
#4
https://bbs.deepin.org/post/170412
但我在手机上登录的时候没有遇到过错误,他会弹出一个提示框点yes就ok了

手机用的是什么软件登陆远程vps机器?也是第一次登陆后,再重装了vps然后登陆就点yes就行了吗?也是用ssh的方式登的吗?
Reply View the author
avatar
ylxdxx
deepin
2018-11-01 17:07
#5
https://bbs.deepin.org/post/170412
手机用的是什么软件登陆远程vps机器?也是第一次登陆后,再重装了vps然后登陆就点yes就行了吗?也是用ssh ...

webssh软件,ssh登录,重装后点yes就ok了
Reply View the author
avatar
xiaoxiaoming
deepin
2018-11-01 17:57
#6
本帖最后由 xiaoxiaoming 于 2018-11-1 10:17 编辑
https://bbs.deepin.org/post/170412
webssh软件,ssh登录,重装后点yes就ok了

你把手机上点yes弹窗的信息看过了吗?
扯这么多没用,总之就是ssh会记录信息在这个known_hosts文件里,每次你重装vps就删一遍这个文件就行了,或者打开这个文件然后找到你的vps的信息删掉,这只是openssh的一个安全机制
Reply View the author
avatar
ylxdxx
deepin
2018-11-01 18:18
#7
https://bbs.deepin.org/post/170412
你把手机上点yes弹窗的信息看过了吗?
扯这么多没用,总之就是ssh会记录信息在这个known_hosts文件里,每 ...

哦,明白了
Reply View the author
avatar
aida
deepin
2018-11-01 18:40
#8
楼上大神正解~
Reply View the author
avatar
187******09
deepin
2018-11-01 19:08
#9
不是,输出里都告诉你了运行这个
  1. ssh-keygen -f "/home/shui/.ssh/known_hosts" -R "xxxx"
Copy the Code

xxxx换成你那个vps的IP
Reply View the author
avatar
ylxdxx
deepin
2018-11-02 06:39
#10
https://bbs.deepin.org/post/170412
不是,输出里都告诉你了运行这个
xxxx换成你那个vps的IP

哎,没学好呀
Reply View the author