LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   ssh - server (https://www.linuxquestions.org/questions/linux-newbie-8/ssh-server-26971/)

GrayLOK 08-01-2002 10:35 AM

ssh - server
 
Hi all,

Not sure if this is the right group or not but as I see myself as a newbie I thought this group appropriate. Please forgive.

Ok, I am trying to shh into my RH 7.1 system from a winXP box and cant, I get the "connection refused" Downloaded putty from winbox etc. I have read all sorts in here and haven't found a solution. I think I have discovered that I don't seem to be running the server side of ssh only the client as I cant find anything to do sshd on the system. I want to install the server but don't know what to install. I am assuming that I can find the server part on the distro cds I just need to know the RPM name for the server part os ssh.

Help most appreciated

Thymox 08-01-2002 08:46 PM

If you mount your RH CDs, and look for any packages on them with ssh in them, then you're on the right track. It is possible that you already have ssh installed, but you're not running it! Open a terminal and change to the root user, then type ssh and then press <TAB>. You should get a list of programs beginning with ssh, and hopefully sshd will be amongst them. Once you have established that you do have sshd installed, then you need to start it. You can do this by running sshd, but you ideally want it to run at startup, don't you? I'm not sure how RH7.1 would do this (possible Linuxconf, but I personally never liked Linuxconf), but you're looking for the 'startup services'. If you feel like doing things the hard way, then you could edit your rc.d files manually in /etc/rc.d, but I wouldn't suggest it for the faint hearted.

Hope this helps (a little).

cli_man 08-01-2002 10:06 PM

The way I get most of my services to start at bootup, at least on my redhat machine is to get to command line su to root and type ntsysv --level 345 and you can see and check any servers you want to have start at bootup, once you are done there, reboot and have fun.

GrayLOK 08-02-2002 07:09 AM

Ok, thanks guys. Thymox, I have done the double tab to see and saw that I didn't have sshd installed just client stuff "...askpass" etc. So what I tried was to go back to orig RPMS and install again on the cd I found the RPMS: openssh-2.5.2p2-5.i386.rpm
openssh-askpass-2.5.2p2-5.i386.rpm
openssh-askpass-gnome-2.5.2p2-5.i386.rpm
openssh-clients-2.5.2p2-5.i386.rpm
openssh-server-2.5.2p2-5.i386.rpm

So I copied these to a temp directory cd'd to it and su'd to root and entered, "rpm -Uvh --test *shh*" it replied that the current ssh files were newer than the ones I was trying to install. How I got the newer versions I dont know, none the less they were only the client ones installed. Anyway, after rpm -e ssh (newer file name) though them I removed all ssh realated files. I then did a quick rpm -Uvh --test *shh* in the directory that I copied the ssh rpm's to and had a clean result. So I went ahead and installed them. Went to a console ctrl+alt F2 logged in as root and run "setup" in the list of "System services" I could now see sshd in list of services.

Right now I have typed sshd as root and no go. Ok, I have just run webmin and started the service ... Woopie I can now login from winxp box. My quest is over ...

Cheers

Mara 08-02-2002 06:05 PM

Try to update your ssh. The one you have is quite old and there were security bugs reported in ssh in the last few months...

GrayLOK 08-02-2002 09:05 PM

Cheer Mara I will do.


All times are GMT -5. The time now is 10:57 PM.