version 1.328, 2020/01/25 07:17:18 |
version 1.329, 2020/03/13 04:01:56 |
|
|
{ |
{ |
char *host; |
char *host; |
char *server_user, *local_user; |
char *server_user, *local_user; |
|
int r; |
|
|
local_user = xstrdup(pw->pw_name); |
local_user = xstrdup(pw->pw_name); |
server_user = options.user ? options.user : local_user; |
server_user = options.user ? options.user : local_user; |
|
|
lowercase(host); |
lowercase(host); |
|
|
/* Exchange protocol version identification strings with the server. */ |
/* Exchange protocol version identification strings with the server. */ |
if (kex_exchange_identification(ssh, timeout_ms, NULL) != 0) |
if ((r = kex_exchange_identification(ssh, timeout_ms, NULL)) != 0) |
cleanup_exit(255); /* error already logged */ |
sshpkt_fatal(ssh, r, "banner exchange"); |
|
|
/* Put the connection into non-blocking mode. */ |
/* Put the connection into non-blocking mode. */ |
ssh_packet_set_nonblocking(ssh); |
ssh_packet_set_nonblocking(ssh); |