backspace does not work on my ssh client
I SSH into a unix server using SSH client version 3.2.9. Several key features do not work when i'm logged into the server. to name few: backspace (^H is made instead but shift+backspace works), when i press <tab>
I do not get suggestions, ~ does not take me to home.
I have local.cshrc, local.login and local.profile in my home folder (when I login).
Following is in local.profile
$ more local.profile
#
# Copyright (c) 2001 by Sun Microsystems, Inc.
# All rights reserved.
#
# ident "@(#)local.profile 1.10 01/06/23 SMI"
stty istrip
PATH=/opt/sunone_apps/Dep/POL/:/usr/bin:/usr/ucb:/etc:.
export PATH
A quick fix is to do:
stty erase <backspace>
Where, you try to hit backspace. Hit enter at the end of that line, and from that point on, the system will recognize that as your backspace character -- but it will only stick for the length of that session.
It's a temporary fix, for when you can't be bothered with logging out, changing the terminal type, and logging back in.
Permanent Fix: I have seen such problems before.
Take the backspace for example, the remote host expects some character to be used as "erase/backspace" , while you pressing backspace in the terminal , the terminal program will send some character to the remote host, if what the remote host expects diffs with the characters sent by the terminal program, you would encounter this issue. So a quick fix is as below:
run command #stty -a
in the remote host, and find what is expected to be an erase code in the output. Say erase=^?.
In the terminal, type Ctrl
v
and press your backspace. You'll see what code is sent as "erase". Say it is ^H
.
In the remote host, run #stty erase ^H
.
You can fix the Tab issue with the same as above.
Also, Depends on the terminal. On a windows machine, I use MobaXterm which is like a beefy version of Putty. When you create a session (saved or not), you have a "Terminal sttings" tab that has an option to send ctrlH, as backspace. Uncheck this option. You can do this mid-session, without having to restart your session or get out of generating CSR's, etc.
This is also where you can change your terminal type (such as xterm
or vt100
, etc.).