View Full Version : OpenSSL and backspace
johnfl68
09-12-2008, 01:53 PM
Does anyone know why the backspace key does not work for editing in OpenSSL in a telnet session?
I was using it to generate a CSR for a client, and if I made a mistake and used the backspace button, instead of it deleting the last typed character as usual when telneting to FQ, it would display ^H and I would have to abort and start over.
Anyone have any clues, to help myself and others?
Thanks!
John
Bruce
09-12-2008, 05:22 PM
It appears that the SSH client you are using is set to transmit a Control-H character (backspace) but the terminal here is configured to expect a delete character. To fix that for the current session, type the following:stty erase Control-V Backspace(no space between pressing the Control-V and Backspace keys)
That's just a short term fix, though. To fix it for future logins, check your SSH client configuration for a setting setting for what character backspace sends. Most clients will be able to switch between backspace (ASCII code BS) and delete (ASCII code DEL).
Kevin
09-12-2008, 05:25 PM
If you can't update or reconfigure your ssh client you can also make Bruce's quick fix permanent with the following command:
echo stty erase Control-V Backspace >> ~/.bashrc
johnfl68
09-12-2008, 06:14 PM
Well - seeing as this was a one time thing to generate the CSR, I don't need to do a permanent fix.
As for the client that I was using, it's FQ's client in the CNC. :smile:
But is is good to understand the process, also to have the information available to others who are using OpenSSL here at FQ to generate KEY's and CSR's for certificates (in case they make a mistake).
Thanks!
John
Kevin
09-12-2008, 08:15 PM
Unfortunately the SSH client in the CNC isn't really very good. It was simply the only one we found that worked and was pure java :(
johnfl68
09-12-2008, 08:16 PM
No problem! I understand.
John
vBulletin® v3.6.8, Copyright ©2000-2012, Jelsoft Enterprises Ltd.