()
| 60 | } |
| 61 | |
| 62 | @Override |
| 63 | public void open() throws Exception { |
| 64 | super.open(); |
| 65 | this.connectionAttempts = 0; |
| 66 | |
| 67 | JSch jSch = new JSch(); |
| 68 | SSHClientSetupChainRing sshClientSetupChain = new SSHConfigFileSetup(new SSHPwdSetup()); |
| 69 | session = sshClientSetupChain.setup(getBoardPort(), jSch); |
| 70 | |
| 71 | session.setConfig("PreferredAuthentications", "publickey,keyboard-interactive,password"); |
| 72 | session.setUserInfo(new NoInteractionUserInfo(PreferencesData.get(getAuthorizationKey()))); |
| 73 | session.connect(30000); |
| 74 | |
| 75 | tryConnect(); |
| 76 | } |
| 77 | |
| 78 | private void tryConnect() throws JSchException, IOException { |
| 79 | connectionAttempts++; |
nothing calls this directly
no test coverage detected