Can't connect a remote server using ssh


Can't connect a remote server using ssh

MacBook Pro 16″, macOS 12.3

Posted on May 13, 2022 10:38 AM

Reply
Question marked as Top-ranking reply

Posted on May 13, 2022 4:48 PM

How remote?


Is the remote server behind a firewall?


Is the remote server behind a home router?


Are you inside a corporate environment and have a corporate firewall that does not allow direct ssh connections outside the company network?


Do you have an anti-virus package installed on the remote server?

Do you have an anti-virus package installed on your Mac?


Can you

ping address.of.remote.server


Have to tried using

ssh -v addr.of.remote.svr

ssh -v -v addr.of.remote.svr

ssh -v -v -v addr.of.remote.svr


Then compare the output from the -v options against an ssh connection that works. Generally the -v output from a working ssh connection and a failed ssh connection will track very closely until the failed ssh terminates early, and in that area is where you can generally figure out why you are having ssh connection issues.

1 reply
Question marked as Top-ranking reply

May 13, 2022 4:48 PM in response to cgis

How remote?


Is the remote server behind a firewall?


Is the remote server behind a home router?


Are you inside a corporate environment and have a corporate firewall that does not allow direct ssh connections outside the company network?


Do you have an anti-virus package installed on the remote server?

Do you have an anti-virus package installed on your Mac?


Can you

ping address.of.remote.server


Have to tried using

ssh -v addr.of.remote.svr

ssh -v -v addr.of.remote.svr

ssh -v -v -v addr.of.remote.svr


Then compare the output from the -v options against an ssh connection that works. Generally the -v output from a working ssh connection and a failed ssh connection will track very closely until the failed ssh terminates early, and in that area is where you can generally figure out why you are having ssh connection issues.

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Can't connect a remote server using ssh

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.