Showing results for 
Search instead for 
Did you mean: 

configuring SSH

Go to solution
Super Advisor

configuring SSH

How to configure SSH in HP-UX?
Pete Randall
Outstanding Contributor

Re: configuring SSH

Johnson Punniyalingam
Honored Contributor

Re: configuring SSH

Hi Senthil Kumar,

Configure using the document attached.

Hope this will help..


Problems are common to all, but attitude makes the difference
Ganesan R
Honored Contributor

Re: configuring SSH

Hi Senthilkumar,

There is nothing more to configure on SSH. Just install the SSH. Then you can use services of ssh/sftp/scp/slogin etc. These are all secured services.

The configuration file is /opt/ssh/etc/sshd_config

The other common configuration on ssh is password less login.
Best wishes,

Ganesan R
Honored Contributor

Re: configuring SSH


You can download the HP Ported secure shell from here.
Best wishes,

Shailendran V Naidu
Frequent Advisor

Re: configuring SSH

Hi Senthil,
To install HP-UX Secure Shell, complete the following steps:
1. Log in as superuser.
2. Insert the software CD into the appropriate drive if installing from the Application
Release CD. If installing from, download the depot and
use the swinstall directions provided on the Installation page where you
downloaded the software.
3. Run $ swinstall -s at the
command prompt.
4. In the Source Depot Path field, enter the drive mount point and click OK.
Change theSource Host Name, if needed.
5. Select T1471AA (for HP-UX 11i v1 or HP-UX 11i v2) or SecureShell (for HP-UX
11i v3) from the list of available software, and click Mark for Install on the Actions
6. Click Install on the Actions menu.
7. Click OK in the Install Analysis window when the Status field displays a Ready


Setup a Simple Connection:

I assume that our server machine ( is a headless one and that the SSH server is up and running with the default configuration. This permits users, including root, to login with their username/password combination. I also assume that we have already set up a user account on the server with the username "leopard". From a client machine ( we connect like this:

# ssh

Keypair generation

The default key directory is "~/.ssh". Create this directory in both the user leopardâ s home on the server and in your current home directory on the client machine and chmod it so that only the users have access to it.

# mkdir ~/.ssh
# chmod 0700 ~/.ssh

Now, we will create our keypair on our client machine. The following command creates a standard 1024-bit DSA keypair:

# ssh-keygen -t dsa -f ~/.ssh/id_dsa

You will be asked for a passphrase for the private key. You can type any phrase here or leave it blank. Keep in mind that if you do not set a passphrase for you private key and someone else gets access to it, then it will take him only a few seconds to connect to your user account on the server. Anyway, this is up to you. After the key generation is finished, the files id_dsa (private key) and (public key) are created in the ~/.ssh/ directory.

Now, we will copy the public key to the /home/leopard/.ssh/ directory on the server saving it with the name authorized_keys and delete from our client machine, just because itâ s not needed to be there.

# scp ~/.ssh/
# rm -f ~/.ssh/

Make sure that you chmod both keys so that only the respective users have access to them. Issue the following command on both the server and the client machine:

# chmod 0600 ~/.ssh/*

Remove SSH:
To remove SSH Secure Shell from a HP-UX machine, perform the following tasks:

1. Stop the Secure Shell daemon using the following command:

/sbin/init.d/sshd stop

2. Remove the installation by issuing the following command with root privileges:

swremove ssh2

Please notice that even after a successful uninstallation, the Secure Shell daemon will be left running. You must kill it manually. Also, uninstallation does not remove any configuration files.

Honored Contributor

Re: configuring SSH

Hi Senthil,

Good Day,

You could download the software from

You could find the installation procedure and the pre-requiste from
"Light travels faster than sound. That's why some people appear bright until you hear them speak."
Steven Schweda
Honored Contributor

Re: configuring SSH

Did you even consider trying a Forum search,
which would have found some of the dozens of
similar threads, with the hundreds of similar
Steven E. Protter
Exalted Contributor

Re: configuring SSH


Password free access:

Configure root for public key ONLY access(No interactive login):

Steven E Protter
Owner of ISN Corporation