Displaying 20 results from an estimated 108 matches for "serveraliveinterval".
2017 Feb 24
2
[SUSPECTED SPAM] Canonical Link to Reference of "ServerAliveInterval"
What is the canonical link to Reference of "ServerAliveInterval"?
Background: I want to write an answer at serverfault (Q-A Site).
I want to avoid copy+pasting. I would like to lead the new comer
to the canonical reference.
Regards,
Thomas G?ttler
--
Thomas Guettler http://www.thomas-guettler.de/
2007 Dec 14
3
Enabling ServerAliveInterval by default
....
Because inactive ssh sessions by default don't transmit any data, these
firewalls forget about this session and when you do try to send some data
over this connection, it gets disconnected.
It turns out that recent versions of OpenSSH clients already have an option
that solves this problem - ServerAliveInterval.
Is there a reason why OpenSSH shouldn't enable ServerAliveInterval in the
default client configuration, with some interval of, say, 120 seconds?
I believe that because these automatically-disconnecting firewalls are almost
ubiquitous on today's firewall, this setting is very important, a...
2008 May 15
0
"ServerAliveInterval" and "ServerAliveCountMax" doesnt work in openssh50?
Hi OpenSSH team,
We found that openssh5.0 has a bug with the "ServerAliveInterval" and "ServerAliveCountMax" options.
This function doesnt work at all, which means when the Maxtime reached, the ssh will not kill the connection and prompt the infomation "Connection Timedout" as it used to do.
We built the openssh5.0p1 code on the a Linux box, and u...
2010 Apr 21
0
ServerAliveInterval exit code?
Dear Sirs:
Thank you so much for your help. I have now created both the client and server for resumable nx sessions using the ServerAliveInterval option to disconnect after several seconds of server inaccessibility.
I am now working on an nxssh "substitute", which at this point seems fairly straightforward.
However, when I spawn ssh, I need to know whether:
(a) it exited because of ServerAliveInterval, and I should re-connect
or...
2008 May 16
4
[Bug 1465] New: "ServerAliveInterval" and "ServerAliveCountMax" doesnt work in openssh50?
https://bugzilla.mindrot.org/show_bug.cgi?id=1465
Summary: "ServerAliveInterval" and "ServerAliveCountMax" doesnt
work in openssh50?
Classification: Unclassified
Product: Portable OpenSSH
Version: 5.0p1
Platform: Other
OS/Version: HP-UX
Status: NEW
Severity: critical...
2006 Apr 22
2
bug & patch in ServerAliveInterval (openssh 4.3-p2)
Hi openssh-unix-dev subscribers :)
I have found that ServerAliveInterval & ServerAliveCountMax have
some bug. Basically the ssh-alive check function (that verify the
peer is alive) is called only if no data at all gets into ssh (when it
should work only for server channel).I am pretty sure developers know
about this ..anyway I have tried to fix this issue. Here is...
2023 Apr 07
1
Killing the OpenSSH server doesn't cause the Windows OpenSSH client to die
Try setting
Host *
? ServerAliveInterval 240
in .ssh/config on the client (wherever that is in Windows).? Or pass "-o
ServerAliveInterval=240" on the ssh client command line.
I've seen this where connections pass through some low grade external
firewall, which drops state after a certain amount of inactivity without
sen...
2023 Apr 07
2
Killing the OpenSSH server doesn't cause the Windows OpenSSH client to die
The fact that '-o ServerAliveInterval=50' makes no difference suggests
that there is a bug in the OpenSSH client.
It either fails to sent heartbeats, or it gets stuck in some Windows
system call and this makes it to fail to send heartbeats.
Yuri
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 you,
Phil
2011 Sep 19
2
rsync command for multi files and dirs from remote server
...les I have seen require a
new ssh session for each directory.
is there anyway to get something like this into one line and therefore
one ssh session. Clues on this?
--- snip ---
/usr/bin/rsync -avrz --human-readable --progress --update --perms
--ignore-existing -e 'ssh -p <port> -o ServerAliveInterval=10' --delete
--relative root@<hostname.net>:/etc '/shares/internal/<dir>/'
/usr/bin/rsync -avrz --human-readable --progress --update --perms
--ignore-existing -e 'ssh -p <port> -o ServerAliveInterval=10' --delete
--relative root@<hostname.net>:/root ...
2017 Mar 14
4
Relaiable ssh tunnel via systemd
Am 14.03.2017 um 15:10 schrieb Nico Kadel-Garcia:
> Look into the "autossh" program, which is very good to manage and
> maintain such tunnels.
>
Hi Nico and other ssh users,
Systemd restarts the ssh if it terminates. AFAIK this is all that is needed.
But maybe I am missing something. Is there a feature of autossh that I don't
get with systemd?
--
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 driver, or the cable, sinc...
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 random disconnects?
>> I don...
2015 Oct 26
2
ssh freezes
...> On 10/26/2015 01:28 PM, Michael Hennebry wrote:
>>
>> All too often, my ssh session will freeze.
>> I'm fairly certain the problem is at my end.
>> Any suggestions on how to diagnose?
>>
> I had this a lot until I added to /etc/ssh/ssh_config
>
> ServerAliveInterval 15
Did it complain at all?
Mine does not, it just freezes.
I can start another ssh session with the first one frozen.
--
Michael hennebry at web.cs.ndsu.NoDak.edu
"Sorry but your password must contain an uppercase letter, a number,
a haiku, a gang sign, a heiroglyph, and the blood of a v...
2007 Mar 08
1
Tip for SSH users with connection unexpectedly closed troubles
...ta stream (code 12) at
io.c(453) [receiver=2.6.9]
After following all the steps in the FAQ and issues.html on the rsync
website, searching the mailing list, upgrading rsync, using the
rsync-debug script, and consulting a number of people someone
suggested that I add this to my ~/.ssh/config file:
ServerAliveInterval 5
ServerAliveCountMax 120
This fixed the problem -- apparently something between my backup and
primary servers was cutting the connection during pauses (I'm still
not sure which was, even after research all the points of failure I
could).
I don't know if many other people have this troubl...
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 run it from the application...
2017 Nov 15
7
How to maintain a persistent SSH connection?
Hello,
I'm tasked with establishing a persistent SSH connection across
a very unreliable link, for a remote port forward (always port
2217). I figured I'd use ServerAliveInterval to make sure that the
ssh(1) process dies when the connection appears down, and I use
systemd to restart it in this case. This works fine.
What does not work fine, however, is the server-side. If the
connection goes down, sshd(8) lingers on the remote, bound to the
port that I need to forward back...
2007 Sep 10
1
ssh client stays connected after remote forward fails to bind
My command line looks like this:
ssh -2 -C -o BatchMode=yes -o KeepAlive=yes -o ServerAliveInterval=600
-N -T -x -a -R2401:127.0.0.1:2401 <host>
I've tried to instruct SSH that the only purpose it has in life is to
provide remote port forwarding (hence the -N -T) but if the remote fails
to bind I get an error locally (Could not bind to remove address) and
the SSH connection stays o...
2012 May 30
1
need assist with upstart config problem
...dev/null, must be used when ssh is run in bg.
# -N : Do not run a command on the remote host. Otherwise an
# error results because we are not initiating a session.
# -o ExitOnForwardFailure=yes : Wait until connection successfully
# completes before daemonizing
# -o ServerAliveInterval=15 : Keep connection alive every 15 seconds
# -q : Run quietly, do not produce local output.
# -T : disable pseudo-tty allocation
# SSH options used
env SSH_OPTIONS=" -o ExitOnForwardFailure=yes "
env SSH_OPTIONS=${SSH_OPTIONS}" -o ServerAliveInterval=15 "
# SSH sw...
2018 Feb 27
3
Established connection timing out
...th issue, etc. Both appear to simply be waiting for the other to
> do something.
>
> Since my client side rsync is running as root, I tried to modify
> /etc/ssh_config to try and keep the connection alive. This is the
> client side /etc/ssh_config
>
> Host *
>
> ServerAliveInterval 5
> ServerAliveCountMax 20
>
> And this is the server side /etc/sshd_config:
>
> Port 22
> Protocol 2
> HostKey /etc/ssh/ssh_host_rsa_key
> HostKey /etc/ssh/ssh_host_dsa_key
> HostKey /etc/ssh/ssh_host_ecdsa_key
> UsePrivilegeSeparation yes
>...