Table of Contents
G-Linux - sshd
The ssh server can be run in two ways on Mandriva G-Linux: as standalone server, or on-demand using xinetd.
via xinetd
In the case you have xinetd already running (by default it's not even installed) it can save you some resources to enable sshd using it. To do so only takes two steps.
- enable it under xinetd
--- /etc/xinetd.d/sshd-xinetd.orig 2008-06-26 03:42:29.000000000 +0200 +++ /etc/xinetd.d/sshd-xinetd 2009-02-05 18:10:06.000000000 +0100 @@ -4,7 +4,7 @@ # this. service ssh { - disable = yes + disable = no socket_type = stream wait = no user = root - and restart the service
# /etc/rc.d/init.d/xinetd restart
Standalone
As xinetd doesn't come enabled by default in G-Linux, it can be simpler to just run ssh server in standalone mode, without any wrapper.
To start it you just need to
# /etc/rc.d/init.d/sshd start
and remember to use your user account, sshd for root is disabled for security reasons.
To do this automatically every time you power on your G-Linux use the following command:
# chkconfig --add sshd
This wont start sshd immediately, only on the next reboot, so you may want to run
/etc/rc.d/init.d/sshd start once anyway