Install & configure Openssh In Solaris 8


 
Thread Tools Search this Thread
Operating Systems Solaris Install & configure Openssh In Solaris 8
# 1  
Old 01-08-2007
Install & configure Openssh In Solaris 8

I hope someone out there can help. I'm trying to install & configure Openssh to my Solaris, I downloaded & Installed the following pkgs :

openssh-4.4p1-sol8-sparc-local.gz
openssl-0.9.8d-sol8-sparc-local.gz
tcp_wrappers-7.6-sol8-sparc-local.gz
zlib-1.2.1-sol8-sparc-local.gz
libgcc-3.4.6-sol8-sparc-local.gz
Along with recommended Patch 112438-03 as recommended.

Different sites suggested different ways of doing it, everytime I try, I run into a stumbling block.

Can anyone tell me an easier straight forward way to get this done with all the frustrations.

Thanks,
Remi
# 2  
Old 01-10-2007
The first thing to do is install all those packages. Is that where you are having the trouble?

1) gunzip <filename>
2) pkgadd -d <filename>

EDIT: Whoops. I had not read your post well enough. It looks like you have already installed the packages.

So continue on to the next steps, which are best done from the console.

Quote:
Because of the new SSH security architecture in version 4.3p2, there is a separation of priveleges, and a new user and group need to be created. As root, run the following commands:

Code:
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

Next, we need to generate new keys for the machine.

Code:
cd /usr/local/bin
./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 ""

Next we need to set up the SysV init scripts to start OpenSSH instead of Sun's SSH on startup:

Code:
cd /etc/init.d
mv sshd sshd.old

Create a new /etc/init.d/sshd file and insert the following:

Code:
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

Save the file and do:

Code:
chmod 744 sshd
cd /etc/rc3.d
mv S89sshd _S89sshd.old
ln -s /etc/init.d/sshd S89sshd
cd ../rc2.d/
mv K03sshd _K03sshd.old
ln -s /etc/init.d/sshd K03sshd

Now we need to stop the Sun sshd service and start the OpenSSH service:

Code:
/etc/init.d/sshd.old stop
/etc/init.d/sshd start

Run ps to make sure the Sun ssh is running. You should see something similar to the output below. The important part is the path. It should be /usr/local/sbin/sshd.
Code:
ps -ef | grep ssh
    root 10423 10326  0 16:57:19 console  0:00 grep ssh
    root 10421     1  0 16:54:51 ?        0:00 /usr/local/sbin/sshd

This User Gave Thanks to dangral For This Post:
# 3  
Old 01-11-2007
Install & configure Openssh In Solaris 8

I tried to run the ssh-keygen, but I got an error message. I also tried running ./configure , it failed.
I installed gcc & my PATH is correct.................all to no AVAIL.
Please see the error messages I'm getting, maybe this would help.


Thanks.
Remi


# cd /usr/local/bin
# ./ssh-keygen -t rsa1 -f /usr/local/etc/ssh_host_key -N ""
./ssh-keygen: not found
# ./ssh-keygen -t rsa1 -f /usr/local/etc/ssh_host_key -N "" >/tmp/eve
./ssh-keygen: not found


#pwd
/opt/openssh-4.41
#./configure
checking for gcc... no
cheking for cc... no
checking for cl.exe... no
configure: error: no acceptable C compiler found in $PATH
See `config.log' for more details.


#more config.log

## --------- ##

hostname = sstrmybadmin
uname -m = sun4u
uname -r = 5.8
uname -s = SunOS
uname -v = Generic_117350-43

/usr/bin/uname -p = sparc
/bin/uname -X = System = SunOS
Node = sstrmybadmin
Release = 5.8
KernelID = Generic_117350-43
Machine = sun4u
BusType = <unknown>
Serial = <unknown>
Users = <unknown>
OEM# = 0
Origin# = 1
NumCPU = 1

/bin/arch = sun4
/usr/bin/arch -k = sun4u
/usr/convex/getsysinfo = unknown
/usr/bin/hostinfo = unknown
/bin/machine = unknown
/usr/bin/oslevel = unknown
/bin/universe = unknown

PATH: .
PATH: /usr/sbin
PATH: /usr/bin
PATH: /usr/dt/bin
PATH: /usr/openwin/bin
PATH: /bin
PATH: /usr/ucb
PATH: /usr/ccs/bin
PATH: /usr/ccs/bin
PATH: /opt/gcc


## ----------- ##
## Core tests. ##
## ----------- ##

configure:1846: checking for gcc
configure:1876: result: no
configure:1943: checking for cc
configure:1990: result: no
configure:2046: checking for cl.exe
configure:2076: result: no
configure:2105: error: no acceptable C compiler found in $PATH
See `config.log' for more details.

