Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SSH : Backspace is not working #193

Closed
vikas5914 opened this issue Jul 13, 2015 · 5 comments
Closed

SSH : Backspace is not working #193

vikas5914 opened this issue Jul 13, 2015 · 5 comments

Comments

@vikas5914
Copy link

i cant delete text in ssh . .when i try to remove text using backspace it show this in ssh "←[←[←[←[←"

img of ssh

@bytehead-
Copy link

I can't duplicate this.

c:\>which ssh
C:\Program Files (x86)\Gow\bin\ssh.BAT

c:\>ssh -V
plink: Release 0.63

c:\>

c:\>ssh sdf.lonestar.org
login as: bytehead
bytehead@sdf.lonestar.org's password:

Welcome to the SDF Public Access UNIX system. (est. 1987)

For quick help, type 'help'
For detailed questions and answers, type 'faq'
For user discussion boards, type 'bboard'
For interactive discussions, type 'com'
For adding yourself to the SDF User Map, see http://sdf1.org/map
to create your URL http://bytehead.freeshell.org, type 'mkhomepg'

Explore and Enjoy!
$ I type this line, and then I'll backspace to the comma.

c:\>ssh sdf.lonestar.org
login as: bytehead
bytehead@sdf.lonestar.org's password:

Welcome to the SDF Public Access UNIX system. (est. 1987)

For quick help, type 'help'
For detailed questions and answers, type 'faq'
For user discussion boards, type 'bboard'
For interactive discussions, type 'com'
For adding yourself to the SDF User Map, see http://sdf1.org/map
to create your URL http://bytehead.freeshell.org, type 'mkhomepg'

Explore and Enjoy!
$ I type this line,

TERM=vt100

No clue why yours isn't working.

@vikas5914
Copy link
Author

Maybe because i am using windows 10

Microsoft Windows [Version 10.0.10162]
(c) 2015 Microsoft Corporation. All rights reserved.

C:\Users\vikas>which ssh
C:\Program Files (x86)\Gow\bin\ssh.BAT

C:\Users\vikas>ssh -V
plink: Release 0.63

C:\Users\vikas>ssh test.kapadiya.net
login as: root
root@test.kapadiya.net's password:
Welcome to Ubuntu 14.04.1 LTS (GNU/Linux 3.13.0-43-generic x86_64)

 * Documentation:  https://help.ubuntu.com/

  System information as of Mon Jul 13 13:52:51 EDT 2015

  System load:  0.0                Processes:           82
  Usage of /:   21.1% of 19.56GB   Users logged in:     0
  Memory usage: 49%                IP address for eth0: 128.199.166.38
  Swap usage:   1%                 IP address for eth1: 10.130.147.125

  Graph this data and manage this system at:
    https://landscape.canonical.com/

193 packages can be updated.
83 updates are security updates.

Last login: Sat Jul 11 14:33:27 2015 from 150.107.241.158
←]0;root@test: ~root@test:~# adasdasd←[←[←[←[K

@bytehead-
Copy link

What's your TERM set to?

@vikas5914
Copy link
Author

No idea . how to set TERM ?

Update : i set my TEMR to vt100 . still giving same error and error alert sound

@bytehead-
Copy link

Digging a bit more, I see that plink is little more than a command line putty. But it also appears that the terminal isn't even vt100, since if I enter a man or a clear command, I get ANSI control characters and not actually anything acting on those ANSI control characters. In putty, clear clears the screen. Under ssh, I get

$ clear
←[H←[J

Actually, looking at what your original output is, it's showing an ESC [ for each time that you hit the backspace. Which sounds like it may actually be doing the backspace, but since the console isn't actually processing ANSI/xterm, it's just not displaying correctly.

I thought stty might have something to do with it, but I don't see it. You might want to try a stty sane, just in case.

What happens when you use putty instead of ssh (using port 22 and ssh connection)? And it may be a shell issue. I'm running ksh as my default. Loading sh and zsh, I see problems in trying to use the backspace key. bash and ksh work just fine. Which still may point to a configuration issue with the two (or more?) nonworking shells.

You might be better off just using putty for interactive, and ssh for automated stuff.

And now, zsh is working for me, now that I logged off and back on. :/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants