1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

macOS Catalina から Proxy 経由で SSH 接続する

Posted at

問題点

下記の記事を参考に Proxy 経由で SSH 接続しようとしたが、上手くいかなかった。

22番ポートが使えなくても、SSHでGitしたい! - Qiita

macOS に標準で組み込まれている nc コマンドが期待通り動いていないようだ。

.ssh/config
ProxyCommand=nc -X connect -x {server}:{port} %h %p
nc: Proxy error: "HTTP/1.1 200 Connection established" 
ssh_exchange_identification: Connection closed by remote host

解決方法

下記の記事を参考にして、 nmap の ncat を使用するよう変更した所、上手くいった。

Mac OSXでHTTP Proxy経由でSSH - Qiita

.ssh/config
ProxyCommand=ncat --proxy-type http --proxy {server}:{port} %h %p
1
1
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
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?