## ---------------- ##
## Cache variables. ##
## ---------------- ##

ac_cv_env_CC_set=
ac_cv_env_CC_value=
ac_cv_env_CFLAGS_set=
ac_cv_env_CFLAGS_value=
ac_cv_env_CPPFLAGS_set=
ac_cv_env_CPPFLAGS_value=
ac_cv_env_CPP_set=
ac_cv_env_CPP_value=
ac_cv_env_LDFLAGS_set=
ac_cv_env_LDFLAGS_value=
ac_cv_env_build_alias_set=
ac_cv_env_build_alias_value=
ac_cv_env_host_alias_set=
ac_cv_env_host_alias_value=
ac_cv_env_target_alias_set=
ac_cv_env_target_alias_value=

## ----------------- ##
## Output variables. ##
## ----------------- ##

AR=''
AWK=''
CAT=''
CC=''
CFLAGS=''
CPP=''
CPPFLAGS=''
DEFS=''
ECHO_C=''
ECHO_N='-n'
ECHO_T=''
EGREP=''
ENT=''
EXEEXT=''
GREP=''
INSTALL_DATA=''
INSTALL_PROGRAM=''
INSTALL_SCRIPT=''
INSTALL_SSH_PRNG_CMDS=''
INSTALL_SSH_RAND_HELPER=''
KILL=''
LD=''
LDFLAGS=''
LIBEDIT=''
LIBOBJS=''
LIBPAM=''
LIBS=''
LIBSELINUX=''
LIBWRAP=''
LOGIN_PROGRAM_FALLBACK=''
LTLIBOBJS=''
MAKE_PACKAGE_SUPPORTED=''
MANTYPE=''
NROFF=''
OBJEXT=''
OPENSC_CONFIG=''
PACKAGE_BUGREPORT='openssh-unix-dev@mindrot.org'
PACKAGE_NAME='OpenSSH'
PACKAGE_STRING='OpenSSH Portable'
PACKAGE_TARNAME='openssh'
PACKAGE_VERSION='Portable'
PATH_GROUPADD_PROG=''
PATH_PASSWD_PROG=''
PATH_SEPARATOR=':'
PATH_USERADD_PROG=''
PERL=''
PRIVSEP_PATH=''
PROG_ARP=''
PROG_DF=''
PROG_IFCONFIG=''
PROG_IPCS=''
PROG_JSTAT=''
PROG_LAST=''
PROG_LASTLOG=''
PROG_LS=''
PROG_NETSTAT=''
PROG_PS=''
PROG_SAR=''
PROG_TAIL=''
PROG_UPTIME=''
PROG_VMSTAT=''
PROG_W=''
PROG_WHO=''
RANLIB=''
SED=''
SH=''
SHELL='/bin/bash'
SSHDLIBS=''
SSH_PRIVSEP_USER=''
STARTUP_SCRIPT_SHELL=''
STRIP_OPT=''
TEST_MINUS_S_SH=''
--More--(72%)
checking for cc... no
checking for cl.exe... no

