supply password during ssh code example Example: ssh user password example sshpass -p 'YourPassword' ssh user@host