LTS 22 - using sshpass

Peter Flynn peter at silmaril.ie
Thu May 29 19:37:45 UTC 2025


On 29/05/2025 18:55, Robert Moskowitz via ubuntu-users wrote:
> 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.
I was given this syntax:

     sshpass -f <(printf '%s\n' PASSWORD) ssh/scp/sftp/etc...

where PASSWORD is your unquoted password.

Peter



More information about the ubuntu-users mailing list