SSHFS mount and SSH login without password

Source: Internet
Author: User
Tags ssh free ssh

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.