4
2

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 5 years have passed since last update.

CentOS 7上で認証付きHTTPプロキシを経由したSSH接続

Last updated at Posted at 2018-04-07

概要

CentOS 7 環境で nmap-ncat を使い、ユーザ/パスワードによる認証が存在する HTTP プロキシサーバを経由して SSH 接続する方法です。

RPMForge から connect をインストールする手順をよく見ますが、RPMForge リポジトリは既に無く、各自ビルドして利用する必要があります。
代替手段を探したところ一番お手軽そうだったので紹介します。

手順

nmap-ncat のインストール

# yum install nc

config の設定

~/.ssh/config
Host <server-name>
  HostName xxx.xxx.xxx.xxx
  ProxyCommand /usr/bin/ncat --proxy <server>:<port> --proxy-auth <user>:<password> --proxy-type http %h %p

あとは ssh <server-name> で繋げば OK。

4
2
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
4
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?