Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

sftp on Solaris 8

133 views
Skip to first unread message

donka...@yahoo.com

unread,
Jan 28, 2007, 10:42:54 PM1/28/07
to
Hi I have Solaris 8 on Sun box. I want to install sftp on the box. I
have downloaded and installed the latest patches : 8_Recommended.zip
and 8_SunAlert_Patch_Cluster.zip.
I have donwload the following and gunzipped them

egd-0.8-sol8-sparc-local
libgcc-3.3-sol8-sparc-local
lsof-4.77-sol9-sparc-local
openssh-4.4p1-sol8-sparc-local
openssl-0.9.8d-sol8-sparc-local
prngd-0.9.25-sol8-sparc-local
tcp_wrappers-7.6-sol8-sparc-local
zlib-1.2.3-sol8-sparc-local

I chekced for the patch: showrev -p | grep "Patch: 112438-03"
Patch: 112438-03 Obsoletes: Requires: Incompatibles: Packages:
SUNWcsr, SUNWcarx, SUNWhea, SUNWmdb, SUNWmdbx

which gcc
/usr/local/bin/gcc

Now, how do I install ssh. Could someone please advise. Thanks

Malcolm

unread,
Jan 29, 2007, 12:04:24 AM1/29/07
to
On 28 Jan 2007 19:42:54 -0800
donka...@yahoo.com wrote:

Hi
Look here;

http://www.sunfreeware.com/openssh8.html

