Tell me more ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I just installed 12.04 on a box. I installed openssh-server and started it. On my win7 laptop, I tried to ssh to the ubuntu box with Putty. It timed out. What might be going wrong?

I verified that the sshd process is running on the ubuntu box.

I suppose I should verify that the DNS name that I used from putty on win7 is actually my ubuntu box. I don't remember how to verify the dns name or ip address on the ubuntu box.

I didn't make any changes to sshd_config before starting the server. I rebooted after installing openssh_server.

share|improve this question
1  
Can you ping it by hostname? What if you connect using the Ubuntu system's IP address instead of hostname? If I am not mistaken you need wins installed in the Ubuntu system so that Windows can resolve the hostname correctly. – Bruno Pereira May 22 '12 at 15:54
I was given a hostname when I was given the box with Win7 on it. When I installed Ubuntu on it, I didn't think about that when it came to the point in the install of determining the hostname, so it gave it a default name combining my userid with the computer model name. When I do a nslookup of the original name, it finds it. When I do that using the name it ended up with, it says it can't find it. The IP I get from the nslookup of the original name isn't the same as the IP I get from "ifconfig -a" on the Ubuntu box. Pinging both of those IPs say "ping: socket: Operation not permitted". – David M. Karr May 22 '12 at 18:45
Ok, I made some progress. I discovered that "ping" is a restricted operation on Win7, so I had to run the shell (Cygwin) as administrator. I made putty use the ip address that the box thinks it is (from "ifconfig -a"), and that was able to work. It might be worth changing the /etc/hostname value to the basename of the fqhn that I was given, but I can at least move forward with this. I don't know if I really need that "wins" thing you refer to. I also need to set up my keys so that I can ssh over to the box without entering a password, but that's a further question. – David M. Karr May 22 '12 at 19:23
1  
This question appears to be abandoned, if you are experiencing a similar issue please ask a new question with details pertaining to your problem. If you feel this question is not abandoned, please flag the question explaining that. :) – Seth Dec 24 '12 at 22:31

closed as too localized by Seth, Eric Carvalho, txwikinger, vasa1, The Lord of Time Mar 22 at 2:25

This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, see the FAQ.

Browse other questions tagged or ask your own question.