Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game. |
| Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
06-03-2004, 06:07 PM
|
#1
|
|
LQ Newbie
Registered: Jun 2004
Posts: 4
Rep:
|
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.
|
|
|
|
06-03-2004, 06:41 PM
|
#2
|
|
Senior Member
Registered: Sep 2002
Location: CA
Distribution: openSuSE, Cent OS, Slackware
Posts: 1,131
Rep:
|
Is it possible you have a firewall rule blocking it?
|
|
|
|
06-04-2004, 02:10 PM
|
#3
|
|
LQ Newbie
Registered: Jun 2004
Posts: 4
Original Poster
Rep:
|
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???
|
|
|
|
06-04-2004, 02:25 PM
|
#4
|
|
Senior Member
Registered: Sep 2002
Location: CA
Distribution: openSuSE, Cent OS, Slackware
Posts: 1,131
Rep:
|
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 02:27 PM.
|
|
|
|
06-05-2004, 02:36 PM
|
#5
|
|
LQ Newbie
Registered: Jun 2004
Posts: 4
Original Poster
Rep:
|
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
|
|
|
|
06-05-2004, 05:41 PM
|
#6
|
|
Senior Member
Registered: Sep 2002
Location: CA
Distribution: openSuSE, Cent OS, Slackware
Posts: 1,131
Rep:
|
Are you sure ssh deamon on the server side is running?
Last edited by micxz; 06-06-2004 at 02:00 AM.
|
|
|
|
06-11-2004, 03:03 AM
|
#7
|
|
LQ Newbie
Registered: Jun 2004
Posts: 4
Original Poster
Rep:
|
Since I can connet to my school site by ssh from both the machines, I believe ssh daemon is running.
|
|
|
|
06-11-2004, 04:09 AM
|
#8
|
|
Senior Member
Registered: Sep 2002
Location: CA
Distribution: openSuSE, Cent OS, Slackware
Posts: 1,131
Rep:
|
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.
|
|
|
|
06-11-2004, 04:26 AM
|
#9
|
|
Senior Member
Registered: Mar 2003
Location: Beautiful BC
Distribution: RedHat & clones, Slackware, SuSE, OpenBSD
Posts: 1,791
Rep:
|
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 04:28 AM.
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 06:04 AM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|