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 -B write the pid of the backgrounded process to stdout. receipts, bestie 🧾
  • -G β€” if no usable gateway is found, launch lsh instead. 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