У меня есть сеть, которая требует двух хостов перехода, чтобы войти с моей рабочей станции.Мой ~ / .ssh / config выглядит так:
Host *.mgmt.example.com
ProxyJump admin-1.prod.example.com,jump-1.example.com
Это нормально работает для обычного ssh, но я не могу подключить нож ssh.Я попытался добавить --ssh-gateway admin-1.prod.example.com,jump-2.example.com
к команде, но она также не работает.Возможно ли, чтобы нога SSH проходила через два прокси?
Пример команды, основанной на приведенной выше записи .ssh / config: knife ssh "name:host-1.mgmt.example.com" "hostname"
numb3rs1x@workstation~:chef --version
Chef Development Kit Version: 3.2.30
chef-client version: 14.4.56
delivery version: master (6862f27aba89109a9630f0b6c6798efec56b4efe)
berks version: 7.0.6
kitchen version: 1.23.2
inspec version: 2.2.70
numb3rs1x@workstation~:knife ssh "name:host-1.mgmt.example.com" "hostname" -a fqdn
WARNING: Failed to connect to host-1.mgmt.example.com -- Net::SSH::Proxy::ConnectError: command timed out: ssh -J jump-1.example.com -W host-1.mgmt.example.com:22 admin-1.prod.example.com
ssh: connect to host jump-1.example.com port 22: Operation timed out
ssh_exchange_identification: Connection closed by remote host
numb3rs1x@workstation~:ssh host-1.mgmt.example.com
Warning: Permanently added 'admin-1.prod.example.com,10.5.0.9' (ECDSA) to the list of known hosts.
Warning: Permanently added 'jump-1.example.com' (ECDSA) to the list of known hosts.
Warning: Permanently added 'host-1.mgmt.example.com' (ECDSA) to the list of known hosts.
numb3rs1x@host-1:~$