[완료] 터미널에서 다른 서버로 ssh 연결 할때 Temporary failure of name resolution

coolie의 이미지

원격 파일시스템을 마운트 하기 위해서 sshfs를 설치했습니다.

sshfs root@xxx.xxx.xxx.xxx:/example /mnt/example 실행시 에러는 아래와 같습니다.
read: Connection reset by peer

서버에서 ssh의 포트인 22를 사용하지 않고 34410 포트를 사용합니다.
sshfs root@xxx.xxx.xxx.xxx:34410:/example /mnt/example
read: Connection reset by peer

그러나 메세지는 동일하네요.
여기저기 찾아보니 ssh가 제대로 동작하는지 터미널에서 연결해봐라고 나와있더군요.

ssh root@xxx.xxx.xxx.xxx:34410 echo hello
ssh: localhost:34410: Temporary failure in name resolution

뭘 손봐줘야 할까요?

danskesb의 이미지

:34410을 지우고 -p 34410을 붙여서 실행시켜 보세요.

---- 절취선 ----
http://blog.peremen.name

coolie의 이미지

ssh root@xxx.xxx.xxx.xxx -p 34410 echo hello 정상적으로 동작하고요.
sshfs -p 34410 root@xxx.xxx.xxx.xxx:/example /mnt/example 하니까 되는군요.
감사합니다.