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
いいのか。