Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I set up my Ubuntu server and it can connect to itself when running ssh localhost. However, when I run Putty on windows 8 I get a "connection refused" error. I have, to the best of my ability:

  • disabled the firewall
  • double checked port number in putty
  • allowed putty in my windows firewall (I can connect to other servers fine)
  • reinstalled ssh

When trying to connect with putty I am using 127.0.0.1 and port 22 (I did not change the port number on my server from default). I think the problem is that the server isn't allowing external devices to connect to it still but if it isn't the firewall then I'm not quite sure where to look, I'm not the linux Guru I wish I was but I know enough to get by with most things.

Additionally, I realize there have been many posts on this connection refused error, however I just spent all day reading through them and I couldn't find anything that looked relevant to the issues I am experiencing

share|improve this question
    
First of all its a good idea to verbose the connection to get more details: ssh -v user@host –  dhojgaard May 23 '13 at 14:49
    
can you telnet to it? telnet <host-address> 22 –  dhojgaard May 23 '13 at 14:53
add comment

2 Answers 2

If I am reading your question right, it sounds like you are using putty on windows, to connect to ubuntu. It also sounds like you are giving putty the IP 127.0.0.1. If that is the case, you are telling putty to connect to your windows computer. To find the IP on ubuntu, you could run ip addr show (on the ubuntu computer), then use the IP address for the interface you are using for internet (en0, wlan0, etc) with putty.

share|improve this answer
    
okay i will try that right now and update this –  michael May 23 '13 at 16:43
    
okay so now when I attempt to ssh with my servers ip address (using putty on windows) I get "Network error: Connection timed out" and my internet is working on both systems –  michael May 23 '13 at 16:47
    
@michael Are your two machines are on the same router, or different networks? They way you wrote your question it is hard to tell which. –  demure May 23 '13 at 16:49
    
I used the above method to obtain my ip, before i was running sbin/ifconfig and I think I was typing in the ip for the wrong interface, anyhow, I just successfully signed on through putty, thanks! –  michael May 23 '13 at 16:56
2  
@michael: please accept the answer so that others can see that your question lead to a solution. –  Jo-Erlend Schinstad Jul 9 '13 at 16:05
add comment

I just had to install SSH on the server: sudo apt-get install openssh-server

Hope this helps a fellow newbe running Win 8 with Ubuntu 13.04 as a guest OS in VMWare Player

share|improve this answer
add comment

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.