search for: tcpkeepalive

Displaying 20 results from an estimated 75 matches for "tcpkeepalive".

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...
2018 Feb 12
4
Problem with ssh disconnecting
Running CentOS 7 on workstation and having a problem with ssh disconnects. My ssh_config contains: Host * TCPKeepAlive yes ServerAliveInterval 30 ServerAliveCountMax 300 and sshd_config on the server contains: TCPKeepAlive yes ClientAliveInterval 60 ClientAliveCountMax 300 Have I missed any setting needed to prevent these random disconnects? I don't think there is anything wrong with the network card, the dr...
2018 Feb 13
4
Problem with ssh disconnecting
On 02/12/2018 07:24 PM, Liam O'Toole wrote: > On 2018-02-12, H <agents at meddatainc.com> wrote: >> Running CentOS 7 on workstation and having a problem with ssh >> disconnects. My ssh_config contains: >> >> Host * >> TCPKeepAlive yes >> ServerAliveInterval 30 >> ServerAliveCountMax 300 >> >> and sshd_config on the server contains: >> >> TCPKeepAlive yes >> ClientAliveInterval 60 >> ClientAliveCountMax 300 >> >> Have I missed any setting needed to prevent these rand...
2010 Aug 02
7
Persistent SSH sessions
Hi all I have an ADSL modem which reboots when there is a power cut and the inverter (UPS) kicks in. Internet access is down for a duration of 1 to 2 minutes while the modem boots. I have many SSH tunnels and shells active. Due to the default "TCPKeepAlive On" setting, these sessions are terminated almost immediately. I tried the following configuration: sshd_config on server: TCPKeepAlive no ClientAliveInterval 90 ClientAliveCountMax 6 ~/.ssh/config: Host * Protocol 2 Compression yes TCPKeepAlive no ServerAliveInterva...
2011 Nov 14
3
After Latest Update...
Hi All, Using the following to ssh into my home to get mail, I suddenly get this: ssh -o TCPKeepAlive=yes -o ServerAliveInterval=240 -L 110:192.168.100.108:110 phil at FQDN phil at FQDN's password: bind: Cannot assign requested address <---- Last login: Sun Nov 13 23:45:29 2011 from FQDN I have never seen what I am indicating before and am wondering why this would suddenly appear? Thank yo...
2015 Oct 08
5
problem on exceptional quit
...e following approaches, but none of them can help. I wonder if it can be solved by reinstall the system again. But it?s time consuming to reinstall a lot of softwares. 1. Login via Mac, Windows, Linux systems from different computers. 2. Modify sshd_config on the server as suggested by many posts: TCPKeepAlive yes ClientAliveInterval 60 3. Modify ~/.ssh/config file on my local computer: Host * ServerAliveInterval 60 4. Login ssh using -Y instead of -X. 5. add ?unset autologout? in my .cshrc. 6. I checked IP address with the internet administrator, and it works well. 7. add a file named autologout.csh wit...
2015 Oct 08
0
problem on exceptional quit
...connecting to an IPv4 address. If so, log in to your CentOS server and use arping to look for conflicts: # arping -c 2 D -I em1 <your address> > 1. Login via Mac, Windows, Linux systems from different computers. > 2. Modify sshd_config on the server as suggested by many posts: > TCPKeepAlive yes > ClientAliveInterval 60 TCPKeepAlive is "yes" by default. ClientAliveInterval doesn't appear to be a valid setting. Either TCPKeepAlive or ServerAliveInterval could be useful if the problem were a stateful firewall which was dropping your connection from its state table,...
2008 Dec 12
4
Can't connect client when runned from Windows Service
Hi, I have a client on a Windows machine that connects through openssh on a linux server. I have this script (tunnel.cmd): @echo off :RUN echo Connecting? "C:/Program Files/OpenSSH/bin/ssh.exe" -R 40201:localhost:50300 -o TCPKeepAlive=no -o ServerAliveInterval=15 -o ServerAliveCountMax=2 -i id_rsa visma at 10.55.40.123 echo Restarting in 10 seconds? GOTO RUN It is runned from another application that starts as windows service. When i run the same script manually it makes the connection to linux machine. Is not working when we r...
2015 Oct 11
1
problem on exceptional quit
...2012 hwang]# arping -c 2 -D -I em1 222.200.125.5 ARPING 222.200.125.5 from 0.0.0.0 em1 Sent 2 probes (2 broadcast(s)) Received 0 response(s) >> 1. Login via Mac, Windows, Linux systems from different computers. >> 2. Modify sshd_config on the server as suggested by many posts: >> TCPKeepAlive yes >> ClientAliveInterval 60 > > TCPKeepAlive is "yes" by default. ClientAliveInterval doesn't appear to be a valid setting. Either TCPKeepAlive or ServerAliveInterval could be useful if the problem were a stateful firewall which was dropping your connection from its s...
2018 Feb 12
0
Problem with ssh disconnecting
On Mon, Feb 12, 2018 at 6:25 PM H <agents at meddatainc.com> wrote: > Running CentOS 7 on workstation and having a problem with ssh disconnects. > My ssh_config contains: > > Host * > TCPKeepAlive yes > ServerAliveInterval 30 > ServerAliveCountMax 300 > > and sshd_config on the server contains: > > TCPKeepAlive yes > ClientAliveInterval 60 > ClientAliveCountMax 300 > > Have I missed any setting needed to prevent these random disconnects? I > don't think t...
2018 Feb 13
0
Problem with ssh disconnecting
On 2018-02-12, H <agents at meddatainc.com> wrote: > Running CentOS 7 on workstation and having a problem with ssh > disconnects. My ssh_config contains: > > Host * > TCPKeepAlive yes > ServerAliveInterval 30 > ServerAliveCountMax 300 > > and sshd_config on the server contains: > > TCPKeepAlive yes > ClientAliveInterval 60 > ClientAliveCountMax 300 > > Have I missed any setting needed to prevent these random disconnects? > I don't think t...
2018 Feb 13
0
Problem with ssh disconnecting
...t; wrote: > On 02/12/2018 07:24 PM, Liam O'Toole wrote: >> On 2018-02-12, H <agents at meddatainc.com> wrote: >>> Running CentOS 7 on workstation and having a problem with ssh >>> disconnects. My ssh_config contains: >>> >>> Host * >>> TCPKeepAlive yes >>> ServerAliveInterval 30 >>> ServerAliveCountMax 300 >>> >>> and sshd_config on the server contains: >>> >>> TCPKeepAlive yes >>> ClientAliveInterval 60 >>> ClientAliveCountMax 300 >>> >>> Have I missed...
2018 Feb 13
0
Problem with ssh disconnecting
...t; On 02/12/2018 07:24 PM, Liam O'Toole wrote: > > On 2018-02-12, H <agents at meddatainc.com> wrote: > > > Running CentOS 7 on workstation and having a problem with ssh > > > disconnects. My ssh_config contains: > > > > > > Host * > > > TCPKeepAlive yes > > > ServerAliveInterval 30 > > > ServerAliveCountMax 300 > > > > > > and sshd_config on the server contains: > > > > > > TCPKeepAlive yes > > > ClientAliveInterval 60 > > > ClientAliveCountMax 300 > > > > &...
2005 Oct 20
2
KeepAlive/ClientAliveInterval not working? Idle timeout.
I have set /etc/ssh/sshd_config with: KeepAlive yes ClientAliveInterval 3 However, no KeepAlive type messages seem to be sent. I've verified this by looking at the network lights, which don't flicker every 3 seconds. I am attempting to keep interactive ssh sessions alive longer. If don't type anything for about 2 minutes, the sessions close. If I run a "idle"
2007 Dec 02
3
Setting SSH timeout
i'm trying to disconnect idle users from my system by editing /etc/ssh/sshd_config i have set TCPKeepAlive no ClientAliveInterval 2 and restarting sshd services /etc/rc.d/sshd restart but it still wont disconnect any idle client any advice is highly appreciated areadamai freebsd user
2013 Jan 03
1
Openssh connection closes from time to time. why?
...Centos 6.3 on 2 servers. Since the move I had troubles with ssh open sessions. I am connecting from a windows machine via putty and then all of a sudden it saying something about connection closing. The OpenSSH version is: openssh-server-5.3p1-81.el6.x86_64.rpm I tired to configure: tcp_keep_alive TCPKeepAlive yes ClientAliveInterval 240 ClientAliveCountMax 50 Each one of them or all together seems to not solve the problem. It's not iptables issue since it was stopped and disabled. If someone have an idea of what can be done or checked I will be happy to hear about it. For now I have created a cu...
2019 Dec 26
2
Problem with disconnecting SSH-sessions
On 12/26/2019 04:45 PM, Gordon Messmer wrote: > On 12/26/19 12:59 PM, H wrote: >> Are my observations above still consistent with your hypothesis? > > > Largely, yes.? I'm not sure why you'd be disconnected while transferring data (one of scp or sftp, right?), but it sounds like a DNAT-related limit. > > _______________________________________________ > CentOS
2019 Dec 27
1
Problem with disconnecting SSH-sessions
On 12/26/19 2:49 PM, H wrote: > I just looked at the settings in /etc/ssh/ssh_config on the workstation - which should apply to all users on it - I already had: > > Host * > ?TCPKeepAlive yes > ?ServerAliveInterval 60 Well, keep-alive options would only make a difference if the problem were a DNAT timeout.? If it's some other limitation imposed on DNAT, those won't have any effect. If you can reproduce this reliably and have admin access to both the server and clie...
2010 Aug 23
3
[Bug 1808] New: "SetupCommand" invoked before connecting
...he ssh port, which would be blocked otherwise to defend against brute force attacks. Another interested user is monkeysphere (currently using option 1) below). Solutions: ~~~~~~~~~~ 1) (Ab)using ProxyCommand. This is employed in some howtos on port knocking. It however has the disadvantage that TCPKeepAlive and some timeout options are no longer honoured. 2) Wrapping ssh. While this does not disable other options like above one has to create a second option parser for ssh. Furthermore configuration that belongs to ssh is now located somewhere else (not in .ssh/config). The approach may als...
2007 Jul 24
1
ssh client does not timeout if the network fails after ssh_connect but before ssh_exchange_identification, even with Alive options set
...The ssh configuration files show that both client and server alive options are set. In /etc/ssh/ssh_config: # Send keepalive messages to the server. Disconnect after 90 seconds. ServerAliveInterval 30 ServerAliveCountMax 3 In /etc/ssh/sshd_config: # ClientAlive is more flexible and secure than TCPKeepAlive. (ssh2) # Send an alive messages every 30 seconds, and disconnect after 90 seconds. ClientAliveInterval 30 ClientAliveCountMax 3 The ssh client kept hanging even after the network was resumed. It finally timed out after about 2 hours because the tcp_keepalive_time is set as 2 hours in sysctl. I lo...