diff dropbear.8 @ 569:6f472dc54da7

- Set $SSH_CONNECTION - Document environment variables in the manpage
author Matt Johnston <matt@ucc.asn.au>
date Wed, 02 Sep 2009 14:47:12 +0000
parents fe30d2a2d626
children c470649fb627
line wrap: on
line diff
--- a/dropbear.8	Tue Sep 01 16:38:26 2009 +0000
+++ b/dropbear.8	Wed Sep 02 14:47:12 2009 +0000
@@ -154,6 +154,34 @@
 disabled at compile-time). This can also be disabled per-user
 by creating a file ~/.hushlogin .
 
+.SH ENVIRONMENT VARIABLES
+Dropbear sets the standard variables USER, LOGNAME, HOME, SHELL, PATH, and TERM.
+
+The variables below are set for sessions as appropriate. 
+
+.TP
+.B SSH_TTY
+This is set to the allocated TTY if a PTY was used.
+
+.TP
+.B SSH_CONNECTION
+Contains "<remote_ip> <remote_port> <local_ip> <local_port>".
+
+.TP
+.B DISPLAY
+Set X11 forwarding is used.
+
+.TP
+.B SSH_ORIGINAL_COMMAND
+If a 'command=' authorized_keys option was used, the original command is specified
+in this variable. If a shell was requested this is set to an empty value.
+
+.TP
+.B SSH_AUTH_SOCK
+Set to a forwarded ssh-agent connection.
+
+
+
 .SH AUTHOR
 Matt Johnston ([email protected]).
 .br