Some scripting miscellaneous actual production issues

Source: Internet
Author: User

SSH [email protected] "Ls/home"

The default is the current user name connection directory

Bulk Change Password

EOF must be written on the head

A standard remote SSH script to change the password

Installation of Unixtodos and Dostounix can be

When connecting to a server, ask if you trust the public key, and the second time you connect it is saved locally

After the first answer, the server then sends the public key a contrast exactly, don't ask Yes No

And when the RSA host deletes the host key (RSA public key)

Prompt for a possible man-in-the-middle attack

We remove the public key that the host stores on the local computer

Located in the J home directory. Under SSH known_host edit him delete the server that has the host key removed

Re-wait for the message to be identified (no longer known at this time) and prompt to answer Yes No

0.0.0.0 means that there are multiple network cards that can listen to your connection.

The connection server server will reverse-parse the client's address

Logingrace time when the client is connected but no matter after two minutes of persistence

Black and white list from top to bottom user name @ address

How to connect without a password

Generate key pair SSH copy id-i [email protected] remote upload public key server one more SSH

The client sends the generated public key to the server itself to save the private key server to save the public key sent over to the. ssh/ authorized_ keys,

The client is concerned that the private key is stolen so that the private key is encrypted by Sshadd, double authentication is performed, and the password that encrypts the private key is saved in ssh-agent, so that the client does not need to enter the password and the security of the private key is completed.

Some scripting miscellaneous actual production issues

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.