Mac에서 리눅스 디렉토리를 마운트하는 sshfs가 작동을 멈췄습니다. 명령은 다음과 같습니다. sshfs -osshfs_sync,volname=linux-builder3

오늘 아침까지, 나는 sshfs를 사용하여 사무실의 리눅스 컴퓨터에서 디렉토리를 마운트했다. 오늘은 멈췄습니다. 내 sshfs 명령은 다음과 같습니다.

sshfs -osshfs_sync,volname=linux-builder3 linux-builder3:/home/cnorum /Users/carl/linux-builder3

이 오류가 발생하지만 sshfs 프로세스가 여전히 실행중인 것 같습니다 (즉, 셸 프롬프트로 돌아 가지 않습니다).

mount_osxfusefs: failed to mount /Users/carl/linux-builder3@/dev/osxfuse1: Socket is not connected

Mac의 시스템 로그에는 다음과 같은 메시지가 있습니다.

2/20/13 12:57:27.476 PM KernelEventAgent[43]: tid 00000000 received event(s) VQ_DEAD (32)
2/20/13 12:57:27.000 PM kernel[0]: OSXFUSE: force ejecting (no response from user space 5)
2/20/13 12:57:27.000 PM kernel[0]: OSXFUSE: user-space initialization failed (57)

그리고 여기 /var/log/auth.log리눅스 머신이 있습니다 :

Feb 20 12:56:28 linux-builder3 adclient[1599]: INFO  <fd:22 PAMIsUserAllowedAccess> audit User 'cnorum' is authorized
Feb 20 12:56:28 linux-builder3 sshd[29648]: Accepted publickey for cnorum from 10.0.40.65 port 49850 ssh2
Feb 20 12:56:28 linux-builder3 sshd[29648]: pam_unix(sshd:session): session opened for user cnorum by (uid=0)
Feb 20 12:56:28 linux-builder3 sshd[29729]: subsystem request for sftp

다른 컴퓨터 (내 경우에는 Linux-builder 및 linux-builder2)에 대한 sshfs 연결은 괜찮은 것 같습니다. 아무도 잘못 된 것에 대해 제안하고 어떻게 해결할 수 있습니까? 보고 싶은 로그를 얻을 수 있습니다!



답변

미래의 Google 직원들에게는이 신비한 오류가 발생하여 sshfs에 제공 한 경로가 존재하지 않는다는 것을 깨달았습니다. 죄송합니다. 고 쳤어요.

mount_osxfusefs: failed to mount /Volumes/mypath@/dev/osxfuse0: Socket is not connected

답변

나는 그것이 고정되어 있다고 생각합니다. 나는 .bashrc리눅스 박스 에이 줄을 가지고 있었다 :

CLIENT_PATH_PREFIX="$(ssh ${CLIENT_ADDR} 'echo ${SSHFS_PATH_PREFIX}')/$(hostname)/$(whoami)"

비 대화식 쉘에서 실행할 필요가 없었으므로 다른 파일로 푸시했으며 지금은 나아졌습니다. 왜 그런지 이해하지 못하지만 작동하는 것이 행복합니다.


답변

내 문제는 내 호스트의 RSA 호스트 키가 변경되어 실행해야한다는 것입니다.

ssh-keygen -R site.com

답변

나에게 문제는 known_hosts:

서버에 SSH를 넣으려고 할 때 다음을 받았습니다.

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@    WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED!     @
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY!
Someone could be eavesdropping on you right now (man-in-the-middle attack)!
It is also possible that a host key has just been changed.
The fingerprint for the RSA key sent by the remote host is
SHA256:<something>
Please contact your system administrator.
Add correct host key in /Users/myuser/.ssh/known_hosts to get rid of this message.
Offending ECDSA key in /Users/myuser/.ssh/known_hosts:86
RSA host key for <server> has changed and you have requested strict checking.
Host key verification failed.

문제가있는 키를 제거하면 (서버를 신뢰 한 경우) 문제가 해결되었습니다.