That code seems to be an Arduino sketch. If so, you should upload the sketch to the board using the Arduino IDE and it will start running automatically. There is no need to access the terminal through PuTTY.
Your sketch moves the servo according to the analog value read at analog pin 0.
What do you mean by
how do i activate servo motor using putty?
? Please give describe what you are trying to do.