Introduction to sshpass and sshpass installation: you cannot specify a password for ssh login in the command line. The appearance of sshpass solves this problem. It allows you to use the-p parameter to specify the plaintext password and then directly log on to the remote server. it supports the password from command lines, files, and environment variables... introduction to sshpass and sshpass installation: you cannot specify a password for ssh login in the command line. The appearance of sshpass solves this problem. It allows you to use the-p parameter to specify the plaintext password and then directly log on to the remote server. it supports reading the password from command lines, files, and environment variables. Install sshpass: Source code: http://sourceforge.net/projects/sshpass/ Tar-zxvf sshpass-1.05.tar.gzcd sshpass-1.05./configuremake & make install after installation is complete input sshpass prompts that the installation is successful: [root @ test ~] # SshpassUsage: sshpass [-f |-d |-p |-e] [-hV] command parameters-f filename Take password to use from file-d number Use number as file descriptor for getting password -p password Provide password as argument (security unwise) -e Password is passed as env-var "SSHPASS" With no parameters-password will be taken from stdin-h Show help (this screen) -V Print version informationAt most one of-f,-d, -P or-e shoshould be used [root @ test ~] #
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