TransWikia.com

Doing nested SSH but getting Too many authentication failures?

Server Fault Asked by zyne on November 4, 2021

This is my script that I have

ssh server1 << EOF
  ssh server2 << EOB
EOB
EOF

I am able to enter the password for server1 successfully, but then it just freezes for a couple seconds and outputs an error saying “Too many authentication failures”. Can anyone help? I want to have nested SSH’es to automate some stuff I’m doing.

One Answer

In the comments you mention that you have a old version of openssh that doesn't support -J yet.
(Think about upgrading, that is already a really old openssh)

As a replacement you can use ssh -t server1 ssh server2
(Do not forget the -t or your terminal input won't work)

Answered by Garo on November 4, 2021

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP