I want to run sshpass command from my windows to remote linux server. i used this command:
sshpass -p ‘password’ ssh ldap.nextstep4it.com -l root -o StrictHostKeyChecking=no
You cant run sshpass in windows. You can however use putty via the windows command line, to achieve the same thing.
putty -load "host" -l username -pw password
Also you can upload files via command line (with a password) using WinSCP
winscp /command "option batch abort" "option confirm off" "open sftp://user:email@example.com/" "put examplefile.txt /home/user/" "exit"