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

16
LINES

< > BotCompany Repo | #1003580 // Test quickSSH with tinybrain.de

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

Uses 4887K of libraries. Click here for Pure Java version (228L/2K/7K).

1  
!759
2  
3  
static S host = "tinybrain.de";
4  
static S verifier = "5b:fd:de:ae:5b:d7:03:d2:8a:0d:0a:b6:7d:20:d0:d4";
5  
static S user = "root";
6  
static S command = "df -hi .";
7  
static int timeout = 30;
8  
9  
p {
10  
  System.out.print("User: " + user + ". Password: ");
11  
  S pw = readLineHidden();
12  
  print("*");
13  
  S output = quickSSH(host, verifier, pw, command, timeout);
14  
  print(asciiHeading("OUTPUT") + "\n");
15  
  print(output);
16  
}

Author comment

Began life as a copy of #1001229

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1003580
Snippet name: Test quickSSH with tinybrain.de
Eternal ID of this version: #1003580/1
Text MD5: 73dbe707654fdd97b9f83c5da61736c3
Transpilation MD5: 0e4f8f15b0a0bdac31c3e670ab75cd3e
Author: stefan
Category: javax
Type: JavaX source code
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2016-07-23 14:07:00
Source code size: 425 bytes / 16 lines
Pitched / IR pitched: No / No
Views / Downloads: 594 / 637
Referenced in: [show references]