2

I've got a device that supports strange "ssh". It doesn't support key auth an my problem is I don't know how to feed it username and password (-l or user@host are not working). It asks for login and password after connection like this:

zeratul@antioch:~$ ssh 1.2.3.4

Please login: user
password : 
Login incorrect

Is it even possible to do that from shell script or can I forget it?

Thanks in advance.

2
  • Doesn't support key auth? That's obnoxious... Feb 28, 2012 at 3:31
  • Yeah, well seems to be common for Ruckus Wireless devices. I've one of them in very noisy area an sometimes it deadlocks during reconfiguration and I need to reboot it/switch channels manually. I'm trying to automate that.
    – zeratul021
    Feb 28, 2012 at 11:09

1 Answer 1

5

What you need is expect (it's a package you can install with yum). That's what it's made for.

I've found a Stack Overflow question that should help you or at least guide you in the right direction.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .