LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
Search this Thread
Old 04-27-2008, 05:58 PM   #1
jspeed43
LQ Newbie
 
Registered: Apr 2008
Posts: 4

Rep: Reputation: 0
ssh not working from Putty, but works fine from Live CD (Suse of Fedora)


I have a Dell Server running Fedora 8, have set up ssh sshd is running, etc. From a laptop running Fedora Live CD, I can connect via SSH. From a different laptop running Suse Live CD, I can connect via SSH. From either laptop running Putty on WinXP, I get: "Network Error: Connection Refused"

So I am guessing a Putty config issue, but have tried everything.

ssh2 is running on the server, both RSA and DSA keys are in place.

command from the laptops when running Live CD is: ssh 192.168.1.70

from here I simply have to input the PW or login and PW.

what could be so hard about that in Putty?
 
Old 04-27-2008, 07:01 PM   #2
MensaWater
Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 5,943
Blog Entries: 5

Rep: Reputation: 753Reputation: 753Reputation: 753Reputation: 753Reputation: 753Reputation: 753Reputation: 753
PuTTY allows you to do either Telnet (port 23) OR ssh (port 22). You might want to verify you're selecting ssh rather than telnet from the PuTTY session.
 
Old 04-27-2008, 07:28 PM   #3
dxqcanada
Member
 
Registered: Sep 2006
Location: Canada
Distribution: Gentoo
Posts: 702

Rep: Reputation: 43
Set PuTTY to Never Close Window On Exit.
Start the session.
You should be able to Right Click on the Title bar to display further options.
There should be one to give you debug/trace.
 
Old 04-28-2008, 09:33 AM   #4
jspeed43
LQ Newbie
 
Registered: Apr 2008
Posts: 4

Original Poster
Rep: Reputation: 0
This is what I got when trying to telnet:

2008-04-28 10:25:47 Looking up host "192.168.1.70"
2008-04-28 10:25:47 Connecting to 192.168.1.70 port 23
2008-04-28 10:25:47 client: WILL NAWS
2008-04-28 10:25:47 client: WILL TSPEED
2008-04-28 10:25:47 client: WILL TTYPE
2008-04-28 10:25:47 client: WILL NEW_ENVIRON
2008-04-28 10:25:47 client: DO ECHO
2008-04-28 10:25:47 client: WILL SGA
2008-04-28 10:25:47 client: DO SGA
2008-04-28 10:25:48 Failed to connect to 192.168.1.70: Network error: Connection refused
2008-04-28 10:25:51 Network error: Connection refused

This is what I got when trying to ssh:

2008-04-28 10:28:17 Looking up host "192.168.1.70"
2008-04-28 10:28:17 Connecting to 192.168.1.70 port 22
2008-04-28 10:28:18 Failed to connect to 192.168.1.70: Network error: Connection refused
2008-04-28 10:28:18 Network error: Connection refused


still no idea what the server is looking for. even a basic telnet wont work from my DOS prompt:

C:\Documents and Settings>ping 192.168.1.70

Pinging 192.168.1.70 with 32 bytes of data:

Reply from 192.168.1.70: bytes=32 time=5ms TTL=64
Reply from 192.168.1.70: bytes=32 time=3ms TTL=64
Reply from 192.168.1.70: bytes=32 time=3ms TTL=64
Reply from 192.168.1.70: bytes=32 time=3ms TTL=64

Ping statistics for 192.168.1.70:
Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 3ms, Maximum = 5ms, Average = 3ms

C:\Documents and Settings>telnet 192.168.1.70
Connecting To 192.168.1.70...Could not open connection to the host, on port 23:
Connect failed
 
Old 04-28-2008, 09:43 AM   #5
datopdog
Member
 
Registered: Feb 2008
Location: JHB South Africa
Distribution: Centos, Kubuntu, Cross LFS, OpenSolaris
Posts: 806

Rep: Reputation: 41
seems like your winxp has a host firewall blocking outgoing connections on port 22
 
Old 04-28-2008, 05:46 PM   #6
fancylad
Member
 
Registered: Mar 2008
Distribution: slackware
Posts: 175

Rep: Reputation: 19
Go to windows command line. Type "telnet 192.168.1.70 22". This should establish a connection with sshd. If it does you should see something like this:

Quote:

Connected to 192.168.1.70.
Escape character is '^]'.
SSH-2.0-OpenSSH_4.3
If this works then the problem is putty related. If you get "connection refused" then something is blocking the connection, most likely window's wonderful firewall. Also, have you tried just pinging the host? nmap is a good tool to scan ports. It will tell you if the port is closed or filtered.
 
Old 04-29-2008, 09:30 AM   #7
MensaWater
Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 5,943
Blog Entries: 5

Rep: Reputation: 753Reputation: 753Reputation: 753Reputation: 753Reputation: 753Reputation: 753Reputation: 753
Also you might want to check networking. Many home routers will let you block traffic between hosts. If you're in a work environment that uses VLANs it is not unusual that internal firewalls prevent certain ports from working from one VLAN to another. If so you'll need to ask whoever manages those firewalls to open port 22 from the Windows VLAN to the Linux VLAN.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
cannot access rsh but ssh is working just fine xear Linux - Networking 6 02-19-2009 08:10 AM
Command not working in cron job, but works fine in root Roosta21 Linux - Software 4 11-22-2007 08:08 AM
vnc over ssh works fine but then i have X problem... suhis Linux - General 1 08-17-2004 04:33 PM
Wireless Card not working in SuSE 9 Pro. (but works in live eval) kreek123 Linux - Distributions 3 11-10-2003 09:23 PM
ogle works fine in suse 8.1 but I have no sound frontier1 Linux - Distributions 1 02-16-2003 06:35 PM


All times are GMT -5. The time now is 10:15 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration