Setting Passwordless SSH

The instance administrator must be able to use SSH to log without a password to all hosts within a grid for the management instances and ttGridAdmin utility to be able set up and manage the grid and all its members.

Specifically, all hosts with management instances need passwordless SSH access for the instance administrator to all hosts with instances and repositories. Also, hosts with data instances need passwordless SSH access for the instance administrator to all hosts with repositories.

The ttGridAdmin gridSshConfig command is able to set for the current user the required passwordless SSH access. Ensure that you run the command with the user you intend for instance administrator.

Before setting up a grid, you can run the ttGridAdmin gridSshConfig command while providing the addresses or DNS names that you will later use to host management instances, data instance, and repositories. When prompted, enter the OS password of the user executing the command. The user and password must already be set on all systems and be identical. See Understanding TimesTen Users Group and Operating System User.

% grid/installation1/tt22.1.1.18.0/bin/ttGridAdmin gridSshConfig
 -mgmtAddress int-host1 int-host2
 -dataAddress int-host3 int-host4 int-host5 int-host6 int-host7 int-host8
Enter password:
Setup ssh configuration on local system...............................OK
Setup ssh configuration on int-host1..................................OK
Setup ssh configuration on int-host2..................................OK
Setup ssh configuration on int-host3..................................OK
Setup ssh configuration on int-host4..................................OK
Setup ssh configuration on int-host5..................................OK
Setup ssh configuration on int-host6..................................OK
Setup ssh configuration on int-host7..................................OK
Setup ssh configuration on int-host8..................................OK
Setup passwordless ssh from local system to int-host1.................OK
Setup passwordless ssh from local system to int-host2.................OK
Setup passwordless ssh from local system to int-host3.................OK
Setup passwordless ssh from local system to int-host4.................OK
Setup passwordless ssh from local system to int-host5.................OK
Setup passwordless ssh from local system to int-host6.................OK
Setup passwordless ssh from local system to int-host7.................OK
Setup passwordless ssh from local system to int-host8.................OK
Setup passwordless ssh from int-host1 to int-host1....................OK
Setup passwordless ssh from int-host1 to int-host2....................OK
Setup passwordless ssh from int-host1 to int-host3....................OK
Setup passwordless ssh from int-host1 to int-host4....................OK
Setup passwordless ssh from int-host1 to int-host5....................OK
Setup passwordless ssh from int-host1 to int-host6....................OK
Setup passwordless ssh from int-host1 to int-host7....................OK
Setup passwordless ssh from int-host1 to int-host8....................OK
Setup passwordless ssh from int-host2 to int-host1....................OK
Setup passwordless ssh from int-host2 to int-host2....................OK
Setup passwordless ssh from int-host2 to int-host3....................OK
Setup passwordless ssh from int-host2 to int-host4....................OK
Setup passwordless ssh from int-host2 to int-host5....................OK
Setup passwordless ssh from int-host2 to int-host6....................OK
Setup passwordless ssh from int-host2 to int-host7....................OK
Setup passwordless ssh from int-host2 to int-host8....................OK
 
Passwordless ssh working between hosts:
 
From\To   int-host1 int-host2 int-host3 int-host4 int-host5 ... int-host8
--------- --------- --------- --------- --------- --------- ... ---------
*us*      Yes       Yes       Yes       Yes       Yes       ... Yes
int-host1 Yes       Yes       Yes       Yes       Yes       ... Yes
int-host2 Yes       Yes       Yes       Yes       Yes       ... Yes
int-host3 N/A       N/A       N/A       N/A       N/A       ... N/A
int-host4 N/A       N/A       N/A       N/A       N/A       ... N/A
int-host5 N/A       N/A       N/A       N/A       N/A       ... N/A
int-host6 N/A       N/A       N/A       N/A       N/A       ... N/A
int-host7 N/A       N/A       N/A       N/A       N/A       ... N/A
int-host8 N/A       N/A       N/A       N/A       N/A       ... N/A

For a grid where the latest version of the model has yet to be applied and new hosts and instances were added to the model, run the ttGridAdmin gridSshConfig command on the active management instance. The ttGridAdmin utility then will query the latest version of the model and set up the appropriate SSH connectivity amongst the hosts described in the model.

% ttGridAdmin gridSshConfig
Enter password:
Setup ssh configuration on local system...............................OK
Setup ssh configuration on int-host1..................................OK
Setup ssh configuration on int-host2..................................OK
Setup ssh configuration on int-host3..................................OK
Setup ssh configuration on int-host4..................................OK
Setup ssh configuration on int-host5..................................OK
Setup ssh configuration on int-host6..................................OK
Setup ssh configuration on int-host7..................................OK
Setup ssh configuration on int-host8..................................OK
Setup passwordless ssh from local system to int-host1.................OK
Setup passwordless ssh from local system to int-host2.................OK
Setup passwordless ssh from local system to int-host3.................OK
Setup passwordless ssh from local system to int-host4.................OK
Setup passwordless ssh from local system to int-host5.................OK
Setup passwordless ssh from local system to int-host6.................OK
Setup passwordless ssh from local system to int-host7.................OK
Setup passwordless ssh from local system to int-host8.................OK
Setup passwordless ssh from int-host1 to int-host1....................OK
Setup passwordless ssh from int-host1 to int-host2....................OK
Setup passwordless ssh from int-host1 to int-host3....................OK
Setup passwordless ssh from int-host1 to int-host4....................OK
Setup passwordless ssh from int-host1 to int-host5....................OK
Setup passwordless ssh from int-host1 to int-host6....................OK
Setup passwordless ssh from int-host1 to int-host7....................OK
Setup passwordless ssh from int-host1 to int-host8....................OK
Setup passwordless ssh from int-host2 to int-host1....................OK
Setup passwordless ssh from int-host2 to int-host2....................OK
Setup passwordless ssh from int-host2 to int-host3....................OK
Setup passwordless ssh from int-host2 to int-host4....................OK
Setup passwordless ssh from int-host2 to int-host5....................OK
Setup passwordless ssh from int-host2 to int-host6....................OK
Setup passwordless ssh from int-host2 to int-host7....................OK
Setup passwordless ssh from int-host2 to int-host8....................OK
 
Passwordless ssh working between hosts:
 
From\To   int-host1 int-host2 int-host3 int-host4 int-host5 ... int-host8
--------- --------- --------- --------- --------- --------- ... ---------
*us*      Yes       Yes       Yes       Yes       Yes       ... Yes
int-host1 Yes       Yes       Yes       Yes       Yes       ... Yes
int-host2 Yes       Yes       Yes       Yes       Yes       ... Yes
int-host3 N/A       N/A       N/A       N/A       N/A       ... N/A
int-host4 N/A       N/A       N/A       N/A       N/A       ... N/A
int-host5 N/A       N/A       N/A       N/A       N/A       ... N/A
int-host6 N/A       N/A       N/A       N/A       N/A       ... N/A
int-host7 N/A       N/A       N/A       N/A       N/A       ... N/A
int-host8 N/A       N/A       N/A       N/A       N/A       ... N/A

See Configure SSH (gridSshConfig) in Oracle TimesTen In-Memory Database Reference.