Also,
Don't forget to comment out the entry for
telnet from /etc/inetd.conf and restart the
inetd. That will only stop the telnet connection
to the server.
Main Topics
Browse All TopicsWe have two Solaris 8 servers in our lab. School asks us to stop telnet to these servers from the intranet dailup but instead we are given access to SSH.
I know little on OS. What I need to do to implement SSH into systems? Patching files? Thanks!
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
Unfortunately, you have to do some manual configurattion by hand. (You need to download all the package from the site I specified, and installed them, then EDIT the configuration files, and generate keys). This only enable you to use ssh to get accese to other box with sshd runing.
You make you sshd automatically startup on reboot.
Here's the startup script for sshd, save it as /etc/rc2.d/S99sshd
#!/sbin/sh
# This script is for start and stop the OpenSSH daemon -- sshd
# Written By: Greg Yu, Date: 21/11/2001
#
# OpenSSH configuration files location: /usr/local/etc
# OpenSSH key files location: /etc/ssh2
#
# Generic script used to start and stop a service
case "$1" in
'start')
# Start the sshd server
if [ -f /usr/local/sbin/sshd ]; then
/usr/local/sbin/sshd &
fi
;;
'stop')
pid=`ps -ef | grep sshd | grep -v grep | awk '{print $2} ' `
if test "$pid" ; then
/usr/bin/kill $pid
else
echo "No PID file. Process may not be running"
fi
;;
*)
echo "Usage: /etc/init.d/sshd { start | stop }"
;;
esac
exit 0
#=========================
Modify the about script to suit your secure shell installaton.
To disable telnet, ftp you need to vi /etc/inetd.conf
and comment out the service.
and then restart inted
ps -ef | grep intetd | grep -v grep
kill -HUP process_id
restart the inted deamon
Business Accounts
Answer for Membership
by: yuzhPosted on 2002-12-04 at 20:53:20ID: 7534965
You need to download secure ssh for your version of OS from the following site and install it:
-N "" -N ""
------
nssh8.html
http://sunfreeware.com/
Here's something I wrote sometime ago from my previous installation:
Openssh configuration files:
Solaris: /usr/local/etc/ssh_config
1) Install the following packages:
openssl-0.9.6c
openssh-3.1p1
prngd-0.9.23
zlib-1.1.4
perl-5.6.1
2) Setup the Pseudo Random Number Generator Daemon
mkdir /var/spool/prngd
write a script to auto start and stop the prngd daemon (S98prngd), put it in
/etc/rc2.d, make it start before the sshd startup script
3) cd /usr/local/etc, edit ssh_config and sshd_config file.
I put the keys in /etc/ssh2
4) create the ssh keys use the following commands:
ssh-keygen -t rsa1 -f /etc/ssh2/ssh_host_key -N ""
ssh-keygen -t dsa -f /etc/ssh2/ssh_host_dsa_key
ssh-keygen -t rsa -f /etc/ssh2/ssh_host_rsa_key
5) cp ~/bin/start-ssh.sh /etc/rc2.d/S99sshd
change the permissions for /etc/rc2.d/S99sshd
/etc/rc2.d/S99sshd start
Note: you can forgot about perl 5.x if you are not using it.
Here's a sample script for Setup the Pseudo Random Number Generator Daemon (I call it /etc/rc2.d/S98prngd
#!/bin/sh
# Start up script for Pseudo Random Number Generator Daemon
#
# placed in /etc/init.d with file name prngd and then as root run
# This daemon must run before the sshd start
#
# chown root /etc/init.d/prngd
# chgrp sys /etc/init.d/prngd
# chmod 555 /etc/init.d/prngd
# ln -s /etc/init.d/prngd /etc/rc2.d/S98prngd
# /etc/rc2.d/S98prngd stop
# /etc/rc2.d/S98prngd start
pid=`/usr/bin/ps -e | /usr/bin/grep prngd | /usr/bin/sed -e 's/^ *//' -e 's/ .*//'`
case $1 in
'start')
/usr/local/bin/prngd /var/spool/prngd/pool
;;
'stop')
if [ "${pid}" != "" ]
then
/usr/bin/kill ${pid}
fi
;;
*)
echo "usage: /etc/init.d/prngd {start|stop}"
;;
esac
#---------------End of Script--------------------
All you need to do is download the package, and follow my notes, to make it up and running.
You can find more instructions and the sshd startup stript from the following site:
http://sunfreeware.com/ope
Good luck!
==========
yuzh
PS: if you need more help, please let me know.