diff options
Diffstat (limited to 'ssh.1')
-rw-r--r-- | ssh.1 | 63 |
1 files changed, 38 insertions, 25 deletions
@@ -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 | |||
243 | the remote command or shell will be automatically encrypted. | 243 | the remote command or shell will be automatically encrypted. |
244 | .Pp | 244 | .Pp |
245 | If a pseudo-terminal has been allocated (normal login session), the | 245 | If a pseudo-terminal has been allocated (normal login session), the |
246 | user can disconnect with | 246 | user may use the escape characters noted below. |
247 | .Ic ~. , | ||
248 | and suspend | ||
249 | .Nm | ||
250 | with | ||
251 | .Ic ~^Z . | ||
252 | All forwarded connections can be listed with | ||
253 | .Ic ~# | ||
254 | and if | ||
255 | the session blocks waiting for forwarded X11 or TCP/IP | ||
256 | connections 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 | ||
259 | shell to hang). | ||
260 | All available escapes can be listed with | ||
261 | .Ic ~? . | ||
262 | .Pp | ||
263 | A single tilde character can be sent as | ||
264 | .Ic ~~ | ||
265 | (or by following the tilde by a character other than those described above). | ||
266 | The escape character must always follow a newline to be interpreted as | ||
267 | special. | ||
268 | The escape character can be changed in configuration files | ||
269 | or on the command line. | ||
270 | .Pp | 247 | .Pp |
271 | If no pseudo tty has been allocated, the | 248 | If no pseudo tty has been allocated, the |
272 | session is transparent and can be used to reliably transfer binary | 249 | 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 | |||
281 | of | 258 | of |
282 | .Nm ssh . | 259 | .Nm ssh . |
283 | .Pp | 260 | .Pp |
261 | .Ss Escape Characters | ||
262 | .Pp | ||
263 | When a pseudo terminal has been requested, ssh supports a number of functions | ||
264 | through the use of an escape charater. | ||
265 | .Pp | ||
266 | A single tilde character can be sent as | ||
267 | .Ic ~~ | ||
268 | (or by following the tilde by a character other than those described above). | ||
269 | The escape character must always follow a newline to be interpreted as | ||
270 | special. | ||
271 | The escape character can be changed in configuration files using the | ||
272 | .Cm EscapeChar | ||
273 | configuration directive or on the command line by the | ||
274 | .Fl e | ||
275 | option. | ||
276 | .Pp | ||
277 | The supported escapes (assuming the default | ||
278 | .Ql ~ ) | ||
279 | are: | ||
280 | .Bl -tag -width Ds | ||
281 | .It Cm ~. | ||
282 | Disconnect | ||
283 | .It Cm ~^Z | ||
284 | Background ssh | ||
285 | .It Cm ~# | ||
286 | List forwarded connections | ||
287 | .It Cm ~& | ||
288 | Background ssh at logout when waiting for forwarded connection / X11 sessions | ||
289 | to terminate (this does not currently work for SSH protocol version 2) | ||
290 | .It Cm ~? | ||
291 | Display a list of escape characters | ||
292 | .It Cm ~R | ||
293 | Request rekeying of connection (only useful for SSH protocol version 2 and if | ||
294 | the peer supports it) | ||
295 | .El | ||
296 | .Pp | ||
284 | .Ss X11 and TCP forwarding | 297 | .Ss X11 and TCP forwarding |
285 | .Pp | 298 | .Pp |
286 | If the user is using X11 (the | 299 | If the user is using X11 (the |