How can I trouble shoot a failing ssh connection?

Modified on Fri, 18 Aug, 2023 at 11:17 AM

If you have root access to the endpoint, the easy way to solve such problems is to run sshd in debug mode, by issuing a command like 

On the endpoint:

sudo `which sshd` -d -p 2222 on the endpoint

On the FlexDeploy Server:

if trying to connect using user/password

ssh -p 2222 user@host -v 

or if trying to connect using an ssh key with or without a passphrase

ssh -p 2222 user@host -v -i <private key file here>

Between the two outputs, you will probably be able to figure out what the problem is. Otherwise, send both logs in a support ticket.

Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select at least one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article