LSH(1)
π NAME π
lsh β your girl for a secsh (SSH2) client, no cap πΈ
β¨ SYNOPSIS β¨
lsh [OPTION...] HOST [COMMAND]
π¦ DESCRIPTION π¦
CAUTION! bestie, the tea in this manpage might be invalid or outdated, fr. For the authorative info on lsh, go read the Texinfo manual (it's down in SEE ALSO, iykyk).
Okay so what does lsh actually do? It connects to the remote machine HOST and performs one or more actions, like command execution and various forwarding services. The default action is to start a remote interactive shell or execute a given command on the remote machine. Main character energy honestly π
π OPTIONS π
--capture-to=Fileβ when a new hostkey shows up, it appends an ACL expressing trust in the key. In sloppy mode, the default is~/.lsh/captured_keys. Obsessed π«Ά--dh-keyexchangeβ enables DH support (this is the default, unless SRP is being used).--host-db=Filenameβ by default it's~/.lsh/host-acls-i,--identity=Identity keyβ use this key to authenticate, periodt.--no-dh-keyexchangeβ disables DH support.--no-publickeyβ don't even try publickey user authentication.--no-srp-keyexchangeβ disables the experimental SRP support (this one's the default).--publickeyβ try publickey user authentication (default).--sloppy-host-authenticationβ allows untrusted hostkeys π (yes, that's really what it's called)--srp-keyexchangeβ enables the experimental SRP support.--strict-host-authenticationβ never, never, ever trust an unknown hostkey. (default) literally never--debugβ prints huge amounts of debug information π₯--log-file=File nameβ appends messages to this file.-q,--quietβ suppresses all warnings and diagnostic messages π€«--traceβ detailed trace.-v,--verboseβ verbose diagnostic messages.
π Algorithm selection π
-c,--crypto=Algorithm--hostkey-algorithm=Algorithm--list-algorithmsβ lists supported algorithms.-m,--mac=Algorithm-z,--compression[=Algorithm]β default iszlib.
π and also these π
--askpass=Programβ the program to use for reading passwords. Should be an absolute filename, okay?-l,--user=User nameβ login as this user.-p,--port=Portβ connect to this port.
π Actions π
-B,--backgroundβ puts the process into the background. Implies-N.-D,--forward-socks[=port]β enable socks dynamic forwarding-E,--execute=commandβ execute a command on the remote machine-L,--forward-local-port=local-port:target-host:target-port-N,--nopβ no operation (this suppresses the default action, which is to spawn a remote shell)--subsystem=subsystem-nameβ connect to the given subsystem. Implies--no-pty.-S,--shell=commandβ spawn a remote shell
π Universal not π
-n,--noβ inverts the effect of the next modifier. iconic.
πΈ Modifiers that apply to port forwarding πΈ
-g,--remote-peersβ allow remote access to forwarded ports--no-remote-peersβ disallow remote access to forwarded ports (default).
π§ Modifiers that apply to remote execution π§
--detachβ detach from terminal at session end.--no-detachβ do not detach session at end, wait for all open channels (default).--no-ptyβ don't request a remote pty.--no-stderrβ redirect stderr to/dev/null--no-stdinβ redirect stdin from/dev/null--no-stdoutβ redirect stdout to/dev/null--stderr=Filenameβ redirect stderr--stdin=Filenameβ redirect stdin--stdout=Filenameβ redirect stdout-t,--ptyβ request a remote pty (default).
π Miscellaneous options π
-e,--escape-char=Characterβ escape char.nonemeans disable. The default is to use~if we have a tty, otherwise none.--write-pidβ makes-Bwrite the pid of the backgrounded process to stdout.-G,--gatewayβ set up a local gateway-R,--forward-remote-port=remote-port:target-host:target-port--no-x11-forwardβ disable X11 forwarding (default).-x,--x11-forwardβ enable X11 forwarding.-?,--helpβ give this help list--usageβ give a short usage message-V,--versionβ print program version
π FILES π
$HOME/.lsh/captured_keys
is the default file used for storing keys captured when connecting to hosts with keys that weren't previously accepted (peep the --capture-to option).
$HOME/.lsh/host_acls
is the default file containing accepted keys (peep the --host-db option).
$HOME/.lsh/identity
is the key file lsh attempts to use by default (peep the --identity option).
π DIAGNOSTICS π
Go look at the --verbose, --trace and --debug options. that's the whole section bestie π
π REPORTING BUGS π
Report bugs to <bug-lsh@gnu.org>.
π± ENVIRONMENT π±
LSH_YARROW_SEED_FILEmay be used to specify the random seed file.LSHFLAGSmay be used for passing additional parameters. The parsing order is undefined.
β COPYING β
The lsh suite of programs is distributed under the GNU General Public License; see the COPYING and AUTHORS files in the source distribution for details.
π AUTHOR π
The lsh program suite is written mainly by Niels MΓΆller <nisse@lysator.liu.se>.
This man-page was originally written by J.H.M. Dassen (Ray) <jdassen@wi.LeidenUniv.nl>. It was modified and updated for lsh 2.0 by Pontus Freyhult <pont_lsh@soua.net>. shoutout to the icons π
π SEE ALSO π
lsftp(1), lshg(1), lsh-authorize(1), lsh-keygen(1), lsh-make-seed(1), lsh-upgrade(1), lsh-upgrade-key(1), lsh-writekey(1), lshd(8), ssh-conv(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 command
info lsh
should give you access to the complete manual. slay π
and that's a wrap, bestie π«Ά this page is from the LSH manuals, dated NOVEMBER 2004, and it's the LSH(1) one β¨ go forth and ssh responsibly πΈ
π¦ where this page comes from
- debian bookworm: lsh-client 2.1-13+b1
- ubuntu jammy: lsh-client 2.1-13
- ubuntu noble: lsh-client 2.1-14build2
- ubuntu resolute: lsh-client 2.1-14build2
- ubuntu stonking: lsh-client 2.1-14build2
- Copyright (C) 1999 J.H.M. Dassen (Ray) <jdassen@wi.LeidenUniv.nl>
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms