4
I have two customer's machines, $gateway
and $server
, the second one is only accessible from the first one. Public key auth is unavailable on both systems.
So, to execute some $command
on the server I need to run ssh $gateway ssh $server $command
and then type two passwords.
I can use sshpass
, but it will handle only the first connection and I still need to enter the second password by hand.
How can I make completely noninteractive (without manually entering passwords) ssh access to the server?
The only way I see is to use tunnels, but they are hard to keep alive because of unstable internet connection.
What kind of an admin turns off public-key auth?.. (Maybe the servers have something else enabled, like gssapi?) – user1686 – 2013-06-11T12:18:34.363
I know that someone will ask this =) – Equidamoid – 2013-06-11T12:35:20.700
It's a very specific embedded system, maybe there is a way to enable keys but I don't want to touch anything except things I was explicitly allowed to touch. – Equidamoid – 2013-06-11T12:43:35.060