1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 |
# autosshのインストール wget https://download-ib01.fedoraproject.org/pub/epel/7/x86_64/Packages/a/autossh-1.4g-1.el7.x86_64.rpm yum localinstall autossh-1.4g-1.el7.x86_64.rpm # ncコマンドのインストール yum -y install nc # sshconfig修正 vim ~/.ssh/config Host vps Hostname 666.666.666.666 ProxyCommand /usr/bin/ncat --proxy 192.168.1.1:8080 --proxy-type http %h %p User root Port 443 RemoteForward 20001 localhost:22 RemoteForward 20002 192.168.1.2:3389 # 接続 autossh vps -M 0 -C -N -f |