]> granicus.if.org Git - curl/commit
ssh: log the libssh2 error message when ssh session startup fails
authorJDepooter <joel.depooter@safe.com>
Thu, 17 Jan 2019 01:18:20 +0000 (17:18 -0800)
committerDaniel Stenberg <daniel@haxx.se>
Thu, 17 Jan 2019 14:03:16 +0000 (15:03 +0100)
commitb095a1ca63ab4962e7256616ff02607c5a77e089
tree55366c7f654b6b3452a2f3716050343e3f6d7773
parent7c16871d0b26ae046da6194c1bc6eafe7985a19d
ssh: log the libssh2 error message when ssh session startup fails

When a ssh session startup fails, it is useful to know why it has
failed. This commit changes the message from:
   "Failure establishing ssh session"
to something like this, for example:
   "Failure establishing ssh session: -5, Unable to exchange encryption keys"

Closes #3481
lib/ssh.c