What escape sequences are used in Tectia Clients on Unix?
asked Jan 11 '11 at 13:32
SSH KB ♦
The escape sequences provide meta information about the connection in command line clients on Unix.
The escape character by default is ~ (tilde) but it can be changed by giving "-e escape-char" on the command-line to sshg3. Escape sequences must be typed directly after a new line character (i.e. press Enter first).
To see connection statistics and cryptographic algorithms in use, give the escape sequence ~s, and to see statistics for individual channels use ~c. The sequence ~# gives a list of forwarded connections. (Note that the escape sequences are not displayed on screen during typing.)
Typically, in Unix shells, Ctrl-Z suspends the job that is on the foreground. In a secure shell session, this applies to jobs running in the remote shell. If you want to suspend the secure shell session itself, you can use the escape sequence ~Ctrl-Z.
There are a couple more sequences, e.g. for initiating re-keying manually, terminating the connection, or disabling the escape character for the rest of the session. To see a list of available escape sequences, you can use the escape sequence ~?.
Below is an example output from pressing ~? on Tectia Client 6.0.11 on Linux. The tilde and question mark are not echoed on the screen:
$ sshg3: SSH Tectia Client 6.0.11 on i686-pc-linux-gnu Build: 5 Product: SSH Tectia ConnectSecure License type: commercial Supported escape sequences: ~. - terminate connection ~^Z - suspend ssh ~# - list forwarded connections ~- - disable escape character uncancellably ~? - this message ~~ - send the escape character by typing it twice ~V - dump version information to stderr ~s - dump statistics and connection information to stderr ~c - dump statistics and information about individual channels ~r - initiate rekey immediately with old algorithms (ie. changes encryption and integrity keys) ~l - go to line mode (keystrokes are gathered to an internal buffer, and will be output all at once when you enter a newline) (Note that escapes are only recognized immediately after newline.)
answered Jan 11 '11 at 13:34
SSH KB ♦
As of Tectia Client version 6.2.0 the following escape sequences have been added:
~u - Uploads the chosen public key automatically to the server. If the user has only one key, it will be uploaded. Otherwise the largest key with a name that matches id_dsa_<size>_a will be selected. ~U - Uploads a public key to the server. A list of available keys is printed and the user is prompted to select one to be uploaded.
You can read more about these options in this question.