LSHD(8)
π«Ά lshd β the secsh (SSH2) server π«Ά
okay bestie, this is the lsh manual, section 8 (system administration, iykyk), and today's main character is lshd. pull up a chair, we're getting into it. π
β¨ NAME β¨
lshd β a secsh (SSH2) server. that's it, that's the vibe. she serves SSH2, she's the server, she's iconic. π
πΈ SYNOPSIS πΈ
lshd [OPTION...]
literally just lshd and then whatever options you're feeling. that's the whole entrance. π
π¦ DESCRIPTION π¦
CAUTION! the info in this manpage may be invalid or outdated, no cap. for the authorative (their spelling, not mine, we respect it) information on lsh, please go look at its Texinfo manual instead β check the SEE ALSO section down below, bestie. π
lshd is a server for the SSH-2 (secsh) protocol. that's the assignment. she's out here handling secsh so you don't have to. π«Ά
π OPTIONS π
Miscellaneous options
-h,--host-key=Key file β where the server's private key lives. the location, the spot, the address of it. π--interface=interface β listen on this network interface, specifically this one.-p,--port=Port β listen on this port. pick your port, own your port. π--debugβ print huge amounts of debug information. like, huge. enormous. unhinged quantities of debug. π--log-file=File name β append messages to this file.-q,--quietβ suppress all warnings and diagnostic messages. she's giving silence, she's giving peace. π€«--traceβ detailed trace.-v,--verboseβ verbose diagnostic messages.
Algorithm selection
-c,--crypto=Algorithm β pick your crypto algorithm.--hostkey-algorithm=Algorithm β pick your hostkey algorithm.--list-algorithmsβ list supported algorithms. window shopping, but for algorithms. ποΈ-m,--mac=Algorithm β pick your mac algorithm.-z,--compression[=Algorithm] β the default iszlib. the argument is optional, the slay is not.--banner-file=File name β banner file to send before the handshake. first impressions matter, bestie. β¨
Keyexchange options
--dh-keyexchangeβ enable DH support. this is the default. β--no-dh-keyexchangeβ disable DH support. no DH for you. π«--no-srp-keyexchangeβ disable experimental SRP support. this is the default.--srp-keyexchangeβ enable experimental SRP support. experimental, so, y'know. π
User authentication options
--kerberos-passwordsβ recognize kerberos passwords, using the helper program"/usr/local/sbin/lsh-krb-checkpw". heads up: this option is experimental. β οΈ--login-auth-modeβ enable a telnet like mode (accept none-authentication and launch thelogin-shell, making it responsible for authenticating the user). yes,thelogin-shellis one word there, we're keeping it exactly as written, periodt.--login-shell=Program β use this program as the login shell for all users. (Experimental)--no-kerberos-passwordsβ don't recognize kerberos passwords. this is the default behaviour.--no-login-auth-modeβ disable login-auth-mode. this is the default.--no-passwordβ disable password user authentication.--no-publickeyβ disable publickey user authentication.--no-root-loginβ don't allow root to login. this is the default. π‘οΈ--passwordβ enable password user authentication. this is the default.--password-helper=Program β use the named helper program for password verification. (Experimental).--publickeyβ enable publickey user authentication. this is the default.--root-loginβ allow root to login. (default is the opposite, see above, stay safe out there π«Ά)
Offered services
--no-pty-supportβ disable pty allocation.--no-tcpip-forwardβ disable tcpip forwarding.--no-x11-forwardβ disable x11 forwarding.--pty-supportβ enable pty allocation. this is the default.--subsystems=List of subsystem names and programs β for examplesftp=/usr/sbin/sftp-server,foosystem=/usr/bin/foo(experimental). look at her go. π₯--tcpip-forwardβ enable tcpip forwarding. this is the default.--x11-forwardβ enable x11 forwarding. this is the default.
Options controlling daemonic mode and related options
--daemonicβ run in the background, redirect stdio to/dev/null, and chdir to/. she's leaving the group chat and going off-grid. π--enable-coreβ dump core on fatal errors (disabled by default).--no-daemonicβ run in the foreground, with messages to stderr. this is the default.--no-pid-fileβ don't use any pid file. this is the default in non-daemonic mode.--no-syslogβ don't use syslog. (by default, syslog is used when running in daemonic mode.)--pid-file=file name β create a pid file. when running in daemonic mode, the default is/var/run/lshd.pid.
the lil guys at the bottom
-?,--helpβ give this help list. π₯Ί--usageβ give a short usage message.-V,--versionβ print program version.
π mandatory or optional arguments to long options are also mandatory or optional for any corresponding short options. like, the short option inherits the whole situation. it's giving inheritance. it's giving family resemblance.
π FILES π
lshd doesn't use any traditional configuration file, bestie β she's not like other servers. but she must have a random seed file and the server key. by default:
/var/spool/lsh/yarrow-seed-fileβ used as the random seed file (see ENVIRONMENT for how to change this)/etc/lsh_host_keyβ this is the default key file/var/run/lshd.pidβ used to store the process id of the server, by default
authorized keys are stored in the directory:
$HOME/.lsh/authorized_keys_sha1/
she's got her files, she's got her keys, she's got her seed. she's organized. ποΈβ¨
π DIAGNOSTICS π
log messages are normally sent to syslog(3) when running in daemonic mode.
go check out the --verbose, --trace and --debug options if you want more tea. β
π REPORTING BUGS π
report bugs to <bug-lsh@gnu.org>. be nice, be specific, include the details, bestie. π«Ά
π ENVIRONMENT π
LSH_YARROW_SEED_FILEmay be used to specify the random seed file.lshdmimics OpenSSH behaviour with respect toSSH_CLIENTandSSH_TTYfor processes it starts where applicable. she's flexible like that. π
π 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 girlies, rise. β
π 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 authors, no cap. π«‘
π§ SEE ALSO π§
lsftp(1), lsh(1), lsh-authorize(1), lsh-keygen(1), lsh-make-seed(1), lsh-upgrade(1), lsh-upgrade-key(1), lsh-writekey(1), secsh(5), sftp-server(8), syslogd(8)
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 the authorative source (their word, keeping it π ), and honestly? she ate. πβ¨
okay that's the whole page, bestie!! this one's from the Lsh Manuals, page LSHD(8), dated NOVEMBER 2004 β yeah, she's vintage, she's a classic, she's still serving. go run your server, protect your root login, and remember: read the Texinfo manual. mwah!! ππ¦πΈ
π¦ where this page comes from
- debian bookworm: lsh-server 2.1-13+b1
- ubuntu jammy: lsh-server 2.1-13
- ubuntu noble: lsh-server 2.1-14build2
- ubuntu resolute: lsh-server 2.1-14build2
- ubuntu stonking: lsh-server 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