sshfs fuse: bad mount point `/mnt': Transport endpoint is not connected

1. Kill all sshfs processes:

  • Find all running sshfs processes:

    ps -ef | grep sshfs | grep -v grep
    

    Say you've got two of them running:

    $ ps -ef | grep sshfs | grep -v grep
    root     10906  5170  0 07:14 pts/0    00:00:00 sudo sshfs
    root     10907 10906  0 07:14 pts/0    00:00:00 sshfs 
    
  • Kill them both by identifying them by their PID:

    sudo kill -9 10906 10907
    

     

2. Unmount your mount point

sudo umount -l /mnt

 

3. Edit /etc/fuse.conf so you never meet the fuse: bad mount point `/mnt': Transport endpoint is not connected error again:

  • Open it as root with your favorite editor, for example

    sudo atom /etc/fuse.conf
    
  • Uncomment the user_allow_other line.
  • Save and close.

 

4. Use SSHFS with the following options:

sudo sshfs \
-d \
-o allow_other \
-o reconnect \
-o ServerAliveInterval=15 \
[email protected]:/ /mnt \
-p 12345 \
-C
  • -d turns debug mode on (gives more output)
  • -o stands for "option"
  • -p allows you to specify port number
  • -C turns on compression 

Sources:

 

發佈了455 篇原創文章 · 獲贊 894 · 訪問量 233萬+
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章