LoginSignup
1
0

More than 3 years have passed since last update.

AlpineとCentOSでhttp proxy通過してSSHする(ncのオプションが違う話)

Posted at

SSHでProxyを経由するときの話。
CentOSでできるのにAlpine(コンテナ)でできなくてしばらくはまったのでメモ
nc -hで見るとわかるがオプションが違う

CentOSの場合

yum install nc nmap
ssh -o 'ProxyCommand=nc --proxy-type http --proxy <proxy.server:8080> %h %p' <user>@<host>

Alpineの場合

apk add --update --no-cache netcat-openbsd openssh-client
ssh -o 'ProxyCommand=nc -X connect -x <proxy.server:8080> %h %p' <user>@<host>

以上。

1
0
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
1
0