Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

14
LINES

< > BotCompany Repo | #1004834 // Test quickSSH2 with tinybrain.de, auto-find password (~/JavaX-Secret/*/<x>@<server>.ssh.pass) [OK]

JavaX source code [tags: use-pretranspiled] - run with: x30.jar

Uses 4887K of libraries. Click here for Pure Java version (1197L/8K/31K).

1  
!7
2  
3  
static S host = "tinybrain.de";
4  
static S user = "root";
5  
static S command = "df -hi .";
6  
static int timeout = 30;
7  
8  
p-tt {
9  
  print("Command: " + command);
10  
  print("Connecting to " + host + " as " + user + "...");
11  
  S output = quickSSH2(user, host, command, timeout);
12  
  print(asciiHeading("OUTPUT") + "\n");
13  
  print(output);
14  
}

Author comment

Began life as a copy of #1004832

download  show line numbers  debug dex  old transpilations   

Travelled to 14 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, ddnzoavkxhuk, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1004834
Snippet name: Test quickSSH2 with tinybrain.de, auto-find password (~/JavaX-Secret/*/<x>@<server>.ssh.pass) [OK]
Eternal ID of this version: #1004834/3
Text MD5: e2529290932cd629fcb70a75f6970c5f
Transpilation MD5: ff37f3b458368580055e0aa85e0faa50
Author: stefan
Category: javax
Type: JavaX source code
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2017-08-28 00:52:16
Source code size: 341 bytes / 14 lines
Pitched / IR pitched: No / No
Views / Downloads: 484 / 573
Version history: 2 change(s)
Referenced in: [show references]