Changeset View
Changeset View
Standalone View
Standalone View
sshconnect.c
Show First 20 Lines • Show All 1,554 Lines • ▼ Show 20 Lines | ssh_login(struct ssh *ssh, Sensitive *sensitive, const char *orighost, | ||||
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; | ||||
/* Convert the user-supplied hostname into all lowercase. */ | /* Convert the user-supplied hostname into all lowercase. */ | ||||
host = xstrdup(orighost); | host = xstrdup(orighost); | ||||
lowercase(host); | lowercase(host); | ||||
/* Exchange protocol version identification strings with the server. */ | /* Exchange protocol version identification strings with the server. */ | ||||
if ((r = kex_exchange_identification(ssh, timeout_ms, NULL)) != 0) | if ((r = kex_exchange_identification(ssh, timeout_ms, | ||||
options.version_addendum)) != 0) | |||||
sshpkt_fatal(ssh, r, "banner exchange"); | 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); | ||||
/* key exchange */ | /* key exchange */ | ||||
/* authenticate user */ | /* authenticate user */ | ||||
debug("Authenticating to %s:%d as '%s'", host, port, server_user); | debug("Authenticating to %s:%d as '%s'", host, port, server_user); | ||||
▲ Show 20 Lines • Show All 144 Lines • Show Last 20 Lines |