Posts

Showing posts with the label putty

How to connect via SSH (putty) to your vmware machine (Ubuntu) ?

Image
It was really a pain for me to work on Oracle VM, It won't allow you to use mouse or do copy-paste. So I decided to connect my local VM via SSH( Putty). Steps : 1.  In your VM box, Goto Settings -> Network ->Adapter 1 and select "Bridged Adapter" 2. In your Ubuntu Machine, Install "openssh-server"            sudo apt-get install openssh-server 3. Reboot the VM and Run "ifconfig" command in terminal and get "inet addr" of "eth0". 4. Open putty, Enter the IP address(IP of your VM machine ) , Select port as "22" and connection type as "SSH" and click on open button. 5. Enter your credential and you are done :)

How to do JVM Remote debugging via SSH

Image
Last week I was getting one issue which was difficult to debug as the product was on EC2 instance. We were wasting lot of time as It was difficult to test and check the actual cause of issue.  Later I decided to attach the Eclipse debugger to my target JVM which is running on some different(EC2 instance) machine with the help of PuTTy ( PuTTY is an SSH and telnet client). Lets start with the steps : 1. Make sure your target JVM is started with these args:         -agentlib:jdwp=transport=dt_socket,address=8001,server=y,suspend=n 2. Create an SSH session into your PuTTy.       Open Putty, Add :          -- IP Address : "YOUR_TARGET_JVM_ADDRESS"         -- PORT : 22         -- Saved Sessions : your session name         -- Choose 'SSH' radio button and Save it.               3. Aft...

How to configure session timeout for putty

Image
Click on the upper left hand corner of your putty screen, then click on 'Change Settings', then 'Connection'. I have my 'keepalive' set to 300. Now It will time out after 5 minutes.