深度终端-远程管理无法连接
Tofloor
poster avatar
dba_xyx
deepin
2018-11-13 18:59
Author
spawn /usr/lib/deepin-terminal/zssh -X -o ServerAliveInterval=60 xiaoyongxing@192.168.xx.xx-p 22 -o PubkeyAuthentication=no -t echo 欢迎使用深度终端, 在您使用右键菜单进行上传和下载文件之前, 请先确保服务器已经安装了rz和sz命令。 && exec $SHELL -l
Press ^@ (C-Space) to enter file transfer mode, then ? for help

Password:
X11 forwarding request failed on channel 0




点击连接就卡在这里了,网上说的,ssh_config  sshd_config各种信任都尝试了,无果,往各位大佬指点一二,谢谢!

Reply Favorite View the author
All Replies
avatar
156******21
deepin
2018-11-13 19:03
#1
没有遇见过这样子的情况
Reply View the author
avatar
156******21
deepin
2018-11-13 19:10
#2
https://bbs.deepin.org/post/170836
没有遇见过这样子的情况

额  刚才试了下  有这个提示 但是可以成功连接进入远程端!

Reply View the author
avatar
dba_xyx
deepin
2018-11-13 21:40
#3
https://bbs.deepin.org/post/170836
额  刚才试了下  有这个提示 但是可以成功连接进入远程端!

我的就卡住不动了,输入命令也没用
Reply View the author
avatar
snyh1010
deepin
2018-11-13 22:24
#4
直接使用  ssh 链接服务器呢? 如果也卡主,加上ssh -v 看下卡哪里了。
如果可以登录。。给deepin-teraminal调用zssh的时候也加上-v
Reply View the author
avatar
snyh1010
deepin
2018-11-13 22:27
#5
本帖最后由 snyh1010 于 2018-11-13 14:30 编辑

目前给出的日志看,你服务器上并没有开启X11或者服务器的sshd配置禁用了X11。 得该客户端的链接代码,去掉-X选项
/usr/lib/deepin-terminal/ssh_login.sh 修改这个文件,去掉ssh_cmd里面的-X选项。 (如果不行,就加个-v选项,得到更多调试信息)
Reply View the author
avatar
dba_xyx
deepin
2018-11-13 22:37
#6
https://bbs.deepin.org/post/170836
目前给出的日志看,你服务器上并没有开启X11或者服务器的sshd配置禁用了X11。 得该客户端的链接代码,去掉 ...

非常感谢,在ssh_login.sh中添加-v参数提示没有该选项,应该是zssh不支持
command-line: line 0: Bad configuration option: -v
spawn_id: spawn id exp4 not open
    while executing
"interact"
    (file "/tmp/deepin-terminal-AGB4RZ" line 61)
Reply View the author
avatar
dba_xyx
deepin
2018-11-13 22:38
#7
https://bbs.deepin.org/post/170836
目前给出的日志看,你服务器上并没有开启X11或者服务器的sshd配置禁用了X11。 得该客户端的链接代码,去掉 ...

而且这个远程机器我用securecrt连接没有问题
Reply View the author
avatar
snyh1010
deepin
2018-11-13 23:18
#8
https://bbs.deepin.org/post/170836
非常感谢,在ssh_login.sh中添加-v参数提示没有该选项,应该是zssh不支持
command-line: line 0: Bad con ...

zssh只是fork/exec了/usr/bin/ssh,所以ssh支持的选项它全部支持。
你肯定改错地方了。 
这样改
  1. set ssh_cmd {/usr/lib/deepin-terminal/zssh -v -X -o ServerAliveInterval=60}
Copy the Code

记得试试去掉里面的-X看有问题没。 (不过,我测试不开启X11的vps是没有问题的)
Reply View the author
avatar
snyh1010
deepin
2018-11-13 23:29
#9
https://bbs.deepin.org/post/170836
而且这个远程机器我用securecrt连接没有问题

我这也复现了问题 和X11没关系。 可能是expect脚本的问题,只能等修复了。

只能先用ssh命令登录了。(简单的配置下~/.ssh/config后配合ssh-copy-id使用,你会发现也是非常方便的)
Reply View the author
avatar
dba_xyx
deepin
2018-11-14 04:28
#10
https://bbs.deepin.org/post/170836
我这也复现了问题 和X11没关系。 可能是expect脚本的问题,只能等修复了。

只能先用ssh命令登录了。( ...

好的,非常感谢
Reply View the author
avatar
zfvip_deepin
deepin
2018-11-14 18:53
#11
我的笔记本也出现过这个问题,能够连接上,只是每次连接要等待10秒以上,PC上没问题,瞬间就连上去了
Reply View the author
avatar
dba_xyx
deepin
2018-11-14 19:32
#12
https://bbs.deepin.org/post/170836
我的笔记本也出现过这个问题,能够连接上,只是每次连接要等待10秒以上,PC上没问题,瞬间就连上去了 ...

我的是直接连不上一直卡住。。。
Reply View the author
avatar
132******65
deepin
2019-05-04 08:42
#13
先说的系统版本 deepin 15.10

我也遇到了同样的问题,但是我解决了。现在说一下我解决的方法。
直接使用 命令 “ssh -v 我的服务器ip” 查看连接过程。
我的到“expecting SSH2_MSG_KEX_ECDH_REPLY”这一步报错。
参考 http://www.mamicode.com/info-detail-2061597.html 解决问题。

也参考过https://bbs.deepin.org/post/146462#
安装过里面提到一个deb包。不知道起没起作用。反正可以正常使用了。
Reply View the author
avatar
killea
deepin
2019-08-05 09:57
#14
我开始也登陆不了,后来看了这个帖子,没有看懂。
然后我就直接用zssh连接了一次。似乎报了个错。但是连上了。
然后再用深度就可以用了。
Reply View the author
avatar
as656678879
deepin
2019-11-16 23:08
#15
请问楼主解决了吗?解决了好长时间都没有解决,我的出现
debug1: Remote: No xauth program; cannot forward with spoofing.
X11 forwarding request failed on channel 0
Reply View the author