Displaying 5 results from an estimated 5 matches for "want_keepalive".
2012 Jan 10
1
Configuration file TCPKeepAlive option does not work reliably
Hi!
There are configuration knobs (TCPKeepAlive) to enable/disable the use of TCP keepalives both in the ssh client and server. Unfortunately some UNIX systems default to SO_KEEPALIVE=on and some to =off. This may even be settable on a per host basis (OpenBSD default net.inet.tcp.always_keepalive=1 ???).
For the TCPKeepAlive configuration knob I would like to propose changes along the lines
2017 Jan 12
3
proposed change to ssh_connect_direct()
On Sat, Jan 7, 2017 at 2:30 PM, Peter Moody <mindrot at hda3.com> wrote:
> so I spent a bit of time looking at this and it seems like the only
> way to go, at least if I want to keep it in ssh_connect_direct(), is
> to use pthreads. further, it seems like getting that accepted is
> something of a long shot:
Sorry, pthreads is a non-starter.
I would have thought that using
2010 Nov 28
2
[PATCH] Use canonical hostname for DNS SSHFP lookup
...- openssh/sshconnect.c 2010-11-28 12:04:32.127050308 +0100
+++ openssh-sshfp/sshconnect.c 2010-11-28 10:32:12.357225689 +0100
@@ -335,7 +335,8 @@
int
ssh_connect(const char *host, struct sockaddr_storage * hostaddr,
u_short port, int family, int connection_attempts, int *timeout_ms,
- int want_keepalive, int needpriv, const char *proxy_command)
+ int want_keepalive, int needpriv, const char *proxy_command,
+ char **canohost)
{
int gaierr;
int on = 1;
@@ -352,6 +353,8 @@
/* No proxy command. */
memset(&hints, 0, sizeof(hints));
+ if (canohost != NULL)
+ hints.ai_flags = AI_CAN...
2013 Oct 07
4
Feature request: FQDN Host match
Hello!
I'm hoping that Gmail won't HTML format this mail so that I'll get flamed :)
Anyway, my question relates to ssh_config. The problem I find is that
the Host pattern is only applied to the argument given on the command
line, as outlined in the man page:
"The host is the hostname argument given on the command line (i.e. the
name is not converted to a canonicalized host name
2018 Feb 23
6
RFC 8305 Happy Eyeballs in OpenSSH
...+ }
+ }
+ oerrno = errno;
+ while (nfds-- > 0)
+ if (FD_ISSET(nfds, &fds))
+ close(nfds);
+ if (ssh_connect_timeout(&start_tv, *timeout_ms))
+ errno = ETIMEDOUT;
+ else
+ errno = oerrno;
+ return sock;
}
/*
@@ -505,13 +664,9 @@
int connection_attempts, int *timeout_ms, int want_keepalive, int needpriv)
{
int on = 1;
- int oerrno, sock = -1, attempt;
- char ntop[NI_MAXHOST], strport[NI_MAXSERV];
- struct addrinfo *ai;
+ int sock = -1, attempt;
debug2("%s: needpriv %d", __func__, needpriv);
- memset(ntop, 0, sizeof(ntop));
- memset(strport, 0, sizeof(strport));
f...