In general, an SSH tunnel can map a remote port to any available port number on your local computer. Some protocols, such as Java Remote Method Invocation (RMI), require that the remote and local port numbers be the same value.
To download PuTTY, go to http://www.putty.org/.
- Access your service console.
- Click the name of the service instance that contains the node that you want to access.
- On the Overview page, identify the Public IP address of the node that you want to access.For example,
- Start PuTTY on your Windows computer.The PuTTY Configuration window is displayed, showing the Session panel.
- In the Host Name (or IP address) field, enter the public IP address of the node.
- In the Category navigation tree, expand Connection, and then click Data.
- In the Auto-login username field, enter
- In the When username is not specified field, select Prompt.
- In the Category tree, expand Connection, and then click SSH.
- Under Protocol options, select the check box Don't start a shell command at all.
- In the Category tree, expand SSH, and then click Auth.
- Under Private key file for authentication, click Browse.
- Navigate to the location of your private key file, and select it. Click Open.This private key corresponds to the public key that you specified when you created this service instance.
.ppkfile extension indicates that the private key is in PuTTY's proprietary format. You must use a key of this format when using PuTTY. If Oracle Cloud generated this key for your service instance, see the PuTTY documentation for information about converting the key format.
- In the Category tree, expand SSH, and then click Tunnels.
- In the Destination field, enter
IP:port,where IP is the IP address of the node and port is the port number on the node to which you want to connect.
- In the Source Port field, enter the same port number.
- Click the Add button.
- Optional: To save this session configuration, click Session in the Category tree, and then click Save.To load a saved configuration, select the configuration name, and then click Load.
- Click Open.
- If prompted, enter the passphrase for the private key.
Applications that are running on your local computer can now communicate with the node by using
port is the local port number.
After your work with the SSH tunnel is completed, press Ctrl+C to close the SSH tunnel.