summaryrefslogtreecommitdiff
path: root/dropbear.8
diff options
context:
space:
mode:
authorMatt Johnston <matt@ucc.asn.au>2009-09-02 14:47:12 +0000
committerMatt Johnston <matt@ucc.asn.au>2009-09-02 14:47:12 +0000
commit66f53a3c51e803ba7a93e292d204e424efff4dd2 (patch)
treec37a074e1914c00b734910d288c75d2a9418b5a3 /dropbear.8
parente5b46f28b1739d7950b0b5c6fd28293e0bc1df73 (diff)
downloaddropbear-66f53a3c51e803ba7a93e292d204e424efff4dd2.tar.gz
- Set $SSH_CONNECTION
- Document environment variables in the manpage
Diffstat (limited to 'dropbear.8')
-rw-r--r--dropbear.828
1 files changed, 28 insertions, 0 deletions
diff --git a/dropbear.8 b/dropbear.8
index ecbad31..7d02e12 100644
--- a/dropbear.8
+++ b/dropbear.8
@@ -154,6 +154,34 @@ By default the file /etc/motd will be printed for any login shell (unless
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 (matt@ucc.asn.au).
.br