configure: error: no acceptable C compiler found in $PATH
See `config.log' for more details.





o
# 4  
Old 01-11-2007
In the original post you list some files:

Quote:
openssh-4.4p1-sol8-sparc-local.gz
openssl-0.9.8d-sol8-sparc-local.gz
tcp_wrappers-7.6-sol8-sparc-local.gz
zlib-1.2.1-sol8-sparc-local.gz
libgcc-3.4.6-sol8-sparc-local.gz
Those files are gzipped packages and there is no need to run configure. Merely gunzip and run pkgadd.
# 5  
Old 01-11-2007
Install & configure Openssh In Solaris 8

I ran gunzip and added the package........when I installed them & that was the error messages were what I got.

Thanks,
Remi
# 6  
Old 01-15-2007
Open Ssh In Solaris

I hope someone out there can help. I'm trying to install & configure Openssh to my Solaris. I downloaded & Installed the following pkgs :

I'm having a terrible time configuring Openssh on my servers.

I downloaded & Installed the following pkgs :
openssh-4.4p1-sol8-sparc-local.gz
openssl-0.9.8d-sol8-sparc-local.gz
tcp_wrappers-7.6-sol8-sparc-local.gz
zlib-1.2.1-sol8-sparc-local.gz
libgcc-3.4.6-sol8-sparc-local.gz

Along with recommended Patch 112438-03 as recommended.

I gunzipped them & added the pkgs.

I did the following:
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

When I attempted to generate the key by doing the following :
cd /usr/local/bin
./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 ""

I got an error message : ssh-keygen not found.


On my other server, I tried the same thing, I also added the ssh script &

chmod 744 sshd
cd /etc/rc3.d
mv S89sshd _S89sshd.old
ln -s /etc/init.d/sshd S89sshd
cd ../rc2.d/
mv K03sshd _K03sshd.old
ln -s /etc/init.d/sshd K03sshd

/etc/init.d/sshd.old stop
/etc/init.d/sshd start

AND STILL GOT AN ERROR MESSAGE.............................................

Can anyone tell me why I'm getting the ssh-keygen error & what else I could do..I'll really appreciate it.


Thanks,
Remi
# 7  
Old 01-15-2007
Remi, see the rules.

(4) Do not 'bump up' questions if they are not answered promptly. No duplicate or cross-posting and do not report a post where your goal is to get an answer more quickly.

Threads merged.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Red Hat

how to install Openssh in linux machine

Hi genious i'm New to Linux .. help me Very Urgent how to install Openssh in linux machine step by step .... plz (3 Replies)
Discussion started by: coolboys
3 Replies

2. Solaris

How to install/configure OpenSSH4.1 on Solaris 10

Hi All, I am New to Open SSH. I need to install OpenSSH on Solaris 10. We tried with Sun-SSH1.1, but not helpful. So, we need to install only OpenSSH. Few questions.. 1. Is OpenSSH-4.1 compatible with Solaris 10? 2. if so, which version do I need to install? is it Portable or OpenBSD? 3.... (2 Replies)
Discussion started by: venusunil
2 Replies

3. Solaris

How to configure netbackup client in Solaris 9 & 10

Hi Experts Though I am aware that I am asking some thing which I should not ask here, however I am sure that there are many who must be have configure netback client in solaris 9 and 10. Please help /direct me towards some link as how and what all is required to configure Veritas... (4 Replies)
Discussion started by: kumarmani
4 Replies

4. Solaris

need advice on install/configure amanda on solaris 10

i facing this problen when following the 15 min tutorial on amaddclient. (2 Replies)
Discussion started by: conandor
2 Replies

5. UNIX and Linux Applications

need advices on install/configure amanda on solaris 10

i would like to have advices on how to install/configure amanda on solaris 10. thank you. (1 Reply)
Discussion started by: conandor
1 Replies

6. AIX

how to install openSSH in AIX 5.3?

Guys I need to install openSSH on AIX 5.3? First problem is : i am unable to find openSSH 3.8.1 freeware on the net ?pls pass on any links if you have. Second problem is : installation.Although i know how to install rpm packages,installing SSH is bit diffrent.But that second issue. Can... (16 Replies)
Discussion started by: ak835
16 Replies

7. HP-UX

OpenSSH install

I'm trying to install OpenSSH on HP-UX 11.11, so, first of all, I was going to install OpenSSL, but I get an error message during "make test"... 23324:error:24064064:random number generator:SSLEAY_RAND_BYTES:PRNG not seeded:md_rand.c:503:You need to read the OpenSSL FAQ,... (8 Replies)
Discussion started by: untamed
8 Replies

8. UNIX for Advanced & Expert Users

How to install OpenSSh in tru64 4.0F??

I had been searching and i guess ssh is not available for 4.0F, the option is to install OpenSSh, but i don't know hw to do it!! :confused: Would someone pls send me some instrctions about the insalation and where can i download the OpenSSH??? Tks a lot!!! :) (1 Reply)
Discussion started by: irasela
1 Replies

9. Red Hat

Unable to install & configure Sendmail

Hi All • Regarding installing sendmail pkg in server, I tried to install the pkg but getting the below errors as shown below - any idea on this? • But I have successfully installed sendmail-cf pkg in the server box • But that is not sufficient we also need to install sendmail pkg • Help is... (2 Replies)
Discussion started by: csaha
2 Replies

10. Solaris

Cant configure video & nic (solaris 8 on x86)

can someone please through light on how to configure video and nic. Dimension 3000 Series, Intel Pentium 4 Processor at 2.8GHz 256MB DDR SDRAM at 400MHz EA 0.00 0.00 17 in (17 in viewable) E173FP Flat Panel Display EA Integrated Intel Extreme Graphics 2 EA Intel Pro 100M Integrated... (4 Replies)
Discussion started by: Jimmpy
4 Replies
Login or Register to Ask a Question