How do I open port 22 in OS X 10.6.7

前端 未结 5 646
太阳男子
太阳男子 2020-12-22 18:49

I am trying to open port 22 on osx so I can connect to localhost using ssh. This is my current situation:

ssh localhost
ssh: connect to host localhost port          


        
5条回答
  •  野趣味
    野趣味 (楼主)
    2020-12-22 19:28

    There are 3 solutions available for these.

    1) Enable remote login using below command - sudo systemsetup -setremotelogin on

    2) In Mac, go to System Preference -> Sharing -> enable Remote Login that's it. 100% working solution

    3) Final and most important solution is - Check your private area network connection . Sometime remote login isn't allow inside the local area network.

    Kindly try to connect your machine using personal network like mobile network, Hotspot etc.

提交回复
热议问题