SSH in Terminal, cursor goes crazy and overwrites text

Joined
Aug 28, 2004
Messages
234
Reaction score
0
Points
16
I SSH into my hosted PBX all the time and in Windows I use Puddy and have zero problems. On the mac I Just use SSH from the Terminal. For the first maybe 15 minutes it works totally fine, and usually stays fine on the command line etc. However if I'm in an image editor like Nano, if I'm moving the cursor around, it starts erasing things. Or lets say I want to type the word "phone" it will write something like:

p ^3NE

If I press backspace to erase it, then it will erase it all, I press H and it writes the ^3NE again. Usually logging out and back in fixes it. I downloaded a trial of a 3rd party terminal app and it didn't do this either. Is there something wrong with the mac terminal?
 

Raz0rEdge

Well-known member
Staff member
Moderator
Joined
Jul 17, 2009
Messages
15,762
Reaction score
2,100
Points
113
Location
MA
Your Mac's Specs
2022 Mac Studio M1 Max, 2023 M2 MBA
It's probably an issue with the terminal type. Going through PuTTY (not Puddy :) ) you're probably using the sane VT100 or something, but the OS X terminal might be using something else that doesn't jive with your remote host..
 
Joined
Mar 17, 2008
Messages
6,879
Reaction score
191
Points
63
Location
Tucson, AZ
Your Mac's Specs
Way... way too many specs to list.
Yep, it's probably an emulation issue. When you connect do something like..

export TERM=vt100

and try that. By default, terminal uses xterm-256color, which may not be the most friendly when it comes to editors. I've seen similar emulation issues as well. (with other product actually)
 
OP
E
Joined
Aug 28, 2004
Messages
234
Reaction score
0
Points
16
Oops sorry meant Putty haha.

Do you know where I type that?

Right now I do: ssh -p 20022 [email protected] for example.

I tried ssh -p 20022 [email protected] export TERM=vt100

Which asks for my password like normal but after I enter it, it just goes back to my Mac command prompt. Doesn't say invalid password or anything just does nothing. Tried putting it after the -p 20022 but then gives an error?
 
OP
E
Joined
Aug 28, 2004
Messages
234
Reaction score
0
Points
16
Actually I just noticed under the settings for Terminal it has emulation type and shows vt100 and it was on the xterm-256 so I'll try changing there too.
 

Shop Amazon


Shop for your Apple, Mac, iPhone and other computer products on Amazon.
We are a participant in the Amazon Services LLC Associates Program, an affiliate program designed to provide a means for us to earn fees by linking to Amazon and affiliated sites.
Top