ssh escape characters
1 ESCAPE CHARACTERS 2 When a pseudo-terminal has been requested, ssh supports a number of functions through the use of an 3 escape character. 4 5 A single tilde character can be sent as ~~ or by following the tilde by a character other than those 6 described below. The escape character must always follow a newline to be interpreted as special. The 7 escape character can be changed in configuration files using the EscapeChar configuration directive or on 8 the command line by the -e option. 9 10 The supported escapes (assuming the default ‘~’) are: 11 12 ~. Disconnect. 13 14 ~^Z Background ssh. 15 16 ~# List forwarded connections. 17 18 ~& Background ssh at logout when waiting for forwarded connection / X11 sessions to terminate. 19 20 ~? Display a list of escape characters. 21 22 ~B Send a BREAK to the remote system (only useful for SSH protocol version 2 and if the peer sup‐ 23 ports it). 24 25 ~C Open command line. Currently this allows the addition of port forwardings using the -L, -R and 26 -D options (see above). It also allows the cancellation of existing port-forwardings with 27 -KL[bind_address:]port for local, -KR[bind_address:]port for remote and -KD[bind_address:]port 28 for dynamic port-forwardings. !command allows the user to execute a local command if the 29 PermitLocalCommand option is enabled in ssh_config(5). Basic help is available, using the -h 30 option. 31 32 ~R Request rekeying of the connection (only useful for SSH protocol version 2 and if the peer sup‐ 33 ports it). 34 35 ~V Decrease the verbosity (LogLevel) when errors are being written to stderr. 36 37 ~v Increase the verbosity (LogLevel) when errors are being written to stderr.