Skip to main content

By clicking Submit, you agree to the developerWorks terms of use.

The first time you sign into developerWorks, a profile is created for you. Select information in your developerWorks profile is displayed to the public, but you may edit the information at any time. Your first name, last name (unless you choose to hide them), and display name will accompany the content that you post.

All information submitted is secure.

  • Close [x]

The first time you sign in to developerWorks, a profile is created for you, so you need to choose a display name. Your display name accompanies the content you post on developerworks.

Please choose a display name between 3-31 characters. Your display name must be unique in the developerWorks community and should not be your email address for privacy reasons.

By clicking Submit, you agree to the developerWorks terms of use.

All information submitted is secure.

  • Close [x]

OpenSSH is now bundled with AIX

Denise Genty (genty@us.ibm.com), AIX Network Security Developer Team Lead, IBM
Denise Genty is a developer and team lead on the IBM AIX Network Security team in the AIX Communications area and has worked in AIX development for twelve years. Current projects include RADIUS, IP Security, and Open Secure Shell. Denise has a BS in Computer Science from Texas A&M University. You can contact her at genty@us.ibm.com.

Summary:  OpenSSH is a free software tool that supports SSH1 and SSH2 protocols. It's reliable and secure and is widely accepted in the IT industry to replace the r-commands, telnet, and ftp services, providing secure encrypted sessions between two hosts over the network. Now it's easy to get OpenSSH already compiled and ready to install on AIX.

Date:  25 Sep 2006 (Published 31 Jul 2002)
Level:  Introductory

Activity:  60520 views
Comments:  

What is Open Secure Shell?

Open Secure Shell (OpenSSH) is an open source version of the SSH protocol suite of network connectivity tools. The tools provide shell functions that are authenticated and encrypted. A shell is a command language interpreter that reads input from a command line string, stdin or a file. Why use OpenSSH? When you're running over unsecure public networks like the Internet, you can use the SSH command suite instead of the unsecure commands telnet, ftp, and r-commands.

OpenSSH delivers code that communicates using SSH1 and SSH2 protocols. What's the difference? The SSH2 protocol is a re-write of SSH1. SSH2 contains separate, layered protocols, but SSH1 is one large set of code. SSH2 supports both RSA & DSA keys, but SSH1 supports only RSA, and SSH2 uses a strong crypto integrity check, where SSH1 uses a CRC-32 check. The Internet Engineering Task Force (IETF) maintains the secure shell standards.


What has AIX delivered?

OpenSSH source code is compiled on AIX 5L and shipped on the AIX 5L Expansion Pack and Web Download Pack. You can also get the installation images from OpenSSH on AIX.

When you install the AIX OpenSSH image from the Bonus Pack CD or from the website, you can get support from IBM Program Services. The code base for the binaries is OpenSSH version 3.4.0 which was retrieved from www.openssh.org. The package includes these binaries:

Binary name Description
ssh rlogin/rsh-like client program
ssh-agent agent that can store private keys
ssh-add Tool which adds keys to ssh-agent
sftp FTP-like program that works over SSH1 and SSH2 protocol
scp File copy program that acts like rcp
ssh-keygen Key generation tool
ssh-keyscan Utility for gathering public host keys from a number of hosts
ssh-keysign Utility for hostbased authentication
sshd The daemon that permits you to login
sftp-server SFTP server subsystem (started automatically by sshd)

Any security patches that are announced, such as CERT advisories, are already incorporated into the 3.4.0 level of code. As new security patches are available, we'll incorporate them as soon as possible and make them available for download from the developerWorks download site.

Authentication mechanisms in OpenSSH include UNIX password, user public key, and hostbased such as .rhosts files. Encryption algorithms supported are DES, 3DES, Blowfish and AES.

Two configuration files shipped with the binaries are unchanged from the open source delivery and contain the default settings. They are /etc/ssh/ssh_config and /etc/ssh/sshd_config. You will need to modify these files based on your security needs.

Here's an example of the client configuration file:

#	$OpenBSD: ssh_config,v 1.15 2002/06/20 20:03:34 stevesk Exp $

# This is the ssh client system-wide configuration file.  See
# ssh_config(5) for more information.  This file provides defaults for
# users, and the values can be changed in per-user configuration files
# or on the command line.

