LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Start OpenSSH-4.6p1 On Boot in Mandriva 2006 (https://www.linuxquestions.org/questions/linux-newbie-8/start-openssh-4-6p1-on-boot-in-mandriva-2006-a-566815/)

seanh1986 07-05-2007 07:54 AM

Start OpenSSH-4.6p1 On Boot in Mandriva 2006
 
Hey, I'm using Mandriva Linux 2006.

I'm trying to get OpenSSH-4.6p1 to load on boot.

I installed it into the directory, /usr/local/openssh-4.6p1/

I added the following code atthe end of the file: /etc/rc.local

Code:

SSHD=/usr/local/openssh-4.6p1/sbin/sshd
if [-x "$SSHD"]
then
$SSDH && echo 'Starting SSHD'
fi

It boots fine, but how do i check if OpenSSH is acutally running?

Also, if I execute the command:
Code:

/usr/local/openssh-4.6p1/sbin/sshd
Will that start OpenSSH?

Or do i have to do something like:
Code:

/etc/rc.d/init.d/sshd start
Also, will the above code change because I installed OpenSSH in a non-default directory?

Thanks for any help!

{BBI}Nexus{BBI} 07-05-2007 09:33 AM

Alt & F2 type mcc press run, type root password, click ok. Go to System--> Enable or disable the system services see if it is listed in there. If it is you can see if it is running or not and you can check if it is set to start at boot. You can also start it from there if it is not running.


All times are GMT -5. The time now is 04:02 AM.