深度终端远程管理的密码框输入成了全角,请问是bug吗?
Tofloor
poster avatar
metanoia1989
deepin
2017-10-26 07:27
Author

如上图,服务器名的输入框是正常的,但是到了密码的输入框字母间距就变的超大的,导致没办法正常连接,。

深度终端版本为2.6,请问其他人有这样的问题吗?还是只有我是这样。
Reply Favorite View the author
All Replies
avatar
metanoia1989
deepin
2017-10-26 07:29
#1
自顶一下
Reply View the author
avatar
wangyong
deepin
2017-10-26 07:46
#2
密码输入框不是全角,而是为了让密码原点显示美观增加的间距,导致字符间距也大了。原因是gtk输入框的原点字符无法自绘,只能使用unicode字符。
Reply View the author
avatar
wangyong
deepin
2017-10-26 07:47
#3
没法正常连接请确认密码是否正确,不是因为全角的原因哈
Reply View the author
avatar
metanoia1989
deepin
2017-10-26 09:51
#4
https://bbs.deepin.org/post/147228
没法正常连接请确认密码是否正确,不是因为全角的原因哈

感谢回复。找到原因了,因为最近把默认shell改成了fish,fish不支持 && 连接命令。
不过如果我用ssh密匙登录,则可以正常连接,而不报错。

密码登录失败
  1. spawn zssh -X -o ServerAliveInterval=60 pi@192.168.1.108 -p 22 -o PubkeyAuthentication=no -t echo Welcome to Deepin Terminal, please make sure that rz and sz commands have been installed in the server before right clicking to upload and download files. && exec $SHELL -l
  2. Press ^@ (C-Space) to enter file transfer mode, then ? for help

  3. pi@192.168.1.108's password:
  4. Unsupported use of '&&'. In fish, please use 'COMMAND; and COMMAND'.
  5. fish: echo Welcome to Deepin Terminal, please make sure that rz and sz commands have been installed in the server before right clicking to upload and download files. && exec $SHELL -l
  6.                                                                                                                                                                        ^
  7. Connection to 192.168.1.108 closed.
Copy the Code


密匙登录成功
    Press ^@ (C-Space) to enter file transfer mode, then ? for help

  1. X11 forwarding request failed on channel 0
  2. Welcome to Deepin Terminal, please make sure that rz and sz commands have been installed in the server before right clicking to upload and download files.
Copy the Code

Reply View the author
avatar
metanoia1989
deepin
2017-10-26 09:55
#5
找到深度终端的登录脚本   /usr/share/deepin-terminal/ssh_login.sh里面的内容很多看不懂,我果然是很小白啊。

Reply View the author
avatar
ih******op@vip.qq.com
deepin
2017-10-26 17:51
#6
本帖最后由 ihipop 于 2017-10-26 13:53 编辑
https://bbs.deepin.org/post/147228
找到深度终端的登录脚本   /usr/share/deepin-terminal/ssh_login.sh里面的内容很多看不懂,我果然是很小白 ...

配置好 ~/.ssh/config 爽到你飞起

https://bbs.deepin.org/user/48640
深度的这种通过except的方式还不是很好的,脚本难写,很多ssh的设置,比如端口转发,TCP Multiplex之类的做不了@wangyong
其实建议深度把终端的远程管理的思路 转换到做  ~/.ssh/config 的配置器上来,简单实用兼容性好,GUI和CLI都能用。而且有多现成的go写的  ~/.ssh/config 配置解析器

那配置起跳板机之类的真是爽的不能再爽。




关于你的 https://bbs.deepin.org/user/84107 ,如果采用 ~/.ssh/config 方案,需要注意,fishshell 的话默认2.6.0不能正确联想 ~/.ssh/config 里面的条目,需要去下载一个小补丁

https://github.com/fish-shell/fish-shell/issues/4107 注意这里面的提到的补丁已经被merge到master了 所以直接wget master就行

  1. wget https://raw.githubusercontent.com/fish-shell/fish-shell/master/share/functions/__fish_print_hostnames.fish -O ~/.config/fish/functions/__fish_print_hostnames.fish
Copy the Code
如果fish shell里面执行  __fish_print_hostnames  正确显示  ~/.ssh/config 里面的条目 就OK了


Reply View the author
avatar
jingle
deepin
2017-10-26 18:49
#7
https://bbs.deepin.org/post/147228
配置好 ~/.ssh/config 爽到你飞起

@jingle

https://bbs.deepin.org/user/33235
Reply View the author
avatar
ih******op@vip.qq.com
deepin
2017-10-26 19:14
#8
本帖最后由 ihipop 于 2017-10-26 11:16 编辑



链接的时候 输入 ssh youku + [TAB]
然后自动就脑补 youku-LYB
其他同理 ,不需要再记忆完整域名 端口 用户名 跳板机参数(新版SSH还直接支持-J 不用Proxy Command了)
命令行都这么方便 更加不要说GUI也尊重这个设置了
Reply View the author
avatar
wangyong
deepin
2017-10-27 04:11
#9
https://bbs.deepin.org/post/147228
配置好 ~/.ssh/config 爽到你飞起

@jingle

不会这样做,终端不要去改用户的.ssh 配置文件
Reply View the author
avatar
metanoia1989
deepin
2017-10-27 04:32
#10
https://bbs.deepin.org/post/147228
配置好 ~/.ssh/config 爽到你飞起

@jingle

还有这种操作,O(∩_∩)O谢谢
Reply View the author
avatar
153******66
deepin
2017-10-27 17:37
#11
https://bbs.deepin.org/post/147228
不会这样做,终端不要去改用户的.ssh 配置文件

我也是这样觉得的, 终端不改.ssh配置, 那么可以读吖, 我也是自己写了很多主机在.ssh/config 里面. 如果终端可以自己读我的配置 我就不需要再另外在终端里面进行配置. 而且终端提供的配置选项还是太少. 起码proxycommand没支持到.
Reply View the author
avatar
wangyong
deepin
2017-10-27 18:51
#12
https://bbs.deepin.org/post/147228
我也是这样觉得的, 终端不改.ssh配置, 那么可以读吖, 我也是自己写了很多主机在.ssh/config 里面. 如果终 ...

那些都是 shell 和 .ssh 配置文件的事情,不应该归终端去处理。
管的多了并不一定是好事,要合适的工具处理合适的需求。
Reply View the author
avatar
153******66
deepin
2017-10-27 19:14
#13
https://bbs.deepin.org/post/147228
那些都是 shell 和 .ssh 配置文件的事情,不应该归终端去处理。
管的多了并不一定是好事,要合适的工具处 ...

嘛, 通过自写脚本方式也能搞定. inotify监视.ssh配置 一旦有修改 就将结果 同步到deepin-terminal的server-config上 .
Reply View the author
avatar
wangyong
deepin
2017-10-27 20:18
#14
https://bbs.deepin.org/post/147228
嘛, 通过自写脚本方式也能搞定. inotify监视.ssh配置 一旦有修改 就将结果 同步到deepin-terminal的serve ...

不是技术做不了,是要好好考虑一下。
最简单的方式就是,如果有更多用户要求更多这种专业化的需求。

如果人多我们就会优先做,做产品最忌讳花了10分力,只有1分的人在用甚至没人用。

比如终端大家都希望远程服务器的名字可以自定义,我们就可以改。

呼声越多,改动越快。
Reply View the author