^U will clear the buffer - super convenient for retrying botched passwords.
What typing ^D does on Unix (2009)
11–20 of 162 posts
Re: What typing ^D does on Unix (2009)
#12Earlier quoted context omitted.
nice one, never seen that - always used ^D/exit
Those are yet more graceful -- for when the shell is responsive. Use ~. in cases where for some reason you cannot get access to the terminal anymore but remote sshd is responsive.
Re: What typing ^D does on Unix (2009)
#13Re: What typing ^D does on Unix (2009)
#14Earlier quoted context omitted.
nice one, never seen that - always used ^D/exit
Those are yet more graceful -- for when the shell is responsive. Use ~. in cases where for some reason you cannot get access to the terminal anymore but remote sshd is responsive.
You can also type "~?" for a list of other commands supported by the local ssh client. Among other things, "~C" opens a command line interpreter on the client side of the ssh client, allowing you to add and remove TCP port forwarding without restarting the connection.
Re: What typing ^D does on Unix (2009)
#15Earlier quoted context omitted.
^Y will paste the cleared buffer back again
So ^U will let a partial password linger in memory longer than it needs to if you use it as suggested by the GP?
(For example, if I type some stuff and then ^U to kill the password buffer at an SSH password prompt, typing ^Y after that seems to put the whole process in the background. Not sure what that's intended to do, but subsequent ^Y presses don't retrieve the password into the shell prompt...)
Re: What typing ^D does on Unix (2009)
#16Earlier quoted context omitted.
nice one, never seen that - always used ^D/exit
Those are yet more graceful -- for when the shell is responsive. Use ~. in cases where for some reason you cannot get access to the terminal anymore but remote sshd is responsive.
\n~~. will escape the 2nd box you've SSH'd to, not the one it was originated from.
Useful for escaping a screen'd SSH session that you might access through a jumphost.
Re: What typing ^D does on Unix (2009)
#17Re: What typing ^D does on Unix (2009)
#18^U will clear the buffer - super convenient for retrying botched passwords.
^Y will paste the cleared buffer back again
Re: What typing ^D does on Unix (2009)
#19Pressing enter then ~. will gracefully shutdown hung ssh sessions
Re: What typing ^D does on Unix (2009)
#20Pressing enter then ~. will gracefully shutdown hung ssh sessions