LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
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 05-25-2004, 01:53 AM   #1
Rotwang
Member
 
Registered: Jan 2004
Distribution: CentOS
Posts: 281

Rep: Reputation: 30
Two Linux boxes can't ssh to each other


I have:

a win2k pc
a linux (mandrake) pc
a fedora (core 2) pc
all on a lan (linksys router)

I just installed the core 2 pc. Completely fresh install.

The windows pc can ssh in to either of the linux pc's.

Neither linux PC can ssh to each other. The ssh command just times out, doesn't do anything or return to prompt.

I never added anything to hosts.allow on either linux box (and yet the windows pc can ssh to either one just fine).

what could cause this?
 
Old 05-25-2004, 03:51 AM   #2
ppuru
Senior Member
 
Registered: Mar 2003
Location: Beautiful BC
Distribution: RedHat & clones, Slackware, SuSE, OpenBSD
Posts: 1,791

Rep: Reputation: 50
Recheck your sshd_config for clues. Use tcpdump to figure out whether you are getting any responses from the server. Could it be a protocol problem?

sshclient is using protocol 2, sshd using protocol 1 or vice versa...
 
Old 05-25-2004, 03:56 AM   #3
Poetics
Senior Member
 
Registered: Jun 2003
Location: California
Distribution: Slackware
Posts: 1,181

Rep: Reputation: 49
Can you ping, et cetera, from one to the other?
 
Old 05-25-2004, 12:54 PM   #4
Rotwang
Member
 
Registered: Jan 2004
Distribution: CentOS
Posts: 281

Original Poster
Rep: Reputation: 30
Each machine can ping the other.

Here is /etc/ssh/ssh_config on one machine:

Host *
ForwardX11 yes

And here is /etc/ssh/ssh_config on the other:

Host *
ForwardX11 yes
Protocol 2,1
StrictHostKeyChecking no

Here is verbose:

ssh -v 192.168.1.130
OpenSSH_3.6.1p2, SSH protocols 1.5/2.0, OpenSSL 0x0090702f
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.1.130 [192.168.1.130] port 22.
debug1: connect to address 192.168.1.130 port 22: Connection timed out
ssh: connect to host 192.168.1.130 port 22: Connection timed out

I've also tried ssh -1 192.168.1.130 and ssh-2 192.168.1.130, and the reverse (from the other box to the other).

I can ssh into either linux pc from the windows pc. I can also ssh out to my remote webserver box from any one of the three pc's. The only thing I can't do is ssh from either linux box to the other. Can't understand why.

Last edited by Rotwang; 05-25-2004 at 12:56 PM.
 
Old 05-25-2004, 01:05 PM   #5
bulliver
Senior Member
 
Registered: Nov 2002
Location: Edmonton AB, Canada
Distribution: Gentoo x86_64; Gentoo PPC; FreeBSD; OS X 10.9.4
Posts: 3,760
Blog Entries: 4

Rep: Reputation: 78
Are you ssh'ing as root? Generally only connections from regular users will be accepted.

Do you have any firewall rules that may be playing a part here?

Last edited by bulliver; 05-25-2004 at 01:06 PM.
 
Old 05-25-2004, 01:09 PM   #6
Rotwang
Member
 
Registered: Jan 2004
Distribution: CentOS
Posts: 281

Original Poster
Rep: Reputation: 30
sshing as user (rotwang).

As for firewall- if the windows pc (connected to the same linsys router) can ssh in, then the port must be open.

But I checked anyway, it's open on both boxes.
 
Old 05-25-2004, 01:18 PM   #7
bulliver
Senior Member
 
Registered: Nov 2002
Location: Edmonton AB, Canada
Distribution: Gentoo x86_64; Gentoo PPC; FreeBSD; OS X 10.9.4
Posts: 3,760
Blog Entries: 4

Rep: Reputation: 78
Quote:
As for firewall- if the windows pc (connected to the same linsys router) can ssh in, then the port must be open
Sure, but the linux boxes might be specifically denied. Not saying they are...you just need to think of everything.

Do you have a .ssh directory in your users home directory with your keys and known hosts files? You will need to set this up for both boxes you want to ssh from.
 
Old 05-25-2004, 01:26 PM   #8
Rotwang
Member
 
Registered: Jan 2004
Distribution: CentOS
Posts: 281

Original Poster
Rep: Reputation: 30
Yes, there is a .ssh dir in the user dir on both linux pc's. (I would need this to be able to ssh out to the remote webserver, which I can do)

I've never put anything in hosts.allow or hosts.deny on either linux pc.

Last edited by Rotwang; 05-25-2004 at 01:28 PM.
 
  


Reply



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
need advice to run vnc (2 linux boxes) ssh OK arjay Debian 18 08-30-2005 07:41 AM
my iBook takes forever to ssh into my linux boxes johnson_steve Other *NIX 2 06-06-2005 12:48 PM
Linux (Cups) printer visible to windows, invisible to linux boxes ? johnvoisey Linux - Networking 2 02-27-2004 02:57 AM
how to share linux files on LAN btwn other linux boxes shakeeb Linux - Networking 9 02-04-2004 02:10 PM
win2000 boxes cannot map but winnt boxes can - same user! starbeetlechick Linux - Networking 0 07-24-2003 07:24 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 11:01 PM.

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
Open Source Consulting | Domain Registration