~/.ssh/config에서 ProxyJump를 교체하세요.

~/.ssh/config에서 ProxyJump를 교체하세요.

나는 ProxyJump내에서 사용하고 있습니다~/.ssh/config

Host jump                                                                          
  User jane                                                                       
  HostName 1.2.3.4
  DynamicForward 1028
Host dev                                                                        
  User bill                                                                      
  HostName 5.6.7.8                                                          
  ProxyJump jump

내 동료는 이전 버전의 SSH를 사용하고 있습니다(업데이트할 수 없음). 점프 호스트를 통해 연결할 수 있도록 하는 동등한 구성은 무엇입니까? 그래도 작동 할까요 DynamicForward?

답변1

ProxyJumpProxyCommandOpenSSH 7.3에 추가되었지만 다음과 같이 를 사용하는 약어에 지나지 않습니다 .

Host hidden-host
  ProxyCommand ssh proxy-host -W %h:%p

버전이 더 오래된 경우 옵션 ssh이 부족할 수 있으며 , 이 경우 다음과 같이 -W를 사용할 수 있습니다 .nc

Host hidden-host
  ProxyCommand ssh proxy-host nc %h %p 2> /dev/null

관련 정보