From 66f53a3c51e803ba7a93e292d204e424efff4dd2 Mon Sep 17 00:00:00 2001 From: Matt Johnston Date: Wed, 2 Sep 2009 14:47:12 +0000 Subject: - Set $SSH_CONNECTION - Document environment variables in the manpage --- dropbear.8 | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) (limited to 'dropbear.8') 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 " ". + +.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 -- cgit v1.2.1