Tell me more ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I want to open a connection to my mac (10.8) via SSH. An SSH-server is installed by default on OSX. Remote login is enabled, so the service is running and I can connect to to localhost via ssh.

enter image description here

The firewall is enabled, and the port for SSH is open. If I connect from another computer on the same local network, I get a connection timeout.

enter image description here

What am I missing here?


NMAP Test

>> nmap -vv -sP 192.168.1.22

Starting Nmap 5.21 ( http://nmap.org ) at 2012-12-30 23:05 CET
Initiating Ping Scan at 23:05
Scanning 192.168.1.22 [2 ports]
Completed Ping Scan at 23:05, 0.00s elapsed (1 total hosts)
Initiating Parallel DNS resolution of 1 host. at 23:05
Completed Parallel DNS resolution of 1 host. at 23:05, 0.00s elapsed
Nmap scan report for macbook (192.168.1.22)
Host is up (0.0034s latency).
Nmap done: 1 IP address (1 host up) scanned in 0.01 seconds
share|improve this question
1  
How do you connect to the internet? Specifically, are you behind a router? – Dennis Dec 30 '12 at 12:55
Both computers are connected to the same router, the mac via wifi. It has worked before, and I can connect from the mac to the other computer using SSH. – rxt Dec 30 '12 at 16:23
Try making the two computers listen to different ports. You can add a listening port by adding the line Listen PORTNUMBER to /etc/ssh/sshd_config. – Dennis Dec 30 '12 at 16:44
To help diagnose try to nmap to your mac from another computer on the same local network. You should see port 22 open (or whatever you have set it to if you have changed it per Dennis' suggestion above) – sdjuan Dec 30 '12 at 17:25
Do you have any other firewalls enabled? Mountain Lion has three built in -- the app firewall that shows in the GUI, and pf and ipfw which are only configurable from the command line or third-party utilities. – Gordon Davisson Dec 30 '12 at 17:29
show 6 more comments

Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook.

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.