Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

I am trying to connect to an external host that is living in the Internet.

From my laptop I can ssh fine. From an Ubuntu 12.10 server, the connection times out.

Since they're in the same network, they are originating from the same IP address.

The server receives the initial packets from the server but never acknowledges them (after looking at a tcpdump).

I'm having a hard time figuring this one out. Nothing in iptables, nothing in hosts.allow/deny...

share|improve this question
    
You mean the server is not answering to the TCP SYN? I would tcpdump both the TCP SYN from the laptop and the ubuntu machine and compare them in wireshark/tshark -V –  Stéphane Chazelas Nov 15 '12 at 23:04
1  
ssh -v to see where it is hanging. Use -vv or -vvv to get more detailed log. –  peterph Nov 17 '12 at 21:41
    
@StephaneChazelas that is correct, doing a tcpdump from both, and an ssh -v the laptop initiates the connection and never receives a tcp syn. It's like the system is using tcpwrappers, but it's not... –  Specto Nov 20 '12 at 14:50
1  
Can you add the tcpdump output for both laptop and the ubuntu? –  ott-- Dec 16 '12 at 1:11

2 Answers 2

If iptables is active (i.e. the Linux firewall), then it might be configured not to allow this.

share|improve this answer
2  
The OP indicated that they had looked through iptables... –  jasonwryan Nov 16 '12 at 1:12
    
iptables isn't configured to drop ICMP answers by default (as the "times out" seems to indicate). Very weird. --- Please do double-check on iptables configurations of both machines. Or perhaps the server is connected via Ethernet to the wireless router, and the notebook via WiFi, and the router has different rules for them? Can you connect from the server to the notebook via ssh? Viceversa? –  vonbrand Jan 24 '13 at 17:53

ssh -vvv is going to give you all of the information you'll need and will help everyone determine what the root cause is.

You can try recreating your keys and sending them to the server. Create a key if you don't have one. If you do then use step 2.:

1. ssh-keygen -t rsa (use defaults)
2. ssh-copy-id -i ~/.ssh/id_rsa.pub $USER@$FQDN

You could also try ssh -T or maybe your windows box has different info in it's host file. So, try connecting to the server via it's IP address.

Sorry, but without knowing what ssh -vvv is there isn't much more I can suggest.

share|improve this answer
    
How would you send a key to the server, if you are unable to ssh to it in the first place? –  SkyDan Jun 9 at 14:44

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.