# Configuration data is parsed as follows:
#  1. command line options
#  2. user-specific file
#  3. system-wide file
# Any configuration value is only changed the first time it is set.
# Thus, host-specific definitions should be at the beginning of the
# configuration file, and defaults at the end.

# Site-wide defaults for various options

# Host *
#   ForwardAgent no
#   ForwardX11 no
#   RhostsAuthentication no
#   RhostsRSAAuthentication no
#   RSAAuthentication yes
#   PasswordAuthentication yes
#   BatchMode no
#   CheckHostIP yes
#   StrictHostKeyChecking ask
#   IdentityFile ~/.ssh/identity
#   IdentityFile ~/.ssh/id_rsa
#   IdentityFile ~/.ssh/id_dsa
#   Port 22
#   Protocol 2,1
#   Cipher 3des
#   Ciphers aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,
#                  arcfour,aes192-cbc,aes256-cbc
#   EscapeChar ~

For its random number generator, the AIX OpenSSH code uses the built-in entropy code delivered with OpenSSH. The file ssh_prng_cmds was changed so that it contains only commands that produce output on AIX.


Code prerequisites

OpenSSH is dynamically linked with OpenSSL for use of the encryption library libcrypto.a. You can get the OpenSSL library from the AIX Toolbox for Linux Applications CD or from this website: ibm.com/servers/aix/products/aixos/linux/index.html.

OpenSSL is delivered in RPM format (instead of installp format). To install OpenSSL, use the rpm -i command. If you install OpenSSH before OpenSSL, you will get this installation error message:

A prerequisite package has not been installed. 
OpenSSH requires Open SSL (Secure Sockets Layer). 
Please install Open SSL from the AIX Toolbox for Linux CD 
or Toolbox website: 
https://www6.software.ibm.com/dl/aixtbx/aixtbx-i?S_PKG=dlaixww...

The code is also dynamically linked with zlib, the data compression function. The zlib library is automatically installed for you on AIX 5.1.


Enhancements

International Language Support.The base OpenSSH 3.4.0 code was modified to add International Language Support. In the initial shipment of code, user messages will be displayed in U.S. English. In the future, translated message catalogs will be shipped. Languages supported will be Catalan, Spanish, Korean, Japanese, Polish, German, Hungarian, Solvakian, Russian, Italian, Chinese, Czech, and Taiwanese.

Message catalog. All user displayed messages (not system debug messages) were placed into a message catalog and the XPG4 catgets() calls were added to the source code to retrieve the correct language version of the message.

Binaries and configuration files. The binaries and configuration files have been packaged in AIX installp format, which can be installed by the Web-base system manager or SMIT tool.

Fileset Contains
openssh.base.client commands
openssh.base.server daemons
openssh.man.en_US man page documentation
openssh.msg.en_US English message catalog file
openssh.licenselicense file

VRMF. The Version, Release, Modification, and Fix (VRMF) level of the latest release is 3.4.0. The AIX VMRF will closely match the open source code level.

License files. Two license files are shipped with the binaries. The license file shipped with the open source code is distributed in the /user/openssh directory. The second license file is the IPLA non-warranted with Limited Program Services license. The packaging will use the AIX electronic license scheme which require that you view the IBM license text and accept the license prior to installation. Viewing and accepting the license can be done through the Web-based system manager or SMIT tool. A README file in /usr/openssh is delivered that will contain a list of updates to the code (security patches).

At installation, the daemon will be loadable so the key generation command, ssh-keygen, will be run post installation time to generate the keys for the server.

System Resource Controller (SRC). The sshd daemon has been enabled by the System Resource Controller (SRC). SRC makes it easier for you to create and control subsystems by providing a common way to start, stop, and collect status information on processes.

SRC syntax Function
startsrc -g ssh Start the sshd daemon if it is not currently active
stopsrc -g ssh Stop the sshd daemon;which requests that the sshd daemon complete all current processing, release resources
lssrc -g ssh Obtain the status of sshd

At openssh.server package install time, entries are added to the run level 2 directory /etc/rc.d/rc2.d to automatically start sshd at boot time. An entry exists in /etc/inittab to execute run level 2 processes:

   (l2:2:wait:/etc/rc.d/rc 2). 

