This question already has an answer here:
- Shell Script for logging into a ssh server 10 answers
I want to ssh to remote machine within shell script but remote machine require password. How should i provide password in my script?
I tried below but its not working. Please suggest
#!/bin/bash SSH <hostname> <password>