SSH refers to secure Shell, which is a secure transport protocol.
The Ubuntu client accesses the remote server via SSH, the following steps are the client's configuration method:
1. sudo apt-get install SSH
2. Ssh-keygen
(press ENTER to set default values)
The Id_rsa and id_rsa.pub files are generated by default, respectively, the private key and the public key.
Assume that the server IP for the 61.145.34.33,SSH service port number is 22, the server has a user root;
The commands to log in to the server with SSH are:
>ssh-l Root 61.145.34.33-p 22
> Enter the root user's password
Note: 2nd can be omitted, because this step is configured for future access to the server does not require a password
The specific Ssh-keygen operation flow is as follows Link:
http://blog.csdn.net/wh_19910525/article/details/7433164
SSHFS mapping remote File system to local Disk
The Ubuntu client maps the remote server's file system to a local disk through SSHFS, and the following steps are the configuration methods for the client:
1. sudo apt-get install SSHFS
2. SSHFS User name @ Remote server name: Remote directory mapped to local directory
"After executing the command, Ubuntu automatically displays the mounted SSHFS file system disk on the desktop, and now you can manipulate the mapped disk as if it were a local disk. "
Note: I executed this line of command, error, at first I used the server address is an IP address, such as: [email protected]:, this later found that there is no problem, but still reported such errors: Read:connection reset by Peer. Imagine, is the link error, but do not know whether the server problem or the problem, ping can ping, the network is not a problem, later on-line a check, using SSHFS users need to join the fuse user group, fuse user group here no longer repeat, so try to use the command usermode -a-g Fuse Rainey adds local users to the fuse group, but encounters a problem: Usermode:cannot Lock/etc/password; Try again later. Later found this error, in fact, is usermode need superuser privileges, so in order to add a sudo smooth solution. Next try to map (mount) The file system of the target server again, but this time, I inadvertently put the server's address into a name, not IP, decisive error, the same as the original: Read:connection reset by Peer. so be sure to note: When trying to mount with SSHFS, the server address must be an IP address, such as: [email protected]:. Next is the access permissions to set up the problem, a lot of solutions, there are a lot of information on the Internet, find it yourself, I was to add their own users to the Super user group.
PostScript: My goal is to the local eclipse can smoothly import remote source, found that user rights is really a headache, even if you command line under the Super permission, you still can't access the folder under Eclipse, and then think, if the file system mounted to the home directory, what happens,/home/ Rainey, sure enough, is not restricted by permission, you can happy the source code on the server to import eclipse.
Application of Ubuntu SSH client | SSHFS mapping remote File system to local Disk