0

I need to ssh into a few remote hosts to find some information. I want to run a small bash script that I can run from my work mac.

the problem is I can't download sshpass to pass the password like this

sshpass -p your_password ssh user@hostname

so I am thinking somehow I need to pass my plain text password in the connecting string. I googled quite a bit but could not find much. May be I am missing something.

is there anyway that I can pass password in while ssh'ing? something like this

ssh -pw 'mypassword' user@host

any help would be appreciated

Bahman Parsa Manesh
  • 2,314
  • 3
  • 16
  • 32
JBone
  • 1,724
  • 3
  • 20
  • 32

0 Answers0