Recently set up an extranet server, dedicated to the download of BT, electric Donkey. Formerly using Samba services for file access, it was found that the samba service was too slow under Linux to access the KB/S, with only hundreds of of the speed of the gigabit link. It is recommended to start using SSHFS, the speed is very fast, the speed often can 10mb/s.
Install Emerge Sshfs-fuse
Using mkdir mountpoint
SSHFS [Remote_user]@[remote_server]:[remote_directory] [mountpoint]-O allow_other
can also be automatically mounted, the main two-step
1. Set up password-free login to remote server
As shown in the figure, the basic principle of password-free SSH login is to generate a pair of keys with the Ssh-keygen command under the local root user, and then append the public key to the remote server's Authorized_keys file. The key pair is valid only for local build users, and other users need to be rebuilt and added. Commands are as follows: ssh-keygen-t RSA
Cat. Ssh/id_rsa.pub | SSH [Remote_user]@[remote_server] "cat->>.ssh/authorized_keys"
2. Modify Fstab
Add a row as follows: Sshfs#[remote_user]@[remote_server]:[remote_directory] [mountpoint] [mountpoint] fuse allow_other 0 0
Reference Documentation:
"Linux implementation without password login"
The article:
SSHFS of Windows
Windows SSHFS is implemented in the form of Dokan Library+dokan SSHFS.
Visit here: dokan:http://dolan-dev.net/en/download/
Download and install in turn: Microsoft Visual C + + SP1 redistributable Package dokan-0.5.2 dokan-sshfs-0.2.0.1226 Dokan-sshfs-for-dokan-050.zip
Can