ssh -o ProxyCommand="ssh -i ~/.ssh/XXX.pem -W %h:%p ubuntu@XXX.XXX.XXX.XXX" -i "~/.ssh/XXX.pem" ubuntu@XXX.XXX.XXX.XXX
Warning: Identity file /MY/PATH/.ssh/NAME.pem not accessible: No such file or directory.
Warning: Identity file /MY/PATH/.ssh/NAME.pem not accessible: No such file or directory.
ubuntu@XXX.XXX.XXX.XXX: Permission denied (publickey).
kex_exchange_identification: Connection closed by remote host
Connection closed by UNKNOWN port XXXXX
ssh -o ProxyCommand="ssh -i ~/.ssh/XXX.pem -W %h:%p ubuntu@BBB.BBB.BBB.BBB" -i "~/.ssh/XXX.pem" ubuntu@CCC.CCC.CCC.CCC
-o: 옵션
-i: identity_file
-W: host:post
-o ProxyCommand클라이언트가 자신을 통해서 다른 네트워크 서비스에 간접적으로 접속할 수 있게 해 주는 컴퓨터 시스템
이나 응용 프로그램
→ B 서버를 중계 역할로 써서 C서버로 연결하고 있음
-----BEGIN OPENSSH PRIVATE KEY-----
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
-----END OPENSSH PRIVATE KEY-----
~/.ssh/XXX.pem 으로 생성한 후 chmod 400 으로 권한 설정 변경해줌ssh 명령어 접속할 때 오류 발생