mirror of git://anongit.mindrot.org/openssh.git
- djm@cvs.openbsd.org 2001/04/20 07:17:51
[clientloop.c ssh.1] Split out and improve escape character documentation, mention ~R in ~? help text; ok markus@
This commit is contained in:
parent
82f077d0dc
commit
9ffdcb5478
|
@ -1,3 +1,10 @@
|
||||||
|
20010421
|
||||||
|
- OpenBSD CVS Sync
|
||||||
|
- djm@cvs.openbsd.org 2001/04/20 07:17:51
|
||||||
|
[clientloop.c ssh.1]
|
||||||
|
Split out and improve escape character documentation, mention ~R in
|
||||||
|
~? help text; ok markus@
|
||||||
|
|
||||||
20010420
|
20010420
|
||||||
- OpenBSD CVS Sync
|
- OpenBSD CVS Sync
|
||||||
- ian@cvs.openbsd.org 2001/04/18 16:21:05
|
- ian@cvs.openbsd.org 2001/04/18 16:21:05
|
||||||
|
@ -5187,4 +5194,4 @@
|
||||||
- Wrote replacements for strlcpy and mkdtemp
|
- Wrote replacements for strlcpy and mkdtemp
|
||||||
- Released 1.0pre1
|
- Released 1.0pre1
|
||||||
|
|
||||||
$Id: ChangeLog,v 1.1147 2001/04/20 04:59:22 mouring Exp $
|
$Id: ChangeLog,v 1.1148 2001/04/20 12:50:51 mouring Exp $
|
||||||
|
|
|
@ -59,7 +59,7 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "includes.h"
|
#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 "ssh.h"
|
||||||
#include "ssh1.h"
|
#include "ssh1.h"
|
||||||
|
@ -566,6 +566,7 @@ process_escapes(Buffer *bin, Buffer *bout, Buffer *berr, char *buf, int len)
|
||||||
"%c?\r\n\
|
"%c?\r\n\
|
||||||
Supported escape sequences:\r\n\
|
Supported escape sequences:\r\n\
|
||||||
~. - terminate connection\r\n\
|
~. - terminate connection\r\n\
|
||||||
|
~R - Request rekey (SSH protocol 2 only)\r\n\
|
||||||
~^Z - suspend ssh\r\n\
|
~^Z - suspend ssh\r\n\
|
||||||
~# - list forwarded connections\r\n\
|
~# - list forwarded connections\r\n\
|
||||||
~& - background ssh (when waiting for connections to terminate)\r\n\
|
~& - background ssh (when waiting for connections to terminate)\r\n\
|
||||||
|
|
63
ssh.1
63
ssh.1
|
@ -34,7 +34,7 @@
|
||||||
.\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
|
.\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
|
||||||
.\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
.\" 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
|
.Dd September 25, 1999
|
||||||
.Dt SSH 1
|
.Dt SSH 1
|
||||||
.Os
|
.Os
|
||||||
|
@ -243,30 +243,7 @@ All communication with
|
||||||
the remote command or shell will be automatically encrypted.
|
the remote command or shell will be automatically encrypted.
|
||||||
.Pp
|
.Pp
|
||||||
If a pseudo-terminal has been allocated (normal login session), the
|
If a pseudo-terminal has been allocated (normal login session), the
|
||||||
user can disconnect with
|
user may use the escape characters noted below.
|
||||||
.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.
|
|
||||||
.Pp
|
.Pp
|
||||||
If no pseudo tty has been allocated, the
|
If no pseudo tty has been allocated, the
|
||||||
session is transparent and can be used to reliably transfer binary
|
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
|
of
|
||||||
.Nm ssh .
|
.Nm ssh .
|
||||||
.Pp
|
.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
|
.Ss X11 and TCP forwarding
|
||||||
.Pp
|
.Pp
|
||||||
If the user is using X11 (the
|
If the user is using X11 (the
|
||||||
|
|
Loading…
Reference in New Issue