OpenSSH speed Methods and Techniques

Source: Internet
Author: User
OpenSSH speed methods and techniques-general Linux technology-Linux technology and application information. The following is a detailed description. Although public key verification is a good way to improve Secure SSH data transmission. Transferring an SSH identity key is also a pain point. First, you need to create your key pair. Then, you copy the public key to all the correct locations where you want to log on to the machine. The key must be in a special format, and you must go to a specific directory with the correct permissions.

Fortunately, ssh-copy-id, a small tool in OpenSSH, makes it easy.

SSH is a secure remote management tool that provides many shortcuts and capabilities for processing. For example, you can log on and execute a remote command, which requires only one command. Instead of logging on first, enter the following command:

Carla @ host1 :~ $ Ssh terry @ host2 ls ~

This is an interesting example and there is a small xuanjicang-ls ~ Will list the home Directory of Carla, rather than Terry's. If you want to view Terry's home directory, you must use ls/home/terry. To do this, you only need to enter a command. For example, start a backup script, view the process, or print a document.

$ Ssh-copy-id-I id_rsa.pub terry @ host2

Ssh-copy-id copies the identity key in the correct format. Make sure that the File Permission and owner are correct and that the private key is not accidentally uploaded.

If you use key-based authentication instead of password authentication, you do not need to disclose your system password. To make it easier to manage multiple remote machines, you can use any name you want to create a key, as shown below:

$ Ssh-keygen-t rsa-f id_apacheserver

To connect, you can easily use the correct fixed key:

$ Ssh-I id_apacheserver carla@host.alrac.net

Finally, do not forget the powerful sshfs command to use it to load a remote file system. This is faster than Samba and NFS servers. First create a local directory as the mount point, and then load the Remote File System:

$ Sshfs hostname:/remotedir localdir/

Now you can operate on the remote file system like operating local files.
The original load: http://linuxu.cn/openssh-speed-tips-tricks/
Related Article

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.