Bastion 통한 hop
ProxyJump 가 중간 host ("jump host" 또는 "bastion") 통해 먼저 연결해서 target host 도달. 인터넷에서 직접 도달 안 되는 internal server — bastion SSH, 거기서 internal 로. ProxyJump 가 두 단계 자동화.
커맨드라인 vs config
임시는 -J, ~/.ssh/config 의 ProxyJump directive 로 박을 수도.
Agent forwarding 보다 나은 이유
Bastion 통한 hop 두 방법:
- Agent forwarding(
-A) — 로컬 agent socket 이 bastion 에 노출. Root 가진 사람이 다른 곳 너 행세. - ProxyJump(
-J/ProxyJump) — 로컬 SSH 클라이언트가 bastion 통한 TCP 터널 열고, target 과 새 SSH 협상. Bastion 은 암호화된 바이트만 셔플; 키가 사용 가능한 형태로 bastion 에 안 들어감.
ProxyJump 디폴트로. ProxyJump 진짜 안 맞고 bastion 완전 신뢰할 때만 agent forwarding.