LSHG(1)
π LSHG β the secsh (SSH2) client, but make it a group chat
okay so bestie, welcome to lshg(1) from the Lsh Manuals β she's a secsh (SSH2) client and she's here to connect you to a remote machine through a gateway you already set up. let's get into it π
β¨ NAME β¨
lshg β secsh (SSH2) client. that's it, that's the girl. π
πΈ SYNOPSIS πΈ
lshg [OPTION...] HOST [COMMAND]
π¦ DESCRIPTION π¦
β οΈ 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).
so basically β lshg connects to the remote machine HOST through a previously established lsh gateway, and then performs one or more actions, like command execution or various forwarding services. the default action is to start a remote interactive shell, or execute a given command on the remote machine. iconic behavior honestly β¨
π OPTIONS π
--debugβ print huge amounts of debug information. like, huge. not me turning the whole terminal into a novel π--log-file=File nameβ append messages to this file. journaling era π-q,--quietβ suppress all warnings and diagnostic messages. silence is golden, periodt π--traceβ detailed trace. even more detail than you're ready for π-v,--verboseβ verbose diagnostic messages. she talks. a lot. π£οΈ--askpass=Programβ program to use for reading passwords. should be an absolute filename. (absolute. like,/full/path/energy. no shortcuts bestie) π-l,--user=User nameβ login as this user. main character rebrand π-p,--port=Portβ connect to this port. knock knock πͺ
π₯ Actions π₯
-B,--backgroundβ put process into the background. implies-N. she's gonna go do her own thing, don't wait up π¦-D,--forward-socks[=port]β enable socks dynamic forwarding. socks! π§¦-E,--execute=commandβ execute a command on the remote machine. go girl, do the thing β¨-L,--forward-local-port=local-port:target-host:target-portβ (no description given, it's giving mystery π«Ά)-N,--nopβ no operation (suppresses the default action, which is to spawn a remote shell). the "i'm just here for the vibes" flag π--subsystem=subsystem-nameβ connect to given subsystem. implies--no-pty. π-S,--shell=commandβ spawn a remote shell. her natural habitat π
π Universal not π
-n,--noβ inverts the effect of the next modifier. uno reverse card, no cap π
π§ Modifiers that apply to port forwarding π§
-g,--remote-peersβ allow remote access to forwarded ports. come on in, the door's open πͺβ¨--no-remote-peersβ disallow remote access to forwarded ports (default). door's locked, sorry bestie π
β Modifiers that apply to remote execution β
--detachβ detach from terminal at session end. goodbye, i'm a ghost π»--no-detachβ do not detach session at end, wait for all open channels (default). she's clingy in the best way π«Ά--no-ptyβ don't request a remote pty. no fake terminal for you π ββοΈ--no-stderrβ redirect stderr to/dev/null. bye bye error messages π--no-stdinβ redirect stdin from/dev/null. nothing's coming in π«--no-stdoutβ redirect stdout to/dev/null. nothing's coming out either π--stderr=Filenameβ redirect stderr. send the drama somewhere specific π--stdin=Filenameβ redirect stdin. π--stdout=Filenameβ redirect stdout. β¨-t,--ptyβ request a remote pty (default). fake terminal, activated π
π Miscellaneous options π
-e,--escape-char=Characterβ escape char.`none'means disable. default is to use`~'if we have a tty, otherwise none. the little~that saves your whole life iykyk πΈ--write-pidβ make-Bwrite the pid of the backgrounded process to stdout. receipts, bestie π§Ύ-Gβ if no usable gateway is found, launchlshinstead. the backup plan, the safety net, the girl who's got you π--send-debug=Messageβ send a debug message to the remote machine. π¨--send-ignore=Messageβ send an ignore message to the remote machine. π-?,--helpβ give this help list. help me help you π«Ά--usageβ give a short usage message. the tldr π-V,--versionβ print program version. she's v-ing herself π
π Mandatory or optional arguments to long options are also mandatory or optional for any corresponding short options. (yes, the long and short versions stay in sync, they're matching, it's a coordinated outfit π)
π DIAGNOSTICS π
see the --verbose, --trace and --debug options. that's where all the tea is β
π¦ EXAMPLES π¦
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. so: gateway if she's available, lsh if she's not. flexible queen π
π REPORTING BUGS π
report bugs to <bug-lsh@gnu.org>. tell them everything, they want to know π«Ά
π ENVIRONMENT π
LSHG_FLAGS may be used for passing additional parameters. the parsing order is undefined. (undefined!! so don't count on an order, bestie, it's chaos energy π)
π 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. legal slay βοΈβ¨
π AUTHOR π
the lsh program suite is written mainly by Niels MΓΆller <nisse@lysator.liu.se>.
this man-page was written for lsh 2.0 by Pontus Freyhult <pont_lsh@soua.net>, it is based on a template written by J.H.M. Dassen (Ray) <jdassen@wi.LeidenUniv.nl>. legends, all of them π«‘
πΈ SEE ALSO πΈ
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), lshd(8), ssh-conv(1) β the whole friend group π
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. go read it, it's giving lore πβ¨
aaaand that's the whole page bestie!! π this one came from the Lsh manual set, dated November 2004 β vintage, iconic, still slaying π π¦π
π¦ 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