株式会社ヴァンデミックシステム

Blog

<スポンサーリンク>

# 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

<スポンサーリンク>

コメントを残す

Allowed tags:  you may use these HTML tags and attributes: <a href="">, <strong>, <em>, <h1>, <h2>, <h3>
Please note:  all comments go through moderation.

*

日本語が含まれない投稿は無視されますのでご注意ください。(スパム対策)