相信大家都知道 ssh 可以组点对点网络
1. 如果你是指 套件 ssh
https://packages.ubuntu.com/xenial/ssh
套件 ssh
1-1. openssh-client (>= 1:7.2p2-4ubuntu2.4)
secure shell (SSH) client, for secure access to remote machines
1-2. openssh-server (>= 1:7.2p2-4ubuntu2.4)
secure shell (SSH) server, for secure access from remote machines
1-3. 安裝 套件 ssh 會同時安裝 套件
1-3-1. openssh-client # 客戶端套件 (預設設定檔 /etc/ssh/ssh_config)
1-3-2. openssh-server # 伺服器端套件 (預設設定檔 /etc/ssh/sshd_config)
2. 如果你是指 指令 ssh
http://manpages.ubuntu.com/manpages/xen ... ssh.1.html
ssh — OpenSSH SSH client (remote login program)
ssh 是 客戶端指令 (目的 是為了登入 伺服器端)
2-1. 意思是 ssh 是提供 客戶端 對 伺服器端 連線的指令
ssh -w
3.
http://manpages.ubuntu.com/manpages/xen ... ssh.1.html
ssh — OpenSSH SSH client (remote login program)
-w local_tun[:remote_tun]
Requests tunnel device forwarding with the specified tun devices between the client (local_tun) and the server (remote_tun).
The devices may be specified by numerical ID or the keyword “any”, which uses the next available tunnel device. If remote_tun is not specified, it defaults to “any”. See also the Tunnel and TunnelDevice directives in ssh_config(5). If the Tunnel directive is unset, it is set to the default tunnel mode, which is “point-to-point”.
3-2. 意思是 ssh -w 指令 必須附帶指定一個既成的連接隧道 (而不是新建一個点对点网络) 否則就是 任意
3. 詳細參閱
3-1. 伺服器端
https://help.ubuntu.com/16.04/servergui ... erver.html
http://manpages.ubuntu.com/manpages/xen ... fig.5.html
http://manpages.ubuntu.com/manpages/xen ... shd.8.html
3-2. 客戶端
http://manpages.ubuntu.com/manpages/xen ... fig.5.html
http://manpages.ubuntu.com/manpages/xen ... ssh.1.html
3-3. 額外參閱
https://help.ubuntu.com/community/SSH
及其連結文章