Thursday, October 31, 2013

Executing Linux commands from Windows Command Prompt using Putty/Plink



Download PUTTY : http://the.earth.li/~sgtatham/putty/latest/x86/putty-0.63-installer.exe

  1. Install PuTTY
  2. Set the environment variables path for PuTTY: {install dir}/PuTTY
    • My Computer --> Right Click --> Properties --> Advanced System Settings --> Environment Variables
  3. Auto login command:
    • plink.exe -ssh <username>@<ip address> -pw <password>
    • plink.exe -ssh root@xxx.xxx.xx.xx -pw password
  4. Auto login and invoke a terminal command: 
    • plink.exe -ssh <username>@<ip address> -pw <password> "<terminal command>"
    • plink.exe -ssh root@xxx.xxx.xx.xx -pw password "nmon -f -s10 -c 360"


No comments:

Post a Comment