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 parsamanesh
  • 2,194
  • 3
  • 13
  • 31
JBone
  • 1,397
  • 3
  • 14
  • 30

0 Answers0