You can use fsh to connect to a remote system via a tunnel.
fsh [ -r method ] [ -l login ] server command args...
The method argument should be an rsh-compatible program.
The default value is ssh.
The login argument specifies the user name that should be used on
the remote system.
Examples:
fsh sally.lysator.liu.se echo hej fsh -r lsh biffen.signum.se head -43 /etc/termcap fsh -l root -r lsh biffen.signum.se head -43 /etc/termcap
If no fshd with the approriate options is running one will be
started by fsh. The exit value of fsh will be the exit
value of the command that is executed remotely.
The remote command will be executed via whatever $SHELL is set to
when the user logs in to the remote system. It might be instructive to
run `fsh sally env' to see what the remote environment really looks
like. If you do not like it, you should consult the documentation for
the underlying transport (such as ssh)--fsh does not alter
the environment.
Go to the first, previous, next, last section, table of contents.