Skip to main content
Post Closed as "Duplicate" by Jenny D, Chris Davies, slm
formatting
Source Link
Jenny D
  • 13.3k
  • 3
  • 42
  • 55

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

#!/bin/bash
SSH <hostname>
<password>

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

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>
Source Link

ssh to remote machine using shell script

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