Technical article 126809

How do I configure RSA Authentication between two SCO Unix systems?

OpenServer 6.0.0OpenServer 5.0.7UnixWare 7.1.3UnixWare 7.1.4

Written · Last revised

Problem

I would like to use RSA Authentication when logging in from one SCO Unix server to another. How can I do this?

Solution

Lets assume the account you want to log in to is called johnb and that the servers are called sysa and sysb, where sysa is the client and sysb is the server that you want to login to (i.e. the johnb account resides on sysb).

Login to sysa and generate the RSA public and private keys using the command:

# ssh-keygen -t rsa

This will create the directory ./.ssh with the files:

id_rsa (the private key)
id_rsa.pub (the public key)

- If you already have RSA Public and Private keys then replace the content of the files created above with your existing keys.

Login to sysb as the user johnb and create the .ssh directory using:

mkdir $HOME/.ssh
chmod 700 $HOME/.ssh
Using your favourite editor, create the file
$HOME/.ssh/authorized_keys
and paste the contents of
$HOME/.ssh/id_rsa.pub
from sysa into this file.

- If you inadvertently add carriage returns when pasting the contents into the authorized_keys file then the authentication will fail.

Login to johnb from sysa using:
# ssh johnb@sysb

or if the account on sysa you are logging in from is also called johnb you can also use:

# ssh sysb

If all is working correctly you will be prompted with:

Enter passphrase for key '/.ssh/id_rsa':

This is the passphrase that you used when you created the key using ssh-keygen(1) above.

If you are not prompted for the passphrase then you can use

ssh -v johnb@sysa

to attempt to debug why ssh(1) is not authenticating using RSA.

See also

TA116826, "How do I set up a remote shell with SSH so that I'm not prompted for a password each time I login using ssh?"

From the Xinuos technical article database, record 126809. Reproduced with permission. The original is at www.sco.com/ta/126809, which is reachable but blocked from search engines.

Next step

Need this fixed rather than explained?

Tell us the release, what the system runs and what it is doing. We will reply by email with what we would do next.

  • You deal with the people who do the work
  • No obligation, and no upgrade required before we will help
  • We tell you plainly if something is not worth doing

Send an enquiry

We reply by email. If a server is down, say so in the first line. You can also write to help@scoexpert.com.