Make sure you have setup Oracle Java Cloud Service.
- Start Putty by clicking on putty.exe
2. Specify Host Name – Public IP of Oracle Java Cloud Service Instance
3. make sure Connection Type = SSH
4. Specify Saved Session name = Any Name. Prefer Giving some meaningful name based on IP/Service connected.
5. Expand “Connections” from left panel. Select “Data”,
Specify Login Details -> Auto login User Name = opc
Select “Connection->SSH” from left Panel,
Make sure you have not selected “Don’t start a shell or command at all” in Protocol options. In the above image it is selected but please unselect to make it work.
Select “Connection->SSH->AUTH” from left panel,
Browse and supply private key which was generated in earlier blog to “Private Key file for authorization”.
Select “Connection->SSH->Tunnels” from left panel,
Specify Source Port = 9001 This is specially configured for SSH based access.
Specify Destination = Java Cloud Service Public IP:9001 and click “add”.
Select “Session” from Left Panel and “Save” configuration and Open. It will open a console like this,
At Putty console run below command,
>sudo su – oracle
It will switch current “opc” user to super user “oracle”.
Now you can go to weblogic logs folder and check the log using below command,
>tail -f logFileName.out
and then run you application again. Putty console will show real-time logs.