SSH: sshpass
- -f filename Take password to use from file
sshpass -f password ssh intrinsic pmap --version
- -d number Use number as file descriptor for getting password
exec {fd}< password sshpass -u$fd ssh intrinsic pmap --version eval "exec $fd<&-"
- -p password
sshpass -p password ssh intrinsic pmap --version
- -e
SSHPASS=intrinsic sshpass -e ssh intrinsic ethtool ens160
- -P Set the password prompt. Sshpass searched for this prompt in the program's output to the TTY as an indication when to send the password. By default sshpass looks for the string
"assword:" (which matches both "Password:" and "password:"). If your client's prompt does not fall under either of these, you can override the default with this option
设置错误将hang住