[SOLVED] Two-way network connection on sshd

This forum is for general chat between members about Mageia.

Technical questions are supposed to be posted in support forums. Not here !

[SOLVED] Two-way network connection on sshd

Postby tarazed » Sep 21st, '11, 08:57

Mageia 1 is a first class distribution. Long may it prosper. However
there is still the PEBCK issue to deal with. This is a newbie problem
essentially, one which has always caused me trouble. Two machines,
altair and canopus on a wireless network. They can ping each other
and canopus can scp and ssh to altair to its heart's content but
altair cannot respond. The hosts.allow files contain

sshd: altair
sshd: canopus

at both ends and shorewall allows the ssh service. Altair receives
the message "cannot connect to port 22 on canopus" or something
similar whereas canopus generates the RSA key initially and is happy
thereafter. Canopus can also copy from altair.

Is there anything else to check?

Len
tarazed
 
Posts: 273
Joined: Sep 18th, '11, 01:49

Re: [solved] Two-way network connection on sshd

Postby tarazed » Sep 21st, '11, 14:39

The message "connection refused" on port 22 meant that there was no server running on canopus. I had not realised that the server has to be installed as well as ssh. I had assumed that ssh and sshd were both part of the openssh package; not so. urpmi sshd then service sshd start.

Len
tarazed
 
Posts: 273
Joined: Sep 18th, '11, 01:49

Re: Two-way network connection on sshd

Postby wobo » Sep 21st, '11, 14:44

When I
Code: Select all
ssh somewhere
then the server has to run on 'somewhere', same as with ftp client/server or other such connections.
wobo
---
And a new day will dawn for those who stand long
And the forests will echo with laughter
(Stairway to Heaven, Led Zeppelin)
User avatar
wobo
 
Posts: 1649
Joined: Mar 22nd, '11, 17:13

Re: Two-way network connection on sshd

Postby tarazed » Sep 21st, '11, 14:58

Yes, that puzzled me but it looks as if ssh is self contained; as long as the authentication succeeds it actually does all the work but there has to be a listener at the other end (port 22). In my case I had probably installed sshd on altair at installation time (Mandriva 2010.1) by ticking ssh and OK-d it in the running services list, so canopus was clear to connect. If you miss it at installation time you have to be sure to install the separate packages later. Maybe ssh is a dependency of the sshd package.

Len
tarazed
 
Posts: 273
Joined: Sep 18th, '11, 01:49

Re: [solved] Two-way network connection on sshd

Postby isadora » Sep 21st, '11, 15:18

tarazed wrote:The message "connection refused" on port 22 meant that there was no server running on canopus. I had not realised that the server has to be installed as well as ssh. I had assumed that ssh and sshd were both part of the openssh package; not so. urpmi sshd then service sshd start.

Len

My assumption is, that sshd is part of open-sshserver (package).

Code: Select all
[root@localhost ~]# rpm -ql openssh-server
/etc/avahi/services/openssh.service
/etc/pam.d/sshd
/etc/rc.d/init.d/sshd
/etc/ssh/denyusers
/etc/ssh/moduli
/etc/ssh/sshd_config
/etc/sysconfig/sshd
/etc/xinetd.d/sshd-xinetd
/usr/lib64/ssh
/usr/lib64/ssh/sftp-server
/usr/sbin/sshd
/usr/share/man/man5/moduli.5.xz
/usr/share/man/man5/sshd_config.5.xz
/usr/share/man/man8/sftp-server.8.xz
/usr/share/man/man8/sshd.8.xz
/var/empty
..........bird from paradise..........

Perfection is achieved, not when there is nothing more to add, but when there is nothing left to take away.
—Antoine de Saint-Exupéry
User avatar
isadora
 
Posts: 2744
Joined: Mar 25th, '11, 16:03
Location: Netherlands

Re: Two-way network connection on sshd

Postby doktor5000 » Sep 21st, '11, 15:19

ssh is not self contained, also the packages are not called ssh and sshd, that may only be virtual provides.
If you look at the real package names, it becomes clearer:
Code: Select all
[doktor5000@mageia1 ~]$ ufn openssh | sort
Core 32bit Release:openssh-5.8p1-2.mga1.i586
Core 32bit Release:openssh-askpass-5.8p1-2.mga1.i586
Core 32bit Release:openssh-askpass-common-5.8p1-2.mga1.i586
Core 32bit Release:openssh-askpass-gnome-5.8p1-2.mga1.i586
Core 32bit Release:openssh-askpass-qt4-1.0.1-4.mga1.i586
Core 32bit Release:openssh-clients-5.8p1-2.mga1.i586
Core 32bit Release:openssh-server-5.8p1-2.mga1.i586


Besides the -askpass-packages, you see that it is split in openssh, openssh-clients and openssh-server.
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 17659
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

Re: Two-way network connection on sshd

Postby tarazed » Sep 21st, '11, 15:49

Thanks for the headsup. As somebody might have said; The road to hell is paved with assumptions.
tarazed
 
Posts: 273
Joined: Sep 18th, '11, 01:49


Return to General discussions about Mageia

Who is online

Users browsing this forum: No registered users and 1 guest