Main: Info Blog Temp Mail

unix 2013-12-15 08-58-46

How do I use sshpass?

Login to ssh server called with password called t@uyM59bQ:
$ sshpass -p 't@uyM59bQ' ssh
Under shell script you may need to disable host key checking:
$ sshpass -p 't@uyM59bQ' ssh -o StrictHostKeyChecking=no
How do I backup /var/www/html using rsync?

Run rsync over SSH using password authentication, passing the password on the command line:
$ rsync --rsh="sshpass -p myPassword ssh -l username" /backup/ / 2023-12-09_12-38-44 UTC.