shithub: front

ref: 21d7790b3b0dde7f2a641d8815f66dec5cef6d2c
dir: /sys/man/4/sshnet/

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