LoginSignup
1
3

More than 5 years have passed since last update.

proxycommand の書き方によって Bad tun device エラーが出る

Last updated at Posted at 2016-08-22

Bad tun device ってエラーが出る話

ダメだった書き方

~/.ssh/configでトンネルの設定をして、

~/.ssh/config
host server1
    proxycommand ssh -q bastion-server -w %h:%p

エラーになる。Bad tun deviceってなに。

ssh server1                                                                                                     
Bad tun device 'server1:22'
ssh_exchange_identification: Connection closed by remote host

(追記) Chef (Knife-solo) だとこういうエラーが出てた。

Checking Chef version...
ERROR: Net::SSH::Disconnect: connection closed by remote host

大丈夫な書き方

こうすればよし。

~/.ssh/config
host server1
    proxycommand ssh -CW %h:%p bastion-server

いいのか。

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