Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I tried having a friend and myself SSH each other so we could use the Say command to talk to each other in a fun cool way. We both had enabled remote login, but when the correct format was entered (ssh Joe@192.168.1.x), the error message "ssh: connect to host 192.168.1.x port 22: Network is unreachable" Is this because we're not on the same network? We are not. I am in Colorado, he is in Minnesota. Is this because of a port issue?

Thanks.

share|improve this question

migrated from stackoverflow.com Apr 5 '11 at 23:50

This question came from our site for professional and enthusiast programmers.

2 Answers 2

up vote 3 down vote accepted

If you don't have public IPs (i.e. you're connecting to the Internet through a router) you may need to set up port forwarding on both of your routers to have the router send traffic on port 22 to the correct internal IP

share|improve this answer
    
Ok.......... What? What does that mean and how is it done? –  JShoe Apr 5 '11 at 23:54
    
@JShoe: It's probably more complication than the fun will be worth, but: 1. Have one of you find out the external IP address of your router, via whatismyipaddress.com. 2. Have that person use the admin tools for the router to do a "port mapping" of port 22 to the 192.168.1.x address of their computer. 3. Then you can try to log in at joe@external-ip. –  khedron Apr 6 '11 at 1:57
    
Thank you, I think you are right it isn't worth it. But hey, I'm thinking this will kick ass at a LAN party XD! Nerd puns...... never get old –  JShoe Apr 6 '11 at 21:16

The IPs in your ssh command are wrong.

Assuming either (or both) of you aren't behind any fancy network setups, go to What's My IP Address to find out your public IP address, and replace the command with whatever it tells you.

share|improve this answer
    
Then go to the router of the destination machine and set up Port Forwarding. –  Chris Nava Apr 6 '11 at 2:01

Your Answer

 
discard

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.