LoginSignup
12
12

More than 5 years have passed since last update.

Corkscrewを使ってHTTP経由でSSHのトンネリング接続を行う

Posted at

httpのproxyしか通らない環境下でsshしたいときはcorkskrewをいれる。

# brew install corkscrew

認証用の設定

proxy接続時に認証が必要な場合は認証用の設定を書いておく。

~/.ssh/proxyauth
username:password

ローカルに対してssh接続するとき以外はすべてトンネリングするように設定する。

Host *
  ProxyCommand /usr/local/bin/corkscrew 接続先のホスト 接続先のポート %h %p ~/.ssh/proxyauth

Host localhost 127.0.0.1
  ProxyCommand none
12
12
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
12
12