Results 1 to 10 of 11
hello,
Pls I installed have Putty installed on my WinXP laptop in a bid to use it to connect to my Linux PC(FC4).
I assigned an IP on my Linux ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
- 12-15-2005 #1Linux Newbie
- Join Date
- Nov 2004
- Posts
- 167
Putty Connection refused error
hello,
Pls I installed have Putty installed on my WinXP laptop in a bid to use it to connect to my Linux PC(FC4).
I assigned an IP on my Linux Box in the format xxx.xxx.xx.5 and the problem is that this is the only IP that allows connection from Windows using SSH. If I change my Linux Box IP(static) to xxx.xxx.xx.4 or 3, etc, and i try to connect from Windows to Linux using SSH, i get a "connection refused" error.
Pls help
Toks
- 12-15-2005 #2Banned
- Join Date
- Jul 2004
- Posts
- 947
hmm very strange, did you restart the linux box, to make it take affect
- 12-15-2005 #3Linux Newbie
- Join Date
- Nov 2004
- Posts
- 167
yes,
i restarted the network from the terminal, did ping tests to and from Linux to Windows, etc. I even rebooted the server to confirm. then i tried using putty to login again and I get the error i mentioned in my first post.
Toks
- 12-15-2005 #4Linux User
- Join Date
- Apr 2005
- Location
- Ohio
- Posts
- 326
Check for firewall rules to make sure you're not battling those first..
This basically says that it will accept a SSH connection from any foreign IP address to any local IP address.. If yours shows somehting different post the results..itg-debian:/home/default# iptables -L | grep ssh
ACCEPT tcp -- anywhere anywhere tcp dpt:ssh
ACCEPT udp -- anywhere anywhere udp dpt:sshfar...out
- 12-15-2005 #5
So you change the Linux box IP, and then you can no longer connect to it from PuTTY? (I am hoping you remembered to change the IP in the PuTTY client as well to reflect the change.)
When you have already connected to an ssh server and the IP of that server changes, some clients prevent you from connecting. Or, more commonly, they throw up a warning message that host identification has changed. This is to prevent a man in the middle attack. You can try deleting your known hosts in the PuTTY client.
- 12-16-2005 #6Linux Newbie
- Join Date
- Nov 2004
- Posts
- 167
hi anomie,
Yes, i i changed my IP address and i can no longer connect to it from Putty. Yeah, i remembered the change the IP on the putty client as well.
The IP of the server did not change after i connected. Its like this....
I assigned an IP xxx.xxx.xx.5 to my FC4 server, while my WinXP has xxx.xxx.xx.6. If I change my FC4 IP to xxx.xxx.xx.4 for example, I cant connect from WIn to Linux using Putty anymore. I get the error "connection refused"
Toks
- 12-16-2005 #7Linux Newbie
- Join Date
- Nov 2004
- Posts
- 167
hi farslayer
i logged into my FC4 as root and typed the command
there was no desplay. I just got my prompt on the next lineiptables -L | greph ssh
Pls note: At least, for the moment, I want it to accept ssh connections from IPs on my local LAN, not from foreign IPs
thanks for the help
Toks
Originally Posted by farslayer
- 12-16-2005 #8Linux Newbie
- Join Date
- Dec 2005
- Location
- Singapore
- Posts
- 234
Re: Putty Connection refused error
Hi,
Originally Posted by Tokunbo
Basically, why we need to use Putty?
I saw someone install in Windows machine
Proper Planing is a way of success
- 12-16-2005 #9Linux Newbie
- Join Date
- Nov 2004
- Posts
- 167
hello guys,
I think i might have solved a part the problem i complained about and I thought to share how I got it solved.
As root, I cd'd to /etc/ssh/, vi'd into the file(sshd_config) changed the "Listen Address" to the IP address of my choice....xxx.xxx.xx.10. I also changed the IP of my eth0 to xxx.xxx.xx.10. I then restarted ssh and my network. So im able to login into ssh.
Note: I guess my old IP got registered into the "Listen Address" part the first time I ran putty from Windows.
cheers
Toks
- 12-16-2005 #10Linux Newbie
- Join Date
- Dec 2003
- Location
- Netherlands
- Posts
- 193
After a hard way of finding it out, you now know that changing your ip addresses can give you a hardtime.
Computers Are Like Air Conditioners... They\'re both useless with Windows open!


Reply With Quote
