The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Operating Systems > SUN Solaris
.
google unix.com



SUN Solaris The Solaris Operating System, usually known simply as Solaris, is a free Unix-based operating system introduced by Sun Microsystems .

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
OpenSSH install untamed HP-UX 8 01-07-2008 05:26 PM
How to Install and Configure USB Printer in SCO 6 karzon SCO 0 08-08-2007 10:02 AM
How to install OpenSSh in tru64 4.0F?? irasela UNIX for Advanced & Expert Users 1 02-17-2006 03:55 PM
Unable to install & configure Sendmail csaha Red Hat 2 02-03-2006 02:03 PM
How to install and configure Apache on SCO openserver 5 cstovall UNIX for Dummies Questions & Answers 1 11-16-2002 04:18 PM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 01-08-2007
Remi Remi is offline
Registered User
  
 

Join Date: Nov 2006
Posts: 36
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 (permalink)  
Old 01-10-2007
dangral dangral is offline Forum Advisor  
Registered User
  
 

Join Date: Oct 2002
Posts: 699
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
  #3 (permalink)  
Old 01-11-2007
Remi Remi is offline
Registered User
  
 

Join Date: Nov 2006
Posts: 36
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 (permalink)  
Old 01-11-2007
dangral dangral is offline Forum Advisor  
Registered User
  
 

Join Date: Oct 2002
Posts: 699
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 (permalink)  
Old 01-11-2007
Remi Remi is offline
Registered User
  
 

Join Date: Nov 2006
Posts: 36
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 (permalink)  
Old 01-15-2007
Remi Remi is offline
Registered User
  
 

Join Date: Nov 2006
Posts: 36
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 (permalink)  
Old 01-15-2007
reborg's Avatar
reborg reborg is offline Forum Staff  
Administrator
  
 

Join Date: Mar 2005
Location: Ireland
Posts: 4,236
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.
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 10:06 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0