SSHNET(4) SSHNET(4)
NAME
sshnet - secure tcp port forwarding
SYNOPSIS
sshnet [ -m mtpt ] [ -s service ] [ -- ssh-options ] [
user@]host
DESCRIPTION
The SSH protocol allows clients to make outgoing and incom-
ing TCP calls via the server. Sshnet establishes an SSH
connection and, rather than execute a remote command, pre-
sents the remote server's TCP stack as a network stack (see
the discussion of TCP in ip(3)) mounted before mtpt (default
/net), optionally posting a 9P service descriptor for the
new file system as /srv/service. All other arguments are
passed to ssh(1) as is.
For dial(2) operations, name resolution happens on the
remote side as sshnet serves a mtpt/cs file that passes the
hostname to the connect dial string. Other query operations
are passed verbatim to the original connection service at
mtpt/cs.
SOURCE
/sys/src/cmd/sshnet.c
SEE ALSO
ssh(1), ip(3)
Page 1 Plan 9 (printed 11/6/25)