login about faq

What escape sequences are used in Tectia Clients on Unix?

asked Jan 11 '11 at 13:32

SSH%20KB's gravatar image


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%20KB's gravatar image


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.


answered Sep 19 '11 at 16:02

Roman's gravatar image

Roman ♦♦

edited Sep 19 '11 at 16:03

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here



Answers and Comments

Markdown Basics

  • *italic* or __italic__
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported



Asked: Jan 11 '11 at 13:32

Seen: 5,666 times

Last updated: Sep 19 '11 at 16:03

All user contributed content licensed under the cc-by-sa license.
Powered by OSQA.