Putty docs are very helpful in this case.
Quote:
Originally Posted by farna1000
but i get error.
if i delete 2° line reboot, it open putty then login into ssh but dont make command.
How to do?
|
"reboot" is NO command-line command for YOUR computer in this case.
You can try only the command "-m" and "-t" with putty in this case.
putty.exe -ssh login.example.tld -m "c:\path\cmd.txt" -t
Create a file "cmd.txt" with "reboot" as content.
Quote:
Originally Posted by farna1000
Someone can help me please?
|
Or try plink as a command-line interface to the PuTTY back ends. It's usually in your putty package or download it from the official putty site. Alternatively use KiTTY with its -cmd switch, that does what you want (and does not need a temporary file).
Automated connection:
plink mysession reboot
Interactive login:
plink -l USER -pw TEST -ssh login.example.tld reboot
If JDownloader 2 has problems with the commands then create a batch file (*.bat).
All commands are untested.