Get the App
SLTechnology News&Howtos  ›  Servers  › 

Sshfs mounts the remote directory locally

Shulou Source: shulou.com Published: 2022-06-03 09:23:17 10月03日 Update

In the process of development, it is often necessary to copy the written program to the target board for compilation and execution, usually using scp or rsync copy or building nfs, but nfs needs kernel support. Today, I found a command of ssh, which can mount the remote directory to the local, and then copy and modify it like a local file. It is very convenient to record it.

Installation

Ubuntu system is installed directly using apt

Sudo apt-get install sshfs create an empty folder locally and mount sshfs root@192.168.1.25:/home/ubuntu/Desktop/sshfs_test. / sshfstemp as the local mount point mkidr sshfstemp

After successful execution, you can use sshfstemp and the remote end to share files

4. Unloading

Umount. / sshfstemp

Tags: Copy file directory success editor kernel command folder target program system process development support Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno NVidia vpn Xiaomi Huawei macOS