Accessing a VM Through a Secure Shell (SSH)

You can access the services and resources provided by a service instance's VM by logging into the machine through a secure shell (SSH). You can use any SSH utility you prefer. For example, if you are using Windows, you might use PuTTY; if you are using Linux, you might use OpenSSH.

Creating an SSH Key Pair

When accessing a VM through SSH, you need a public/private key pair you obtained here when you provision the service instance for the VM that contains the Oracle WebLogic Administration Server.

For example, to obtain the key pair by using the keygen utility with the -t rsa parameter; you would enter:

ssh-keygen -t rsa

You can also use PuTTY to create the key pair.

Tutorial iconTutorial

You must supply the public key you obtained here when you provision the service instance and use its paired private key when you access it. This can be a key that you already created and saved to a file. This file can then be uploaded during VM provisioning.

Creating an SSH Tunnel

To access an administration server's VM from a host that is not the VM running WebLogic in Oracle SOA Cloud Service, you must create an SSH tunnel between your local host and the Oracle SOA Cloud Service. With that tunnel in place, you can use the resources of that server, such as the WebLogic Scripting Tool (WLST), as if it were local.

To create an SSH tunnel, use your preferred SSH client to provided the following tunneling information:

  • The path to the private key corresponding to the public key used at the time of provisioning.

  • The administration server's IP address.

You can create the tunnel by using the SSH client of your choice. You can also use PuTTY to create the SSH tunnel.

Tutorial iconTutorial

$> ssh -i path to private key opc@ip address of administration server -L 9001:ip address of administration server:9001 -N

For example:

$> ssh -i id_rsa opc@111.111.111.111 -L 9001:111.111.111.111:9001 -N

Note:

Once activity is completed, press <ctrl> C to shut down the SSH tunnel.

Accessing a VM or Load Balancer

You can access a VM or load balancer through a secure shell utility.

To access a VM or load balancer through SSH:

Note:

The examples in this procedure apply to Linux users accessing the VM by using OpenSSH.
  1. From the Oracle SOA Cloud Service Console, select the service instance associated with the VM or load balancer you want to access.
  2. From the Oracle SOA Cloud Service Instance page, click the service instance you want to access.
    The Oracle SOA Cloud Service Instance page is displayed with the Overview tile in focus, displaying detailed information about the service instance.
  3. On the list of nodes, note either the IP address of the administration server or the load balancer, depending on which server you want to access.
    This address is specified in the typical octet format (111.111.111.111).

    Note:

    The console displays IP addresses only for the administration server and the load balancer, not the managed servers.
  4. Launch a secure shell (SSH) client of your choice and connect to the administration server's or load balancer's virtual machine.
    Provide the following:
    • The path to the private key corresponding to the public key used at the time of provisioning.

    • The administration server's IP address.

    in this format:

    ssh -i path to private key opc@IP address of the administration server/load balancer
    
    For example:
    ssh -i id_rsa opc@111.111.111.111
    
When the VM command line appears, you can use any resource accessible from the machine; for example, the WebLogic Scripting Tool.