SSH on My Mac

i am using this command ssh muhsin@200,172,11,2 for my server actually it takes a lot of time no reply no nothing else just waiting only finally it display timeout


so what i can do for that guys

MacBook Pro 13", 10.13

Posted on Feb 20, 2019 2:46 AM

Reply
Question marked as Top-ranking reply

Posted on Feb 20, 2019 8:26 AM

The address you are showing is a public address. If that is intended, did you open up tcp port 22 on your firewall to allow access to this service? If you put a client on the same LAN network as your server, can you connect via SSH using the LAN address of the machine? If you can connect via the LAN, then you have a firewall configuration issue. From outside your LAN, try handshaking with the service using nc 200.172.11.2 22 Do the same on your LAN (I will assume you are on a 192.168.0.0/24 network and the server is at address 192.168.0.2) using nc 192.168.0.2 22


As an aside, please be aware that SSH scanners are very common and if you open this port to the world, the world will come knocking.


Hope this helps.

3 replies
Question marked as Top-ranking reply

Feb 20, 2019 8:26 AM in response to mumin7586

The address you are showing is a public address. If that is intended, did you open up tcp port 22 on your firewall to allow access to this service? If you put a client on the same LAN network as your server, can you connect via SSH using the LAN address of the machine? If you can connect via the LAN, then you have a firewall configuration issue. From outside your LAN, try handshaking with the service using nc 200.172.11.2 22 Do the same on your LAN (I will assume you are on a 192.168.0.0/24 network and the server is at address 192.168.0.2) using nc 192.168.0.2 22


As an aside, please be aware that SSH scanners are very common and if you open this port to the world, the world will come knocking.


Hope this helps.

Feb 20, 2019 7:01 PM in response to mumin7586

The following assumes a version of Server.app prior to 5.7.1 and prior to Mojave.


Remote management access via ssh will have to be enabled in Server.app, and access allowed for specific, or admin, or all users.


In Server.app circa 5.3 (what’s handy), select the server name at the top of the left column of the main Server.app display, then select settings, then enable ssh and any other desired remote access. Then select the Access tab, and select the users allowed access to the server.


If the connection is remote, a network path will have to be available through any intervening firewalls, as well. Port forwarding or related access rules.


That’s aso not a valid IP address fir ou ssh command. I’ll assume that’s a typo.

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.

SSH on My Mac

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