ssh handshake: add a deadline for handshake to complete

we use a 2 minutes timeout as OpenSSH
This commit is contained in:
Nicola Murino
2019-10-09 19:07:35 +02:00
parent 1d917561fe
commit 4b5ce3913e
2 changed files with 7 additions and 6 deletions

View File

@@ -35,6 +35,7 @@ const (
operationRename = "rename"
protocolSFTP = "SFTP"
protocolSCP = "SCP"
handshakeTimeout = 2 * time.Minute
)
const (