diff options
author | Damien Miller <djm@cvs.openbsd.org> | 2001-04-20 07:17:52 +0000 |
---|---|---|
committer | Damien Miller <djm@cvs.openbsd.org> | 2001-04-20 07:17:52 +0000 |
commit | 6eeb74942193c6d9198e6229b7d465d6d88d1429 (patch) | |
tree | cfff922181bbdb82fd2b4900b589656fb5ce5c30 | |
parent | ac397fa9882ff77bc8c99ee4919d4ca67514f722 (diff) |
Split out and improve escape character documentation, mention ~R in
~? help text; ok markus@
-rw-r--r-- | usr.bin/ssh/clientloop.c | 3 | ||||
-rw-r--r-- | usr.bin/ssh/ssh.1 | 63 |
2 files changed, 40 insertions, 26 deletions
diff --git a/usr.bin/ssh/clientloop.c b/usr.bin/ssh/clientloop.c index 2709ce356f0..369ffe4acf8 100644 --- a/usr.bin/ssh/clientloop.c +++ b/usr.bin/ssh/clientloop.c @@ -59,7 +59,7 @@ */ #include "includes.h" -RCSID("$OpenBSD: clientloop.c,v 1.64 2001/04/17 09:52:48 markus Exp $"); +RCSID("$OpenBSD: clientloop.c,v 1.65 2001/04/20 07:17:51 djm Exp $"); #include "ssh.h" #include "ssh1.h" @@ -566,6 +566,7 @@ process_escapes(Buffer *bin, Buffer *bout, Buffer *berr, char *buf, int len) "%c?\r\n\ Supported escape sequences:\r\n\ ~. - terminate connection\r\n\ +~R - Request rekey (SSH protocol 2 only)\r\n\ ~^Z - suspend ssh\r\n\ ~# - list forwarded connections\r\n\ ~& - background ssh (when waiting for connections to terminate)\r\n\ diff --git a/usr.bin/ssh/ssh.1 b/usr.bin/ssh/ssh.1 index 9e0298bd3e0..db894af9bc9 100644 --- a/usr.bin/ssh/ssh.1 +++ b/usr.bin/ssh/ssh.1 @@ -34,7 +34,7 @@ .\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF .\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. .\" -.\" $OpenBSD: ssh.1,v 1.103 2001/04/17 10:53:26 markus Exp $ +.\" $OpenBSD: ssh.1,v 1.104 2001/04/20 07:17:51 djm Exp $ .Dd September 25, 1999 .Dt SSH 1 .Os @@ -243,30 +243,7 @@ All communication with the remote command or shell will be automatically encrypted. .Pp If a pseudo-terminal has been allocated (normal login session), the -user can disconnect with -.Ic ~. , -and suspend -.Nm -with -.Ic ~^Z . -All forwarded connections can be listed with -.Ic ~# -and if -the session blocks waiting for forwarded X11 or TCP/IP -connections to terminate, it can be backgrounded with -.Ic ~& -(this should not be used while the user shell is active, as it can cause the -shell to hang). -All available escapes can be listed with -.Ic ~? . -.Pp -A single tilde character can be sent as -.Ic ~~ -(or by following the tilde by a character other than those described above). -The escape character must always follow a newline to be interpreted as -special. -The escape character can be changed in configuration files -or on the command line. +user may use the escape characters noted below. .Pp If no pseudo tty has been allocated, the session is transparent and can be used to reliably transfer binary @@ -281,6 +258,42 @@ The exit status of the remote program is returned as the exit status of .Nm ssh . .Pp +.Ss Escape Characters +.Pp +When a pseudo terminal has been requested, ssh supports a number of functions +through the use of an escape charater. +.Pp +A single tilde character can be sent as +.Ic ~~ +(or by following the tilde by a character other than those described above). +The escape character must always follow a newline to be interpreted as +special. +The escape character can be changed in configuration files using the +.Cm EscapeChar +configuration directive or on the command line by the +.Fl e +option. +.Pp +The supported escapes (assuming the default +.Ql ~ ) +are: +.Bl -tag -width Ds +.It Cm ~. +Disconnect +.It Cm ~^Z +Background ssh +.It Cm ~# +List forwarded connections +.It Cm ~& +Background ssh at logout when waiting for forwarded connection / X11 sessions +to terminate (this does not currently work for SSH protocol version 2) +.It Cm ~? +Display a list of escape characters +.It Cm ~R +Request rekeying of connection (only useful for SSH protocol version 2 and if +the peer supports it) +.El +.Pp .Ss X11 and TCP forwarding .Pp If the user is using X11 (the |