Commit 530ebc4b authored by Orgad Shaneh's avatar Orgad Shaneh Committed by Christian Kandeler

Ssh: Support older servers

Change-Id: I686fad0996f53d4904f5ac9a5b9a0f4393b50d9f
Reviewed-by: default avatarChristian Kandeler <christian.kandeler@digia.com>
parent f048e6f4
......@@ -390,12 +390,15 @@ void SshConnectionPrivate::handleServerId()
.arg(serverProtoVersion));
}
// TODO: Remove #if on 2.7
#if 0
// Disable this check to accept older OpenSSH servers that do this wrong.
if (serverProtoVersion == QLatin1String("2.0") && !hasCarriageReturn) {
throw SshServerException(SSH_DISCONNECT_PROTOCOL_ERROR,
"Identification string is invalid.",
tr("Server identification string is invalid (missing carriage return)."));
}
#endif
if (serverProtoVersion == QLatin1String("1.99") && m_serverHasSentDataBeforeId) {
throw SshServerException(SSH_DISCONNECT_PROTOCOL_ERROR,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment