Friday, October 30, 2009

AIX install/unintall software - ssh

In AIX, we can use smitty to install software.
To uninstall, we can use "smit remove"

I wanted to install ssh on a AIX machine. But some how smit failed, so I tried compiling openssh from source.
We can download the openssh source code and compile it on our AIX box. Openssh needs zlib and openssl needs to be installed prior to it (I compiled both of these).
It looks for zlib.h zconf.h file /usr/inlcude directory and zlib.a file in /usr/lib directory.

After that we need to add new service on the system. Refer http://blog.thilelli.net/post/2005/06/14/How-to-Add-a-New-sshd_adm-Service-on-AIX-5X for this.

How to start sshd?
"startsrc -s sshd" will start the daemon.
Use "lssrc -s sshd" to see if it's already running.

Another way to start is "/usr/sbin/sshd -de"

lslpp --> The lslpp command displays information about installed filesets or fileset updates.
Example
[root@re-aix02:/usr/local/etc] lslpp -l bos.rte.libc openssh.base.server
Fileset Level State Description
----------------------------------------------------------------------------
Path: /usr/lib/objrepos
bos.rte.libc 5.1.0.69 COMMITTED libc Library
openssh.base.server 4.1.0.1 COMMITTED Open Secure Shell Server


oslevel -> Reports the latest installed maintenance level of the system


Here is some more info about installing ssh using smit

Installing openSSH on 5.1, 5.2, and 5.3
At 5.1, 5.2, and 5.3, the installation of openssh itself is in installp format, but all the prerequisites (including openssl) can be installed using the same rpm -i commands (using the same 4.3.3. rpm packages). The installp format package can be downloaded from the following site:http://sourceforge.net/projects/openssh-aix After installing the prerequisites using the following commands,
1. rpm -i zlib-1.1.4-3.aix4.3.ppc.rpm
2. rpm -i prngd-0.9.23-3.aix4.3.ppc.rpm AIX 5.2 uses /dev/urandom
3. rpm -i openssl-0.9.7d-1.aix5.1.ppc.rpm
4. rpm -i openssl-devel-0.9.7d-1.aix5.1.ppc.rpm

use smitty installp to install the openssh filesets extracted from the tar file openssh-3.8.1p1_51.tar (for 5.1), openssh-3.8.1p1_52.tar (for 5.2), and openssh-3.8.1p1_53.tar (for 5.3). The following steps need to be followed to install openssh.


1. In the directory where the images are, run the command inutoc.
2. Run smitty install.
3. Select "Install and Update Software".
4. While in smitty do the following:
4.1 Select "Install Software".
4.2 Enter a dot (".") in the field for "INPUT device / directory for software" and press ENTER.
4.3 Enter openssh in the "SOFTWARE to install" field.
4.4 Scroll down to "Preview new LICENSE agreements?" and press tab key to change the field to yes. Read the license agreement.
4.5 Scroll down to "ACCEPT new license agreements?" and press tab to change the field to yes. Press ENTER to begin the software installation.

Where to get openssl?
The OpenSSH software is shipped on the AIX 5.3 Expansion Pack. This version of OpenSSH is compiled and packaged as installp packages using the openssh-3.8.p1 level of source code. The installp packages include the man pages and the translated message filesets. The OpenSSH program contained in the Expansion Pack CD-ROM media is licensed under the terms and conditions of the IBM® International Program License Agreement (IPLA) for Non-Warranted Programs.

Before installing the OpenSSH installp format packages, you must install the Open Secure Sockets Layer (OpenSSL) software that contains the encrypted library. OpenSSL is available in RPM packages on the AIX Toolbox for Linux® Applications CD, or you can also download the packages from the following AIX Toolbox for Linux Applications Web site:

http://www-1.ibm.com/servers/aix/products/aixos/linux/download.html

Because the OpenSSL package contains cryptographic content, you must register on the Web site to download the packages. You can download the packages by completing the following steps:

1. Click the AIX Toolbox Cryptographic Content link on the right side of the AIX Toolbox for Linux Applications Web site.
2. Click I have not registered before.
3. Fill in the required fields in the form.
4. Read the license and then click Accept License. The browser automatically redirects to the download page.
5. Scroll down the list of cryptographic content packages until you see openssl-0.9.6m-1.aix4.3.ppc.rpm under OpenSSL — SSL Cryptographic Libraries.
6. Click the Download Now! button for the openssl-0.9.6m-1.aix4.3.ppc.rpm.

After you download the OpenSSL package, you can install OpenSSL and OpenSSH.

11 comments:

Anonymous said...

net avto [url=http://www.vzajemniskladi.info]raiffeisen skladi[/url]

Anonymous said...

Thanks in favor of sharing such a pleasant
thought, article is pleasant, thats why i have read it fully

Take a look at my web-site :: build muscles now

Anonymous said...

After I originally left a comment I appear to have clicked the -Notify me when new
comments are added- checkbox and now whenever a comment is
added I get four emails with the exact same comment. There has to be a way you are able to
remove me from that service? Kudos!

Here is my website; work from home

Anonymous said...

We stumbled over here by a different website and thought I
may as well check things out. I like what I see so now
i'm following you. Look forward to exploring your web page repeatedly.

Here is my blog ... Test Force Extreme

Anonymous said...

I have read so many articles about the blogger lovers however this article is actually a fastidious paragraph, keep it up.



my weblog: Power Precision Trial

Anonymous said...

Thank you for sharing your info. I really appreciate your efforts and I will be
waiting for your further write ups thanks once again.


my webpage - Online Home Careers Scams

Anonymous said...

Do you have a spam issue on this site; I also am a blogger, and I
was curious about your situation; we have developed some nice practices and we are looking to trade strategies with others,
why not shoot me an e-mail if interested.

Feel free to visit my homepage ... Male enhancement

Anonymous said...

Excellent way of explaining, and pleasant post to get facts concerning my presentation
subject, which i am going to deliver in institution of higher education.


Here is my web page; Apple stem cell serum

Psophon Pro said...

I loved this post.I read your blog and you are all ways comming out with some grate stuff...i shared this on my facebook and my followers loved it keep up the good work :-) Freedom APK

Internetmarketingrocks said...

We have other services like followers, likes and comments.
buy 50 instagram followers

Anonymous said...

Hii,
This is great and awsome post for me. i loved to read your blog. it's really-really amazing. thanks for inspired me by your blog.
Ashwagandha Anti Stress
Daily Plus Ultra Sea Buckthorn

Body Massage Essential Oil Online
DreamBoat For Men with 16 Powerfull Herbs