grumpoh Posted May 22, 2020 Share Posted May 22, 2020 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. Link to comment Share on other sites More sharing options...
grumpoh Posted November 13, 2020 Author Share Posted November 13, 2020 Self-bump. Still would love to use this product, haven't found a good solution to this. Any ideas? Link to comment Share on other sites More sharing options...
chrizree Posted November 13, 2020 Share Posted November 13, 2020 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). https://github.com/clarkwang/sexpect https://github.com/clarkwang/passh Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.