Jump to content
grumpoh

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.

EX:

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.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...