解决securecrt 登录后方向键,backspace,delete键为乱码

转自:https://blog.csdn.net/justheretobe/article/details/51295956
在以下环境测试有效
1. Ubuntu 16.04.2 LTS
2. SecureCRT Version 8.0.0 (build 1063) - Official Release - March 31, 2016


问题: 使用securecrt ssh到linux之后,backspace,delete,以及4个方向键都为乱码,不能正常使用。按tab键也没有自动补全文件名

环境: securecrt 7.3 ubuntu15.10

解决方法:
1. 解决backspace和delete的乱码:
在securecrt的 工具栏–>options–>session–>terminal–>emulation–>mapped keys 页面,勾选“other mappings”的两个选项,如下图:
这里写图片描述
2. 解决方向键乱码,tab键不能自动补全的问题
输入 echo $0 查看当前的shell环境
这里写图片描述
现在需要将shell环境改为 /bin/bash。
sudo vi /etc/passwd
然后在当前用户后面加上 /bin/bash
这里写图片描述

3.退出之后重新登录,方向键正常,tab键补全功能也生效
这里写图片描述


参考:
http://askubuntu.com/questions/163802/backspace-tab-del-and-arrow-keys-not-working-in-terminal-using-ssh

        <link rel="stylesheet" href="https://csdnimg.cn/release/phoenix/template/css/markdown_views-ea0013b516.css">
            </div>

问题: 使用securecrt ssh到linux之后,backspace,delete,以及4个方向键都为乱码,不能正常使用。按tab键也没有自动补全文件名

环境: securecrt 7.3 ubuntu15.10

解决方法:
1. 解决backspace和delete的乱码:
在securecrt的 工具栏–>options–>session–>terminal–>emulation–>mapped keys 页面,勾选“other mappings”的两个选项,如下图:
这里写图片描述
2. 解决方向键乱码,tab键不能自动补全的问题
输入 echo $0 查看当前的shell环境
这里写图片描述
现在需要将shell环境改为 /bin/bash。
sudo vi /etc/passwd
然后在当前用户后面加上 /bin/bash
这里写图片描述

3.退出之后重新登录,方向键正常,tab键补全功能也生效
这里写图片描述


参考:
http://askubuntu.com/questions/163802/backspace-tab-del-and-arrow-keys-not-working-in-terminal-using-ssh

        <link rel="stylesheet" href="https://csdnimg.cn/release/phoenix/template/css/markdown_views-ea0013b516.css">
            </div>

猜你喜欢

转载自blog.csdn.net/linhai1028/article/details/81673574