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.
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.