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

9
LINES

< > BotCompany Repo | #1013025 // sshSession

JavaX fragment (include)

1  
static SSHSession sshSession(S user, S host) ctex {
2  
  SSHClient client = sshLogin(user, host);
3  
  try {
4  
    final Session session = client.startSession();
5  
    ret SSHSession(client, session);
6  
  } on fail {
7  
    client.disconnect();
8  
  }
9  
}

Author comment

Began life as a copy of #1004835

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1013025
Snippet name: sshSession
Eternal ID of this version: #1013025/3
Text MD5: 5d827a05d2f1f53a0fcb303a35b90a1d
Author: stefan
Category: javax / networking
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2017-12-22 11:56:37
Source code size: 245 bytes / 9 lines
Pitched / IR pitched: No / No
Views / Downloads: 296 / 339
Version history: 2 change(s)
Referenced in: [show references]