If you don't want sshd to start at boot time, remove or rename these two files:

   /etc/rc.d/rc2.d/Ksshd
   /etc/rc.d/rc2.d/Ssshd


Benefits

One benefit of OpenSSH is that it provides full encryption for UNIX password authentications (password included). This is the simpliest method of authentication. You have to do no additional configuration.

OpenSSH provides the public key cryptography authentication method, and it's very easy to configure. A user doesn't have to use UNIX passwords if public key crypto is used. Public key crypto provides better system administration if there are large number of users on a machine. Users need to create a key pair and give the public key to the system admin to gain access to the machine. A user account is still needed, but password validation isn't. For example, for guest level access, one common Unix account can be created that can be securely shared via each user having his public key available on the server.

The X11 Forwarding feature of OpenSSH is very useful. Machines behind firewalls usually don't have X ports open. When using SSH and enabling X11 Forwarding, a user can forward X sessions that are encrypted and authenticated. Firewalls usually leave the SSH ports open.


Resources

About the author

Denise Genty is a developer and team lead on the IBM AIX Network Security team in the AIX Communications area and has worked in AIX development for twelve years. Current projects include RADIUS, IP Security, and Open Secure Shell. Denise has a BS in Computer Science from Texas A&M University. You can contact her at genty@us.ibm.com.

Report abuse help

Report abuse

Thank you. This entry has been flagged for moderator attention.


Report abuse help

Report abuse

Report abuse submission failed. Please try again later.


developerWorks: Sign in


Need an IBM ID?
Forgot your IBM ID?


Forgot your password?
Change your password

By clicking Submit, you agree to the developerWorks terms of use.

 


The first time you sign into developerWorks, a profile is created for you. Select information in your developerWorks profile is displayed to the public, but you may edit the information at any time. Your first name, last name (unless you choose to hide them), and display name will accompany the content that you post.

Choose your display name

The first time you sign in to developerWorks, a profile is created for you, so you need to choose a display name. Your display name accompanies the content you post on developerWorks.

Please choose a display name between 3-31 characters. Your display name must be unique in the developerWorks community and should not be your email address for privacy reasons.

(Must be between 3 – 31 characters.)

By clicking Submit, you agree to the developerWorks terms of use.

 


Rate this article

Comments

Help: Update or add to My dW interests

What's this?

This little timesaver lets you update your My developerWorks profile with just one click! The general subject of this content (AIX and UNIX, Information Management, Lotus, Rational, Tivoli, WebSphere, Java, Linux, Open source, SOA and Web services, Web development, or XML) will be added to the interests section of your profile, if it's not there already. You only need to be logged in to My developerWorks.

And what's the point of adding your interests to your profile? That's how you find other users with the same interests as yours, and see what they're reading and contributing to the community. Your interests also help us recommend relevant developerWorks content to you.

View your My developerWorks profile

Return from help

Help: Remove from My dW interests

What's this?

Removing this interest does not alter your profile, but rather removes this piece of content from a list of all content for which you've indicated interest. In a future enhancement to My developerWorks, you'll be able to see a record of that content.

View your My developerWorks profile

Return from help

static.content.url=http://www.ibm.com/developerworks/js/artrating/
SITE_ID=1
Zone=AIX and UNIX
ArticleID=103796
ArticleTitle=OpenSSH is now bundled with AIX
publish-date=09252006
author1-email=genty@us.ibm.com
author1-email-cc=

Tags

Help
Use the search field to find all types of content in My developerWorks with that tag.

Use the slider bar to see more or fewer tags.

For articles in technology zones (such as Java technology, Linux, Open source, XML), Popular tags shows the top tags for all technology zones. For articles in product zones (such as Info Mgmt, Rational, WebSphere), Popular tags shows the top tags for just that product zone.

For articles in technology zones (such as Java technology, Linux, Open source, XML), My tags shows your tags for all technology zones. For articles in product zones (such as Info Mgmt, Rational, WebSphere), My tags shows your tags for just that product zone.

Use the search field to find all types of content in My developerWorks with that tag. Popular tags shows the top tags for this particular content zone (for example, Java technology, Linux, WebSphere). My tags shows your tags for this particular content zone (for example, Java technology, Linux, WebSphere).

Try IBM PureSystems. No charge.

Special offers