JDownloader Community - Appwork GmbH
 

Reply
 
Thread Tools Display Modes
  #1  
Old 30.07.2021, 20:05
farna1000 farna1000 is offline
Vacuum Cleaner
 
Join Date: Jun 2021
Posts: 16
Default 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
Reply With Quote
  #2  
Old 01.08.2021, 11:47
farna1000 farna1000 is offline
Vacuum Cleaner
 
Join Date: Jun 2021
Posts: 16
Default

Someone can help me please?
Reply With Quote
  #3  
Old 01.08.2021, 12:18
thecoder2012's Avatar
thecoder2012 thecoder2012 is offline
Official 9kw.eu Support
 
Join Date: Feb 2013
Location: Internet
Posts: 1,325
Default

Putty docs are very helpful in this case.

Quote:
Originally Posted by farna1000 View Post
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 View Post
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.
__________________
Join 9kw.eu Captcha Service now and let your JD continue downloads while you sleep.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

All times are GMT +2. The time now is 04:34.
Provided By AppWork GmbH | Privacy | Imprint
Parts of the Design are used from Kirsch designed by Andrew & Austin
Powered by vBulletin® Version 3.8.10 Beta 1
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.