4.10.3 Connecting to a remote host
To configure a cluster, you must configure the local host and remote host to connect with SSH. On the local host, you can establish the SSH connection using the setup-ssh subcommand of the asadmin utility command.
Prerequisites
-
The domain administration server (DAS) is running.
-
Application Server has been set up on the localhost.
-
The remote host is running.
-
Installation of Application Server is complete on the remote host.
-
The remote host and local host can be connected using SSH.
Intended users
-
System engineers
Procedure
To resolve the name of the host with the DAS (local host) on a remote host, edit the host file.
On the local host, create a password file.
AS_ADMIN_SSHPASSWORD=remote_host_password
To create the code key (SSL key), run the setup-ssh subcommand of the asadmin utility command on the localhost.
asadmin --passwordfile password_file_path setup-ssh --sshuser remote_host_SSH_user_name remote_host_name
When this command is run, the result is displayed as follows:
Command setup-ssh executed successfully.
To set an alias for the password, run the create-password-alias subcommand of the asadmin utility command on the local host.
asadmin create-password-alias password_alias_name
Specify the password of the remote host when it is requested.
When this command is run, the result is displayed as follows:
Command create-password-alias executed successfully.
Restart the domain administration server.
asadmin restart-domain
When this command is run, the result is displayed as follows:
Command restart-domain executed successfully.
Edit the password file available on the local host created in Step 2.
AS_ADMIN_SSHPASSWORD=${ALIAS=password_alias_name}
For each remote host to be configured as a distribution location of a request, repeat the procedure from steps 1 through 6 on each remote host.
Postrequisites
-
Setting up Application Server on the remote host.