lshg - secsh (SSH2) client
lshg [OPTION...] HOST [COMMAND]
CAUTION! The information in this manpage may be invalid or outdated.
For authorative information on lsh, please see it's Texinfo manual (see
the SEE ALSO section).
Connects to the the remote machine HOST through a previously
established lsh gateway and perform one or more actions, i.e. command
execution, various forwarding services. The default action is to start
a remote interactive shell or execute a given command on the remote
Print huge amounts of debug information
Append messages to this file.
Suppress all warnings and diagnostic messages
Verbose diagnostic messages
Program to use for reading passwords. Should be an absolute
-l, --user=User name
Login as this user.
Connect to this port.
Put process into the background. Implies -N.
-D, --forward-socks[=port] Enable socks dynamic forwarding
Execute a command on the remote machine
No operation (suppresses the default action, which is to spawn a
Connect to given subsystem. Implies --no-pty.
Spawn a remote shell
Inverts the effect of the next modifier
Modifiers that apply to port forwarding:
Allow remote access to forwarded ports
Disallow remote access to forwarded ports (default).
Modifiers that apply to remote execution:
Detach from terminal at session end.
Do not detach session at end, wait for all open channels
Don't request a remote pty.
Redirect stderr to /dev/null
Redirect stdin from /dev/null
Redirect stdout to /dev/null
Request a remote pty (default).
Escape char. `none' means disable. Default is to use `~' if we
have a tty, otherwise none.
Make -B write the pid of the backgrounded process to stdout.
-G If no usable gateway is found, launch lsh instead.
Send a debug message to the remote machine.
Send an ignore message to the remote machine.
Give this help list
Give a short usage message
Print program version
Mandatory or optional arguments to long options are also mandatory or
optional for any corresponding short options.
See the --verbose , --trace and --debug options.
Using the -G option, for example in LSHGFLAGS it's easy to use an
existing gateway if there is any and connect using lsh if not.
Report bugs to <firstname.lastname@example.org>.
LSHG_FLAGS may be used for passing additional parameters. The parsing
order is undefined.
The lsh suite of programs is distributed under the GNU General Public
License; see the COPYING and AUTHORS files in the source distribution
The lsh program suite is written mainly by Niels Moller
This man-page was written for lsh 2.0 by Pontus Freyhult
<email@example.com>, it is based on a template written by J.H.M. Dassen
lsftp(1), lsh(1), lsh-authorize(1), lsh-export-key(1), lsh-keygen(1),
lsh-make-seed(1), lsh-upgrade(1), lsh-upgrade-key(1), lsh-writekey(1),
The full documentation for lsh is maintained as a Texinfo manual. If
the info and lsh programs are properly installed at your site, the
should give you access to the complete manual.