Sshfs mounts the remote directory locally
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