#1
|
|||
|
|||
putty ssh reconnection
Hello,
with jdownload i would like to connect to my router (Ubiquiti UDM-PRO) with ssh and do reboot command. How to do? In JD download in command i put "C:\Program Files\PuTTY\putty.exe" (it is fine putty start) then in parameters (2 lines): root@192.168.1.1 -pw TEST reboot but i get error. if i delete 2° line reboot, it open putty then login into ssh but dont make command. How to do? please let me know thanks |
#2
|
|||
|
|||
Someone can help me please?
|
#3
|
||||
|
||||
Putty docs are very helpful in this case.
Quote:
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. 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.
__________________
Join 9kw.eu Captcha Service now and let your JD continue downloads while you sleep. |
Thread Tools | |
Display Modes | |
|
|