Unable to ssh to another computer but can ping it?  Not sure what I am missing?Using a Netgear routerbash-3.2$ ifconfiglo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384        inet6 ::1 prefixlen 128         inet6 fe80::1%lo0 prefixlen 64 scopeid 0x1         inet 127.0.0.1 netmask 0xff000000 gif0: flags=8010<POINTOPOINT,MULTICAST> mtu 1280stf0: flags=0<> mtu 1280en0: flags=8863<UP,BROADCAST,SMART,RUNNING,SIMPLEX,MULTICAST> mtu 1500        ether xx:xx:xx:xx:xx:xx         media: autoselect (none)        status: inactiveen1: flags=8863<UP,BROADCAST,SMART,RUNNING,SIMPLEX,MULTICAST> mtu 1500        ether xx:xx:xx:xx:xx:xx         inet6 xxxx::xxxx:xxxx:xxxx:xxxxxx prefixlen 64 scopeid 0x5         inet 10.0.0.3 netmask 0xffffff00 broadcast 10.0.0.255        media: autoselect        status: activefw0: flags=8863<UP,BROADCAST,SMART,RUNNING,SIMPLEX,MULTICAST> mtu 4078        lladdr xx:xx:xx:xx:xx:xx:xx:xx         media: autoselect <full-duplex>        status: inactivebash-3.2$ ssh jeremy@10.0.0.4ssh: connect to host 10.0.0.4 port 22: Connection refusedbash-3.2$ ssh -p 5900 jeremy@10.0.0.4ssh: connect to host 10.0.0.4 port 5900: Connection refusedbash-3.2$ ping 10.0.0.3PING 10.0.0.3 (10.0.0.3): 56 data bytes64 bytes from 10.0.0.3: icmp_seq=0 ttl=64 time=0.046 ms64 bytes from 10.0.0.3: icmp_seq=1 ttl=64 time=0.079 ms64 bytes from 10.0.0.3: icmp_seq=2 ttl=64 time=0.078 ms64 bytes from 10.0.0.3: icmp_seq=3 ttl=64 time=0.077 ms64 bytes from 10.0.0.3: icmp_seq=4 ttl=64 time=0.079 ms64 bytes from 10.0.0.3: icmp_seq=5 ttl=64 time=0.081 ms64 bytes from 10.0.0.3: icmp_seq=6 ttl=64 time=0.078 ms^C--- 10.0.0.3 ping statistics ---7 packets transmitted, 7 packets received, 0.0% packet lossround-trip min/avg/max/stddev = 0.046/0.074/0.081/0.011 msbash-3.2$ ping 10.0.0.4PING 10.0.0.4 (10.0.0.4): 56 data bytes64 bytes from 10.0.0.4: icmp_seq=0 ttl=64 time=2.667 ms64 bytes from 10.0.0.4: icmp_seq=1 ttl=64 time=2.675 ms64 bytes from 10.0.0.4: icmp_seq=2 ttl=64 time=2.969 ms64 bytes from 10.0.0.4: icmp_seq=3 ttl=64 time=2.663 ms64 bytes from 10.0.0.4: icmp_seq=4 ttl=64 time=2.723 ms^C--- 10.0.0.4 ping statistics ---5 packets transmitted, 5 packets received, 0.0% packet lossround-trip min/avg/max/stddev = 2.663/2.739/2.969/0.117 msbash-3.2$ 
Not able to ssh to another computer, but can ping it?
ssh
The server is either not running sshd (and hence not listening on port 22) or has a firewall blocking port 22 (the default ssh port), or in incredibly rare cases running ssh on some other port (which is almost certainly not the case).First check to make sure sshd is installed (using debian examples)sudo apt-get install openssh-serverAnd if so, is it running:ps -ef | grep sshdthen check to see if it is listening to port 22sudo netstat -nlp | grep :22tcp        0      0 0.0.0.0:22              0.0.0.0:*               LISTEN      946/sshdtcp6       0      0 :::22                   :::*                    LISTEN      946/sshdthen check your firewall rules (this varies significantly, so I'll show a debian/ubuntu/etc example):sudo ufw statussudo ufw show listeningtcp:  22 * (sshd)  24224 * (ruby)tcp6:  22 * (sshd)  8080 * (java)udp:  123 10.X.Y.Z (ntpd)  123 * (ntpd)  18649 * (dhclient)  24224 * (ruby)  34131 * (ruby)  60001 10.87.43.24 (mosh-server)  68 * (dhclient)udp6:  123 fe80::1031:AAAA:BBBB:CCCC (ntpd)  123 * (ntpd)  48573 * (dhclient)If ufw shows it as closed then run (again a debian/ubuntu example)sudo ufw allow 22