OnWorks favicon

lshg - Online in the Cloud

Run lshg in OnWorks free hosting provider over Ubuntu Online, Fedora Online, Windows online emulator or MAC OS online emulator

This is the command lshg that can be run in the OnWorks free hosting provider using one of our multiple free online workstations such as Ubuntu Online, Fedora Online, Windows online emulator or MAC OS online emulator



lshg - secsh (SSH2) client




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 machine.


Print huge amounts of debug information

--log-file=File name
Append messages to this file.

-q, --quiet
Suppress all warnings and diagnostic messages

Detailed trace

-v, --verbose
Verbose diagnostic messages

Program to use for reading passwords. Should be an absolute filename.

-l, --user=User name
Login as this user.

-p, --port=Port
Connect to this port.


-B, --background
Put 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 (suppresses the default action, which is to spawn a remote shell)

Connect to given subsystem. Implies --no-pty.

-S, --shell=command
Spawn a remote shell

Universal not:

-n, --no
Inverts the effect of the next modifier

Modifiers that apply to port forwarding:

-g, --remote-peers
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 (default).

Don't request a remote pty.

Redirect stderr to /dev/null

Redirect stdin from /dev/null

Redirect stdout to /dev/null

Redirect stderr

Redirect stdin

Redirect stdout

-t, --pty
Request a remote pty (default).

Miscellaneous options:

-e, --escape-char=Character
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.

-?, --help
Give this help list

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.


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 <[email protected]>.


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 for details.

Use lshg online using onworks.net services

Free Servers & Workstations

Download Windows & Linux apps

  • 1
    Alt-F provides a free and open source
    alternative firmware for the DLINK
    DNS-320/320L/321/323/325/327L and
    DNR-322L. Alt-F has Samba and NFS;
    supports ext2/3/4...
    Download Alt-F
  • 2
    Usm is a unified slackware package
    manager that handles automatic
    dependency resolution. It unifies
    various package repositories including
    slackware, slacky, p...
    Download usm
  • 3
    Chart.js is a Javascript library that
    allows designers and developers to draw
    all kinds of charts using the HTML5
    canvas element. Chart js offers a great
    array ...
    Download Chart.js
  • 4
    iReport-Designer for JasperReports
    iReport-Designer for JasperReports
    NOTE: iReport/Jaspersoft Studio Support
    Announcement: As of version 5.5.0,
    Jaspersoft Studio will be the official
    design client for JasperReports. iReport
    Download iReport-Designer for JasperReports
  • 5
    PostInstallerF will install all the
    software that Fedora Linux and others
    doesn't include by default, after
    running Fedora for the first time. Its
    easy for...
    Download PostInstallerF
  • 6
    The strace project has been moved to
    https://strace.io. strace is a
    diagnostic, debugging and instructional
    userspace tracer for Linux. It is used
    to monitor a...
    Download strace
  • More »

Linux commands