How to provide SSH password inside a script or oneliner

If you ever need to provide a password for SSH login inside a bash script or a shell command, to avoid being asked a password when SSH keys are not used, it can be done with usage of expect command, or sshpass utility. Using expect Expect is a program that “talks” to other interactive programs according to … Continue reading How to provide SSH password inside a script or oneliner