summaryrefslogtreecommitdiff
path: root/ssh.1
diff options
context:
space:
mode:
Diffstat (limited to 'ssh.1')
-rw-r--r--ssh.163
1 files changed, 38 insertions, 25 deletions
diff --git a/ssh.1 b/ssh.1
index 9e0298bd3..db894af9b 100644
--- a/ssh.1
+++ b/ssh.1
@@ -34,7 +34,7 @@
34.\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 34.\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
35.\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 35.\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
36.\" 36.\"
37.\" $OpenBSD: ssh.1,v 1.103 2001/04/17 10:53:26 markus Exp $ 37.\" $OpenBSD: ssh.1,v 1.104 2001/04/20 07:17:51 djm Exp $
38.Dd September 25, 1999 38.Dd September 25, 1999
39.Dt SSH 1 39.Dt SSH 1
40.Os 40.Os
@@ -243,30 +243,7 @@ All communication with
243the remote command or shell will be automatically encrypted. 243the remote command or shell will be automatically encrypted.
244.Pp 244.Pp
245If a pseudo-terminal has been allocated (normal login session), the 245If a pseudo-terminal has been allocated (normal login session), the
246user can disconnect with 246user may use the escape characters noted below.
247.Ic ~. ,
248and suspend
249.Nm
250with
251.Ic ~^Z .
252All forwarded connections can be listed with
253.Ic ~#
254and if
255the session blocks waiting for forwarded X11 or TCP/IP
256connections to terminate, it can be backgrounded with
257.Ic ~&
258(this should not be used while the user shell is active, as it can cause the
259shell to hang).
260All available escapes can be listed with
261.Ic ~? .
262.Pp
263A single tilde character can be sent as
264.Ic ~~
265(or by following the tilde by a character other than those described above).
266The escape character must always follow a newline to be interpreted as
267special.
268The escape character can be changed in configuration files
269or on the command line.
270.Pp 247.Pp
271If no pseudo tty has been allocated, the 248If no pseudo tty has been allocated, the
272session is transparent and can be used to reliably transfer binary 249session 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
281of 258of
282.Nm ssh . 259.Nm ssh .
283.Pp 260.Pp
261.Ss Escape Characters
262.Pp
263When a pseudo terminal has been requested, ssh supports a number of functions
264through the use of an escape charater.
265.Pp
266A single tilde character can be sent as
267.Ic ~~
268(or by following the tilde by a character other than those described above).
269The escape character must always follow a newline to be interpreted as
270special.
271The escape character can be changed in configuration files using the
272.Cm EscapeChar
273configuration directive or on the command line by the
274.Fl e
275option.
276.Pp
277The supported escapes (assuming the default
278.Ql ~ )
279are:
280.Bl -tag -width Ds
281.It Cm ~.
282Disconnect
283.It Cm ~^Z
284Background ssh
285.It Cm ~#
286List forwarded connections
287.It Cm ~&
288Background ssh at logout when waiting for forwarded connection / X11 sessions
289to terminate (this does not currently work for SSH protocol version 2)
290.It Cm ~?
291Display a list of escape characters
292.It Cm ~R
293Request rekeying of connection (only useful for SSH protocol version 2 and if
294the peer supports it)
295.El
296.Pp
284.Ss X11 and TCP forwarding 297.Ss X11 and TCP forwarding
285.Pp 298.Pp
286If the user is using X11 (the 299If the user is using X11 (the