在我的新ec2版本上运行几天后,会发生以下情况:
>我登录SSH,一切都很好,我做我的编码
>我第二天回来,登录SSH
>我不能再输入一个较低的套管e – 当我输入它时我得到错误ding
>我尝试从另一台计算机ssh,同样的问题
>我重新启动服务器,同样的问题
>我打开nano或vi和e工作正常,只是没有bash或sh
>我终止服务器,创建一个新服务器,从头开始安装,几天后再次发生
这令人费解!我在哪里开始排除故障?
我的本地机器设置:
> Windows XP或7
> putty(最新)或cygwin / openssh
EC2设置
>亚马逊Linux(默认选项)
> node.js
> iptables将端口80转发到端口8003上的节点
> emacs,npm和openssl-devel
>没有其他mods
> Here is my /etc/profile
> Here is my /etc/inputrc
> Here is my ~/.bashrc and ~/.bash_profile
> output of env
输出stty -a而我无法键入e
sh-4.1$stty -a speed 38400 baud; rows 30; columns 95; line = 0; intr = ^C; quit = ^\; erase = ^?; kill = ^U; eof = ^D; eol = <undef>; eol2 = <undef>; swtch = <undef>; start = ^Q; stop = ^S; susp = ^Z; rprnt = ^R; werase = ^W; lnext = ^V; flush = ^O; min = 1; time = 0; -parenb -parodd cs8 -hupcl -cstopb cread -clocal -crtscts -cdtrdsr -ignbrk -brkint -ignpar -parmrk -inpck -istrip -inlcr -igncr icrnl ixon -ixoff -iuclc -ixany -imaxbel -iutf8 opost -olcuc -ocrnl onlcr -onocr -onlret -ofill -ofdel nl0 cr0 tab0 bs0 vt0 ff0 isig icanon iexten echo echoe echok -echonl -noflsh -xcase -tostop -echoprt echoctl echoke
如果它帮助其他人遇到类似的问题,我创建了一个脚本(称为sub)来将大写的E转换为低级的,然后回显命令.然后我在反引号中运行它以获得命令行上的e ::
#!/bin/sh echo ${@//E/e} > `sub Emacs /Etc/profilE`
更新
>这会打破所有用户
>仅在bash中(csh工作正常)
>仅在emacs编辑模式下
我创建了a chat room to discuss this issue并在解决方案中磨练.