Computing.Net > Forums > Unix > ssh setup

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

ssh setup

Reply to Message Icon

Name: John O'Meara
Date: August 13, 2003 at 14:20:38 Pacific
OS: Solaris 9
CPU/Ram: -
Comment:

Hi folks im trying to setup ssh on a sparc solaris 8 system which ive just installed. How exactly do you go about setting the service up and do i need to install any components - ive installed off the install disk and two accompanying software setup disk. As of yet i havent added any bonus software.

cheers in advance



Sponsored Link
Ads by Google

Response Number 1
Name: cc0537
Date: August 14, 2003 at 10:15:31 Pacific
Reply:

become root

install the binary gcc package from www.sunfreeware.com

set path for gcc compiler
(/usr/local/bin and /usr/ccs/bin)

install all others from source in this order:
zlib
perl
openssl
openssh

then ...

# mkdir /var/empty
# chown root:sys /var/empty
# chmod 755 /var/empty
# groupadd sshd
# useradd -g sshd -c 'sshd privsep' -d /var/empty -s /bin/false sshd

/var/empty shouldn't have any files inside

# ssh-keygen -t rsa1 -f /usr/local/etc/ssh_host_key -N ""
# ssh-keygen -t dsa -f /usr/local/etc/ssh_host_dsa_key -N ""
# ssh-keygen -t rsa -f /usr/local/etc/ssh_host_rsa_key -N ""

in your /etc/init.d directory create a sshd file with the following script:

---------
case "$1" in
'start')
if [ -x /usr/local/sbin/sshd ]; then
echo "Starting the secure shell daemon"
/usr/local/sbin/sshd &
fi
;;

'stop')
echo "Stopping the secure shell daemon "
pkill -TERM sshd
;;
*)
echo "Usage: /etc/init.d/sshd { start | stop }"
;;
esac
exit 0
------------

next do the following:

# chown root /etc/init.d/sshd
# chgrp sys /etc/init.d/sshd
# chmod 555 /etc/init.d/sshd

in /etc/init.d do:
./sshd start

will start the ssh server

./sshd stop will stop it

check to see if it's running:

# ps -e | grep sshd

good luck


0
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Unix Forum Home


Sponsored links

Ads by Google


Results for: ssh setup

Unix telnet with windows www.computing.net/answers/unix/unix-telnet-with-windows/8026.html

limit ssh www.computing.net/answers/unix/limit-ssh/4509.html

NIS and ssh www.computing.net/answers/unix/nis-and-ssh/1148.html