보안상 직접 접속이 안 되고 점프 서버를 경유해야 합니다. 편하게 하는 방법이 있나요?
SSH ProxyJump 설정:
# 직접 명령어ssh -J jump-user@bastion target-user@internal-server# ~/.ssh/config (추천)Host bastion HostName bastion.company.com User jump-user IdentityFile ~/.ssh/id_bastionHost internal-* ProxyJump bastion User admin IdentityFile ~/.ssh/id_internalHost internal-web HostName 10.0.0.10Host internal-db HostName 10.0.0.20# 사용ssh internal-web # 자동으로 bastion 경유scp file.txt internal-web:/tmp/ # 파일 복사도 동일
ProxyJump는 여러 단계도 가능: ssh -J host1,host2 target
ssh -J host1,host2 target
댓글 2
SSH ProxyJump 설정:
ProxyJump는 여러 단계도 가능:
ssh -J host1,host2 target