OPNsense Forum

English Forums => General Discussion => Topic started by: ciaduck on July 11, 2026, 08:38:44 PM

Title: Help with SSH and terminal modes for cli and vi
Post by: ciaduck on July 11, 2026, 08:38:44 PM
I could use a little help with figuring out terminal modes.

I ssh from powershell to opnsense, and invoke the shell. If I move my cursor to the start of the line (CTRL^A) and start typing, it doesn't redraw the line. If I set the terminal to vt100 (setenv TERM vt100) this seems to fix the issue. However, it makes vi unusable. As in insert mode, it doesn't draw new lines or refresh properly.

Is there something I can do to make the default xterm-256color work? or perhaps make vi work with vt100 mode?

I just don't understand enough about terminal modes.

This is running on a pcengines 2c4 and I do use the serial cable if I need to get local access to the system. The serial terminal all seems to work just fine. It's just when using SSH.
Title: Re: Help with SSH and terminal modes for cli and vi
Post by: patient0 on July 11, 2026, 09:33:46 PM
How are you getting a vi mode? The shell used on OPNsense is not bash or ksh or sh, at least it doesn't understand 'set -o vi'.
Title: Re: Help with SSH and terminal modes for cli and vi
Post by: nero355 on July 11, 2026, 11:30:40 PM
Quote from: ciaduck on July 11, 2026, 08:38:44 PMI ssh from powershell to opnsense
What happens when you use PuTTY instead ?!