Skip to content

Commit

Permalink
For WinSSHD connections, wait for server ident (Fixes #176)
Browse files Browse the repository at this point in the history
  • Loading branch information
hierynomus committed Jul 5, 2016
1 parent 8107f03 commit 34e5657
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,13 @@ public SshSftpWinSshdConnection(String type, ConnectionOptions options, AddressP
checkArgument(os == WINDOWS, "Cannot create a %s connection to a host that is not running Windows", protocolAndConnectionType);
}

@Override
protected void connect() {
// In WinSSHd we have to wait for the server ident before sending our ident.
config.setWaitForServerIdentBeforeSendingClientIdent(true);
super.connect();
}

@Override
protected String pathToSftpPath(String path) {
String translatedPath;
Expand Down

0 comments on commit 34e5657

Please sign in to comment.