LinuxQuestions.org
Visit Jeremy's Blog.
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 06-03-2004, 07:07 PM   #1
zwanzig
LQ Newbie
 
Registered: Jun 2004
Posts: 4

Rep: Reputation: 0
ssh in fedora: connection refused


I have two linux machine: redhat 7.3 and fedora core 2.
From redhat machine, I could access fedora machine using ssh. But could not access redhat machine from fedora. The message is "ssh: connect to host xx.xxx.xx.xx port 22: Connection refused".

The detailed verbose message are
OpenSSH_3.6.1p2, SSH protocols 1.5/2.0, OpenSSL 0x0090701f
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: Applying options for *
debug1: Rhosts Authentication disabled, originating port will not be trusted.
debug1: Connecting to 192.168.0.11 [192.168.0.11] port 22.
debug1: connect to address 192.168.0.11 port 22: Connection refused
ssh: connect to host 192.168.0.11 port 22: Connection refused

Thanks.
 
Old 06-03-2004, 07:41 PM   #2
micxz
Senior Member
 
Registered: Oct 2002
Location: CA
Distribution: openSuSE, Cent OS, Slackware
Posts: 1,131

Rep: Reputation: 75
Is it possible you have a firewall rule blocking it?
 
Old 06-04-2004, 03:10 PM   #3
zwanzig
LQ Newbie
 
Registered: Jun 2004
Posts: 4

Original Poster
Rep: Reputation: 0
Unhappy firewalls

I have tried both firewalls enabled with ssh and all other services on and using the same port. I also tried all firewalls turned off. But none of them are working. Is there other possibilities???
 
Old 06-04-2004, 03:25 PM   #4
micxz
Senior Member
 
Registered: Oct 2002
Location: CA
Distribution: openSuSE, Cent OS, Slackware
Posts: 1,131

Rep: Reputation: 75
When you type:

telnet 192.168.0.11 22

Do you get the ssh version displayed?
or what happens when you:

ping 192.168.0.11

Last edited by micxz; 06-04-2004 at 03:27 PM.
 
Old 06-05-2004, 03:36 PM   #5
zwanzig
LQ Newbie
 
Registered: Jun 2004
Posts: 4

Original Poster
Rep: Reputation: 0
When I do telnet 192.168.0.11 22(or 23), telnet does not work.
The message is
Trying 192.168.0.11...
telnet: connect to address 192.168.0.11: Connection refused

When I do ping 192.168.0.11, it is working.
The message is
PING 192.168.0.11 (192.168.0.11) 56(84) bytes of data.
64 bytes from 192.168.0.11: icmp_seq=0 ttl=255 time=1.83 ms
64 bytes from 192.168.0.11: icmp_seq=1 ttl=255 time=0.124 ms
64 bytes from 192.168.0.11: icmp_seq=2 ttl=255 time=0.120 ms

When I do ssh 192.168.0.11, ssh does not work.
The message is
ssh: connect to host 192.168.0.11 port 22: Connection refused
 
Old 06-05-2004, 06:41 PM   #6
micxz
Senior Member
 
Registered: Oct 2002
Location: CA
Distribution: openSuSE, Cent OS, Slackware
Posts: 1,131

Rep: Reputation: 75
Are you sure ssh deamon on the server side is running?

Last edited by micxz; 06-06-2004 at 03:00 AM.
 
Old 06-11-2004, 04:03 AM   #7
zwanzig
LQ Newbie
 
Registered: Jun 2004
Posts: 4

Original Poster
Rep: Reputation: 0
Since I can connet to my school site by ssh from both the machines, I believe ssh daemon is running.
 
Old 06-11-2004, 05:09 AM   #8
micxz
Senior Member
 
Registered: Oct 2002
Location: CA
Distribution: openSuSE, Cent OS, Slackware
Posts: 1,131

Rep: Reputation: 75
Quote:
Originally posted by zwanzig
Since I can connet to my school site by ssh from both the machines, I believe ssh daemon is running.
Connecting is one thing but running the server is another. I mean you can use the ssh client on the machine your trying to connect to but really is the ssh deamon has to be running there. Try the command:
ps aux | grep ssh
And look for something like "/usr/sbin/sshd"
If you don't see anything this is the problem.
Let me know what you think.
 
Old 06-11-2004, 05:26 AM   #9
ppuru
Senior Member
 
Registered: Mar 2003
Location: Beautiful BC
Distribution: RedHat & clones, Slackware, SuSE, OpenBSD
Posts: 1,791

Rep: Reputation: 47
Check whether sshd is running on your RedHat 7.3

#service sshd status

also check the /etc/hosts.allow and /etc/hosts.deny for any rules that block access.

sshd service need not be running if you want to use only the ssh client to connect to another machine. sshd service is required only when you want others to connect to your system.




Last edited by ppuru; 06-11-2004 at 05:28 AM.
 
  


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
SSH - Connection Refused eminence Linux - Networking 14 03-06-2012 01:22 AM
SSH Connection Refused? lowpro2k3 Linux - Networking 2 11-04-2009 12:02 PM
ssh secure connection refused lugoteehalt Linux - Networking 2 03-19-2004 11:33 AM
ssh connection refused rguptatx Red Hat 4 11-13-2003 07:18 PM
SSH port...Connection....refused?? Miyamoto Mandriva 6 08-26-2003 05:03 PM


All times are GMT -5. The time now is 12:48 AM.

Main Menu
Advertisement
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