LTS 22 - using sshpass
Robert Moskowitz
rgm at htt-consult.com
Thu May 29 17:55:08 UTC 2025
I have a system that I need to automate an rsync transfer to. This
system only supports userid/password SSH connections. So I installed
sshpass and tried:
sshpass -pmypasswd ssh -p 1234 -4 me at myserver.domain
this runs and goes right back to the command prompt. Does not seem do
anything.
Is there a better way? BTW this will go in a
rsync -e "ssh command" sourcedir dest server:dir
I got this to work without sshpass, but of course gets prompted for the
user passwd...
thanks
More information about the ubuntu-users
mailing list