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).

!759

static S host = "tinybrain.de";
static S verifier = "5b:fd:de:ae:5b:d7:03:d2:8a:0d:0a:b6:7d:20:d0:d4";
static S user = "root";
static S command = "df -hi .";
static int timeout = 30;

p {
  System.out.print("User: " + user + ". Password: ");
  S pw = readLineHidden();
  print("*");
  S output = quickSSH(host, verifier, pw, command, timeout);
  print(asciiHeading("OUTPUT") + "\n");
  print(output);
}

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: 591 / 633
Referenced in: [show references]