Is there any way to login to another machine specifying the password in the script itself??
SSH-keygen wont work for me so i need to specify it in the script
#!/bin/sh
ssh root@201.1.192.21 mysqldump -uroot -pxxxxxx > backup/a.sql
您可以使用Expect 。
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.