3 generating an ssh key pair for the backup host, 4 generating an ssh key pair for the primary host, Generating an ssh key pair for the backup host – HP 3PAR Application Software Suite for Oracle User Manual

Page 59: Generating an ssh key pair for the primary host

Advertising
background image

4.11

Setting Up SSH Connections for Recovery Manager

Recovery Manager for Oracle User’s Guide

PermitRootLogin yes

2

If the line reads

PermitRootLogin no

, change the line to read

yes

.

4.3.3 Generating an SSH Key Pair for the Backup Host

To generate an SSH key pair for the backup host:

1

Log on to the backup host as the

root

user.

2

Create a key pair with no passphrase using the

ssh-keygen

command. If a key-pair

already exists, skip this section.

The

ssh-keygen

utility generates two files,

id_rsa

and

id_rsa.pub

(or

id_dsa

and

id_dsa.pub

). The

id_rsa

(or

id_dsa

) file contains the private key and the

id_rsa.pub

(or

id_dsa.pub

) file contains the public key.

4.3.4 Generating an SSH Key Pair for the Primary Host

You can either use the same SSH key pair generated for the backup host or generate a

different SSH key pair for the primary host. If you choose to use the same key pair, create one

InForm CLI user, otherwise, create two different CLI users to be accessed from the primary host

and the backup host, respectively. If you are generating a different SSH key pair for the

NOTE: If you are using native SSH, the sshd_config file is located in

/etc/ssh/sshd_config

.

<backup_host:# ssh-keygen -b 1024 -t rsa

Generating public/private rsa key pair.

Enter file in which to save the key (//.ssh/id_rsa):

Enter passphrase (empty for no passphrase):

Enter same passphrase again:

Your identification has been saved in //.ssh/id_rsa.

Your public key has been saved in //.ssh/id_rsa.pub.

The key fingerprint is:

xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx root@<backup_host>

NOTE: You can create the SSH key as either

dsa

or

rsa

. The recommended key

length is 1024 (the total of the public and private key lengths).

Advertising
This manual is related to the following products: