[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[cobalt-users] SSh



Hey does this look good for instructions on installing secure shell on a RAQ4I?


Thanks
--Todd

----------------------------
First download the secure shell daemon (sshd) source to your server. SSH may be obtained from several sites. Choose a download site from the following URL:

http://www.csua.berkeley.edu/ssh-howto.html#where

At the time of this writing, the current version is: ssh-1.2.27.tar.gz
Authenticated as root, run the following commands:

tar -xzf ssh-1.2.27.tar.gz
cd ssh-1.2.27
./configure
make
make install

Copy the following contents into a file named /etc/rc.d/init.d/sshd

Note for RaQ3 users: In the code below replace "daemon sshd" with /usr/local/sbin/sshd (or whatever path sshd has been installed to).


------------- Copy below this line ---------------
#!/bin/sh

# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network

# Check that networking is up.
[ ${NETWORKING} = "no" ] && exit 0

[ -x /usr/local/sbin/sshd ] || exit 0

# See how we were called.
case "$1" in
start)
echo -n "Starting sshd: "
daemon sshd
echo
touch /var/lock/subsys/sshd
;;
stop)
echo -n "Shutting down sshd: "
killproc sshd
echo
rm -f /var/lock/subsys/sshd
;;
status)
status sshd
;;
restart)
$0 stop
$0 start
;;
*)
echo "Usage: sshd {start|stop|restart|status}"
exit 1
esac
exit 0
------------- Copy above this line ---------------
To start sshd automatically when the server is booted, run the following
commands:

chmod +x /etc/rc.d/init.d/sshd
ln -s /etc/rc.d/init.d/sshd /etc/rc.d/rc3.d/S85sshd

To administer your server remotely using ssh to encrypt all traffic, tunnel port 81 traffic from your local PC to the Cobalt server when connecting.

If you use a unix-based PC, run the following command to connect:

ssh your.cobaltserver.net -l admin -L 8081:localhost:81
[enter the admin password when prompted]

Type the real name of your server in place of the example
"your.cobaltserver.net".

Start a web browser on your PC. Enter the following URL:

http://localhost:8081/.cobalt/sysManage/

All administrative traffic will then be encrypted.