Displaying 20 results from an estimated 1100 matches similar to: "Restricting port forwarding on remote server"
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:
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
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:
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 use the
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
2007 Mar 08
1
Tip for SSH users with connection unexpectedly closed troubles
Thanks for rsync - it's great! I use it for all my backups.
I use rsync via SSH. Recently - I was having trouble with my backups:
rsync: connection unexpectedly closed (4968349 bytes received so far)
[receiver]
rsync error: error in rsync protocol data 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
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
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 the patch:
diff -rNu
2018 Mar 25
4
Rsync between 2 datacenters not working
You could try using an automounter, like autofs, in combination with
sshfs. It'll be slower, possibly a lot slower, but it should be more
reliable over an unreliable connection.
I've been using:
remote -fstype=fuse,allow_other,nodev,noatime,reconnect,ServerAliveInterval=15,ServerAliveCountMax=40,uid=0,gid=0,ro,nodev,noatime
:sshfs\#root at remote.host.com\:/
BTW, I'm not sure
2014 Jan 09
0
ServerAliveCountMax (and Client) waits for TCP timeout before process exit
I am of the opinion that ClientAliveCountMax should really force a
disconnection from the testing side when a ping-pong control packet
retransmission would exceed the max counter.
But it appears to need TCP to timeout to occur from that point, for the
process/tty to close.
For SSH client options:
-o ServerAliveInterval=60
-o ServerAliveCountMax=3
Should cause the client to force an
2007 Dec 14
3
Enabling ServerAliveInterval by default
Hi,
In the last several years, I noticed an annoying problem with ssh:
Long-running ssh connections are automatically disconnected after just a
few minutes of inactivity. This problem effects both interactive sessions
(using ssh without screen(1) became almost impossible...) as well as ssh port
forwarding and the likes.
I never noticed this problem until about 6 years ago, but since then have
2019 Oct 20
5
[Bug 3083] New: Passing tilde (HOME) in file option results in cryptic error
https://bugzilla.mindrot.org/show_bug.cgi?id=3083
Bug ID: 3083
Summary: Passing tilde (HOME) in file option results in cryptic
error
Product: Portable OpenSSH
Version: 8.1p1
Hardware: ix86
OS: Linux
Status: NEW
Severity: enhancement
Priority: P5
Component: ssh-keygen
2017 Jun 21
1
encoding/locale problem with ssh -X
Hi all,
I am struggling with remote R sessions and a (I suspect) locale related
encoding problem: Using the X11 device (X11forwarding enabled),
whenever I try to plot something containing umlauts using ggplot2, I am
seeing sth like
,----
| Error in grid.Call(L_stringMetric, as.graphicsAnnot(x$label)) :
| invalid use of -61 < 0 in 'X11_MetricInfo'
`----
Using base graphics is fine
2020 May 19
2
how does autofs deal with stuck NFS mounts and suspending to RAM?
On Tuesday, May 19, 2020 1:36:03 AM CEST Warren Young wrote:
> On May 18, 2020, at 5:13 AM, hw <hw at gc-24.de> wrote:
> > Is there a better alternative for mounting remote file systems over
> > unreliable connections?
>
> I don?t have a good answer for you, because if you?d asked me without all
> this backstory whether NFS or SSHFS is more tolerant of bad
2013 Apr 26
3
how to check whether the ssh tunnel is up
Hi all,
I use the command below to set up a ssh tunnel. And I run it as a daemon
process to keep the ssh tunnel work all the time. And I should wait for the
ssh tunnel to be up and notify the tunnel is OK before sending any command
to the remote port on the remote server. But the question is I don't know
how to check the ssh tunnel status. Is there a way to show whether the ssh
tunnel is up?
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
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
Hello,
I am testing ssh with occasional network disconnection between server and
client during these days. I found ssh sometimes hangs if the disconnection
happens after the connection is established but before
ssh_exchange_identification completes. 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.
2015 Oct 26
2
ssh freezes
On Mon, 26 Oct 2015, Robert Moskowitz wrote:
> 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
2016 Apr 23
2
StreamLocal forwarding
Hi folks,
(3rd time I am sending this message, none of the other appear to have
made it through!)
Using "OpenSSH_6.9p1 Ubuntu-2ubuntu0.1, OpenSSL 1.0.2d 9 Jul 2015" on
the server, "OpenSSH_7.2p2, OpenSSL 1.0.2g 1 Mar 2016" on the client.
I am trying to use sshtunnel with StreamLocal forwarding to enable me
to connect back to the client's ssh port, without having to