--
Cheers Malcolm °¿° (Linux Counter #276890)
SLED 10.0 x86_64 Kernel 2.6.16.27-0.6-smp
up 1 day 3:19, 2 users, load average: 0.17, 0.09, 0.02

donka...@yahoo.com

unread,
Jan 29, 2007, 4:56:44 PM1/29/07
to
Hi Malcom,

I followed the doc and this is what I did:

# ls -ltr
total 96296
-rw-r--r-- 1 oracle staff 129536 Jan 12 15:19 egd-0.8-sol8-
sparc-local
-rw-r--r-- 1 oracle staff 30914560 Jan 12 15:20 libgcc-3.3-sol8-
sparc-local
-rw-r--r-- 1 oracle staff 1448960 Jan 12 15:20 lsof-4.77-sol9-
sparc-local
-rw-r--r-- 1 oracle staff 2771968 Jan 12 15:20 openssh-4.4p1-
sol8-sparc-local
-rw-r--r-- 1 oracle staff 11910656 Jan 12 15:21 openssl-0.9.8d-
sol8-sparc-local
-rw-r--r-- 1 oracle staff 166912 Jan 12 15:21 prngd-0.9.25-
sol8-sparc-local
-rw-r--r-- 1 oracle staff 357376 Jan 12 15:21 tcp_wrappers-7.6-
sol8-sparc-local
-rw-r--r-- 1 oracle staff 1497088 Jan 12 15:21 zlib-1.2.3-sol8-
sparc-local

# pkgadd -d openssh-4.4p1-sol8-sparc-local
# pkgadd -d openssl-0.9.8d-sol8-sparc-local
# pkgadd -d prngd-0.9.25-sol8-sparc-local
# pkgadd -d tcp_wrappers-7.6-sol8-sparc-local
# pkgadd -d zlib-1.2.3-sol8-sparc-local
# pkgadd -d egd-0.8-sol8-sparc-local
# pkgadd -d libgcc-3.3-sol8-sparc-local
# pkgadd -d lsof-4.77-sol9-sparc-local

# ls -l /usr/local
total 20
drwxr-xr-x 11 bin bin 1024 Jan 17 09:27 bin
drwxr-xr-x 6 bin bin 512 Jun 9 2005 doc
drwxr-xr-x 7 bin bin 512 Jun 9 2005 include
drwxr-xr-x 2 bin bin 512 Jun 9 2005 info
drwxr-xr-x 6 bin bin 1536 Jun 9 2005 lib
drwxr-xr-x 2 bin bin 512 Feb 26 2002 libexec
drwxr-xr-x 6 bin bin 512 Jun 9 2005 man
drwxr-xr-x 13 root other 512 Jan 17 09:06 sbin
drwxr-xr-x 3 bin bin 512 Jun 9 2005 share

# ls -l /usr/local/ssl
/usr/local/ssl: No such file or directory

# ls -l shh /usr/local/bin
shh: No such file or directory

I do not have ssh under /usr/local/bin. I feel something is not
getting installed in the correct directory. Could anyone please
advise. Thanks

> up 1 day 3:19, 2 users, load average: 0.17, 0.09, 0.02- Hide quoted text -- Show quoted text -

Malcolm

unread,
Jan 29, 2007, 5:24:50 PM1/29/07
to
On 29 Jan 2007 13:56:44 -0800
donka...@yahoo.com wrote:

Hi
Did it say it was installing the packages? With the -d option I've
always used the full path to the location and always put the packages
in /var/spool/pkg directory.

So my command would be:
pkgadd -d /var/spool/pkg/<packagename>

Also on a side note, please don't top post :-)

--
Cheers Malcolm °¿° (Linux Counter #276890)
SLED 10.0 x86_64 Kernel 2.6.16.27-0.6-smp

up 1 day 20:37, 2 users, load average: 0.05, 0.10, 0.08

Karnash

unread,
Jan 30, 2007, 5:17:48 PM1/30/07
to
Malcom,
I go to the dir where the packages are unzipped and give the
following:
pkgadd -d /u02/ssl/openssh-4.4p1-sol8-sparc-local

The following packages are available:
1 SMCossh44p1 openssh
(sparc) 4.4p1

Select package(s) you wish to process (or 'all' to process
all packages). (default: all) [?,??,q]:

Processing package instance <SMCossh44p1> from </u02/ssl/openssh-4.4p1-
sol8-sparc-local>

openssh
(sparc) 4.4p1

This appears to be an attempt to install the same architecture and
version of a package which is already installed. This installation
will attempt to overwrite this package.

The OpenSSH Group

Enter path to package base directory [?,q] /usr/local
pkgadd: ERROR: SMCossh44p1 is already installed at /usr/local/sbin.
Cannot create a duplicate installation at /usr/local.

Installation of <SMCossh44p1> was suspended (administration).
No changes were made to the system.

For all the packages, I get the same message. I am not sure what path
should I give ???

ls -l /usr/local/sbin
total 42
drwxr-xr-x 4 root bin 512 Jan 15 11:52 bin
drwxr-xr-x 2 bin bin 512 Jan 15 11:35 certs
drwxr-xr-x 5 root bin 512 Jan 15 11:52 doc
drwxr-xr-x 2 bin bin 512 Jan 15 11:38 etc
drwxr-xr-x 3 bin bin 512 Jan 15 11:35 include
drwxr-xr-x 4 bin bin 512 Jan 15 11:35 lib
drwxr-xr-x 2 bin bin 512 Jan 15 11:38 libexec
drwxr-xr-x 7 root bin 512 Jan 15 11:38 man
drwxr-xr-x 2 bin bin 512 Jan 15 11:35 misc
-rw-r--r-- 1 bin bin 9374 Oct 5 18:35 openssl.cnf
drwxr-xr-x 2 bin bin 512 Jan 15 11:35 private
drwxr-xr-x 2 bin bin 512 Jan 15 11:38 share

I think I am not specifying the correct path. Can you advise. Thanks

Darren Dunham

unread,
Jan 30, 2007, 5:26:25 PM1/30/07
to
Karnash <donka...@yahoo.com> wrote:

> Enter path to package base directory [?,q] /usr/local
> pkgadd: ERROR: SMCossh44p1 is already installed at /usr/local/sbin.
> Cannot create a duplicate installation at /usr/local.

Ouch. /usr/local/sbin is not an appropriate package base. You may want
to just pkgrm the package, then reinstall it properly.


> ls -l /usr/local/sbin
> total 42
> drwxr-xr-x 4 root bin 512 Jan 15 11:52 bin
> drwxr-xr-x 2 bin bin 512 Jan 15 11:35 certs
> drwxr-xr-x 5 root bin 512 Jan 15 11:52 doc
> drwxr-xr-x 2 bin bin 512 Jan 15 11:38 etc

[...]

Yeah, those should all be in /usr/local, not in /usr/local/bin.

--
Darren Dunham ddu...@taos.com
Senior Technical Consultant TAOS http://www.taos.com/
Got some Dr Pepper? San Francisco, CA bay area
< This line left intentionally blank to confuse you. >

Malcolm

unread,
Jan 30, 2007, 5:34:57 PM1/30/07
to
On 30 Jan 2007 14:17:48 -0800
"Karnash" <donka...@yahoo.com> wrote:

> Malcom,
> I go to the dir where the packages are unzipped and give the
> following:
> pkgadd -d /u02/ssl/openssh-4.4p1-sol8-sparc-local
>
> The following packages are available:
> 1 SMCossh44p1 openssh
> (sparc) 4.4p1
>
> Select package(s) you wish to process (or 'all' to process
> all packages). (default: all) [?,??,q]:
>
> Processing package instance <SMCossh44p1> from
> </u02/ssl/openssh-4.4p1- sol8-sparc-local>
>
> openssh
> (sparc) 4.4p1
>
> This appears to be an attempt to install the same architecture and
> version of a package which is already installed. This installation
> will attempt to overwrite this package.
>
> The OpenSSH Group
>

> Enter path to package base directory [?,q] /usr/local
> pkgadd: ERROR: SMCossh44p1 is already installed at /usr/local/sbin.
> Cannot create a duplicate installation at /usr/local.
>

> Installation of <SMCossh44p1> was suspended (administration).
> No changes were made to the system.
>
> For all the packages, I get the same message. I am not sure what path
> should I give ???
>

> ls -l /usr/local/sbin
> total 42
> drwxr-xr-x 4 root bin 512 Jan 15 11:52 bin
> drwxr-xr-x 2 bin bin 512 Jan 15 11:35 certs
> drwxr-xr-x 5 root bin 512 Jan 15 11:52 doc
> drwxr-xr-x 2 bin bin 512 Jan 15 11:38 etc

> drwxr-xr-x 3 bin bin 512 Jan 15 11:35 include
> drwxr-xr-x 4 bin bin 512 Jan 15 11:35 lib
> drwxr-xr-x 2 bin bin 512 Jan 15 11:38 libexec
> drwxr-xr-x 7 root bin 512 Jan 15 11:38 man
> drwxr-xr-x 2 bin bin 512 Jan 15 11:35 misc
> -rw-r--r-- 1 bin bin 9374 Oct 5 18:35 openssl.cnf
> drwxr-xr-x 2 bin bin 512 Jan 15 11:35 private
> drwxr-xr-x 2 bin bin 512 Jan 15 11:38 share
>
> I think I am not specifying the correct path. Can you advise. Thanks
>

Hi
When I've installed ssh on Solaris 8, I've always had the packages
in /var/spool/pkg and then just run pkgadd.
I can't remember if it asked for the destination directory? I don't
think so, as these should automatically go into /usr/local/.

Try removing the packages you installed and try again? I don't have a
box to test on here :-(

--
Cheers Malcolm °¿° (Linux Counter #276890)
SLED 10.0 x86_64 Kernel 2.6.16.27-0.6-smp

up 1:25, 2 users, load average: 0.16, 0.14, 0.14

Karnash

unread,
Jan 30, 2007, 6:04:32 PM1/30/07
to
Hi,
I have removed the following packages

SMCegd egd
SMClibgcc lgcc
SMCossh44p1 openssh
SMCosl98d openssl
SMCprngd prngd
SMCtcpwr tcp_wrappers
SMCzlib zlib

pkgrm SMCegd

The following package is currently installed:
SMCegd egd
(sparc) 0.8

Do you want to remove this package? y

## Removing installed package instance <SMCegd>

Enter path to package base directory [?,q] /usr/local

similarly, I have removed all packages and have given the path as /usr/
local. Now I am back to square one. Any idea now ??? Thanks for your
time,

Malcolm

unread,
Jan 30, 2007, 6:40:20 PM1/30/07
to
On 30 Jan 2007 15:04:32 -0800
"Karnash" <donka...@yahoo.com> wrote:

Hi
Where did you get the packages from? I would use the ones from
sunfreeware.com

--
Cheers Malcolm °¿° (Linux Counter #276890)
SLED 10.0 x86_64 Kernel 2.6.16.27-0.6-smp

up 2:38, 2 users, load average: 0.40, 0.14, 0.04

Karnash

unread,
Jan 30, 2007, 6:57:19 PM1/30/07
to
Hi Malcom,
I have got all of them from www.sunfreeware.com.

Malcolm

unread,
Jan 30, 2007, 7:15:21 PM1/30/07
to
On 30 Jan 2007 15:57:19 -0800
"Karnash" <donka...@yahoo.com> wrote:

> Hi Malcom,
> I have got all of them from www.sunfreeware.com.
>

Hi
But the openssh is at 4.5p1, your installing 4.4 you need gcc-3.4.6 and
your using 3.3. Can you please check :-)

http://www.sunfreeware.com/indexsparc8.html

"openssh-4.5p1-sol8-sparc-local.gz Openssh is an open source version of
the SSH secure shell system - installs in /usr/local. PAM support is
included and requires its own configuration. Openssh also requires the
installation of the packages openssl-0.9.8d (do not use the older
openssl packages), zlib, libgcc-3.4.6 or gcc-3.4.6, and optionally the
tcp_wrappers package. You MUST read the OpenSSH installation page for
installation details and helpful web sites. For example,
the /usr/local/etc/sshd_config file may need to be edited."

--
Cheers Malcolm °¿° (Linux Counter #276890)
SLED 10.0 x86_64 Kernel 2.6.16.27-0.6-smp

up 3:08, 2 users, load average: 0.00, 0.01, 0.00

0 new messages