From 34e5657f60a0eff0102a133a9656295feddfd790 Mon Sep 17 00:00:00 2001 From: Jeroen van Erp Date: Tue, 5 Jul 2016 14:45:36 +0200 Subject: [PATCH] For WinSSHD connections, wait for server ident (Fixes #176) --- .../xebialabs/overthere/ssh/SshSftpWinSshdConnection.java | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/main/java/com/xebialabs/overthere/ssh/SshSftpWinSshdConnection.java b/src/main/java/com/xebialabs/overthere/ssh/SshSftpWinSshdConnection.java index 0d1d2cae..2df97993 100644 --- a/src/main/java/com/xebialabs/overthere/ssh/SshSftpWinSshdConnection.java +++ b/src/main/java/com/xebialabs/overthere/ssh/SshSftpWinSshdConnection.java @@ -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;