转载链接:
http://unix.stackexchange.com/questions/13413/force-telnet-ssh-to-use-crtl-h-for-backspace
#!/usr/bin/expect
#Name this file as kbdfix and make it executable in your path
eval spawn -noecho $argv
interact {
\177 {send "\010"}
"\033\[3~" {send "\177"}
}
kbdfix telnet 192.168.12.117 2006