Quote:
This is the output:
# find / -name sshd -print
/usr/lib/ssh/sshd
/usr/sfw/lib/webmin/caldera/sshd
/usr/sfw/lib/webmin/sshd
/etc/webmin/sshd
/lib/svc/method/sshd
|
In my server side, find / -name -sshd -print gives the message as follows:
MyServer:~ 105 % find / -name sshd -print
/usr/lib/ssh/sshd
/usr/sfw/lib/webmin/caldera/sshd
/usr/sfw/lib/webmin/sshd
/usr/local/doc/openssh/contrib/hpux/sshd
/usr/local/sbin/sshd ( You do not have this line )
/etc/webmin/sshd
/lib/svc/method/sshd
MyServer:~ 106 % pkginfo | grep sshd
system SUNWsshdr SSH Server, (Root)
system SUNWsshdu SSH Server, (Usr)
Myserver:~ 107 % pkginfo | grep openssh
application SMCossh4 openssh
I want to give you my install log with openssh.
<1> add the following packages:
# pkgadd -d openssh-3.8.1p1-sol8-sparc-local
# pkgadd -d openssl-0.9.7g-sol8-sparc-local
# pkgadd -d zlib-1.2.1-sol8-sparc-local
# pkgadd -d libgcc-3.3-sol8-sparc-local (if you don't already have gcc 3.3.2 installed)
# pkgadd -d tcp_wrappers-7.6-sol8-sparc-local (optional)
<2> Setting up the sshd user and the /var/empty directory ( implement these steps as root )
# 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 should not contain any files.
The default sshd_config file in /usr/local/etc has the last line
<3>Setting up tcp_wrappers ( if you want )
<4>Edit /etc/hosts.allow and /etc/hosts.deny
MyServer:~ 112 % less /etc/hosts.deny
sshd:ALL
Myserver:~ 113 % less /etc/hosts.allow
sshd:Your_IP1,Allowed IP address,192.168.0.19
<5> Installing ssh and sshd
This is the final step.
Each machine that you want to communicate with via the ssh client will need to have an sshd daemon running. But first, you need to run the following three lines to create the key information for the server machine. Again, make sure you have /usr/local/bin and /usr/local/sbin in your PATH. If you have been running sshd before and have keys in /usr/local/etc, running these commands will overwrite them. As root, enter
# 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 ""
and wait until each is done - this may take a few minutes depending on the speed of your machine.
You might also want to study the /usr/local/etc/ssh_config and /usr/local/etc/sshd_config files to see if there is anything you want to configure differently.
<6> Please input " find / -name sshd -print"
maybe the output lines have the line of "/usr/local/sbin/sshd "
Please input from prompt as follows:
# /usr/local/sbin/sshd &
Then, your server is correctly configured and you can communicate with server by the IP addresses in /etc/host.allow file.
Please confirm this configuration.
Hope it to be helpful.