Jump to content

SSH with password in attack mode


Recommended Posts

I'm attempting to write a script that interfaces with a password-enabled SSH service (dropbear) on a host OpenWRT device.

On Debian systems I typically use sshpass to accomplish this. I could also use expect. However it doesn't appear either are available for OpenWRT.


sshpass -p "PASSWORD" ssh -o StrictHostKeyChecking=no -oKexAlgorithms=+diffie-hellman-group1-sha1 admin@$IP 'echo test123'

Does anyone have a solution to automatically pass the password into and ssh session on the sharkjack?

And I know.. keyfiles, etc... in this case it's a legacy product which only supports password authentication.

Link to comment
Share on other sites

  • 5 months later...

The only alternatives I know of is sexpect and passh that should work with some form of OpenWRT. Haven't tried them though. I think the Shark is too weak and limited to get them up and running (if working at all) since the storage is not sufficient enough to accommodate either of them (or the tools needed to support them).



Link to comment
Share on other sites


This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Create New...