Link to home
Start Free TrialLog in
Avatar of rawandnet
rawandnet

asked on

shutdown linux remotly from windows

Is there any script that allow me to access linux from windows and shutdown the server?
I normally use putty to login to linux from windows.  But i don't know wheather putty allow user to run a script file from command prompt that says shutdown now -h?
SOLUTION
Avatar of jvfernandez
jvfernandez

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of rawandnet
rawandnet

ASKER

i can login to linux server using (c:\plink.exe -ssh 192.168.1.1 -l sshuser -pw sshpassword), but command line (c:\plink.exe -ssh 192.168.1.1 -l sshuser -pw sshpassword -m "shutdown now -h") gives me error
plink: unable to open command file "shutdown now -h"
any idea why?
it is solved, thanks it should be with out -m
plink -ssh root@10.1.3.30 -pw Pass01 shutdown now -h
solved
thanks