Rocksolid Light

Welcome to novaBBS (click a section below)

mail  files  register  newsreader  groups  login

Message-ID:  

"Atomic batteries to power, turbines to speed." -- Robin, The Boy Wonder


computers / comp.os.linux.networking / Re: incoming ssh blocked by ISP

SubjectAuthor
* incoming ssh blocked by ISPBob Tennent
+* Re: incoming ssh blocked by ISPLew Pitcher
|+* Re: incoming ssh blocked by ISPBob Tennent
||+* Re: incoming ssh blocked by ISPLew Pitcher
|||+* Re: incoming ssh blocked by ISPCarlos E. R.
||||`* Re: incoming ssh blocked by ISPDavid W. Hodgins
|||| `- Re: incoming ssh blocked by ISPCarlos E. R.
|||+- Re: incoming ssh blocked by ISPWilliam Unruh
|||`- Re: incoming ssh blocked by ISPMarco Moock
||+* Re: incoming ssh blocked by ISPDavid W. Hodgins
|||`* Re: incoming ssh blocked by ISPDavid W. Hodgins
||| `* Re: incoming ssh blocked by ISPBob Tennent
|||  `* Re: incoming ssh blocked by ISPBob Tennent
|||   +* Re: incoming ssh blocked by ISPDavid W. Hodgins
|||   |`- Re: incoming ssh blocked by ISPAnt
|||   `* Re: incoming ssh blocked by ISPBob Tennent
|||    `* Re: incoming ssh blocked by ISPDavid W. Hodgins
|||     `- Re: incoming ssh blocked by ISPBit Twister
||`- Re: incoming ssh blocked by ISPWilliam Unruh
|`* Re: incoming ssh blocked by ISPCarlos E. R.
| `- Re: incoming ssh blocked by ISPDan Purgert
+- Re: incoming ssh blocked by ISPDavid W. Hodgins
+- Re: incoming ssh blocked by ISPPascal Hambourg
+* Re: incoming ssh blocked by ISPMarco Moock
|`* Re: incoming ssh blocked by ISPWilliam Unruh
| `* Re: incoming ssh blocked by ISPBob Tennent
|  +* Re: incoming ssh blocked by ISPCarlos E. R.
|  |`- Re: incoming ssh blocked by ISPCarlos E. R.
|  +* Re: incoming ssh blocked by ISPPascal Hambourg
|  |`* Re: incoming ssh blocked by ISPCarlos E. R.
|  | `- Re: incoming ssh blocked by ISPPascal Hambourg
|  `* Re: incoming ssh blocked by ISPMarco Moock
|   `* Re: incoming ssh blocked by ISPPascal Hambourg
|    `- Re: incoming ssh blocked by ISPMarco Moock
`* Re: incoming ssh blocked by ISPJoe Beanfish
 `* Re: incoming ssh blocked by ISPBob Tennent
  +- Re: incoming ssh blocked by ISPMarco Moock
  +* Re: incoming ssh blocked by ISPDavid W. Hodgins
  |`* Re: incoming ssh blocked by ISPBob Tennent
  | `* Re: incoming ssh blocked by ISPDavid W. Hodgins
  |  `* Re: incoming ssh blocked by ISPBob Tennent
  |   `* Re: incoming ssh blocked by ISPDavid W. Hodgins
  |    `* Re: incoming ssh blocked by ISPAnt
  |     `- Re: incoming ssh blocked by ISPWilliam Unruh
  `- Re: incoming ssh blocked by ISPAnt

Pages:12
Re: incoming ssh blocked by ISP

<20211107110901.54cb4512@ryz>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=244&group=comp.os.linux.networking#244

  copy link   Newsgroups: comp.os.linux.networking
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: inva...@invalid.invalid (Marco Moock)
Newsgroups: comp.os.linux.networking
Subject: Re: incoming ssh blocked by ISP
Date: Sun, 7 Nov 2021 11:09:01 +0100
Organization: A noiseless patient Spider
Lines: 18
Message-ID: <20211107110901.54cb4512@ryz>
References: <sm66vk$hvp$1@dont-email.me>
<20211106193516.286599e5@ryz>
<sm6mi8$5ns$1@dont-email.me>
<sm6rf6$ann$1@dont-email.me>
<20211107102252.1595d91e@ryz>
<6187a1bf$0$8890$426a34cc@news.free.fr>
Mime-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Injection-Info: reader02.eternal-september.org; posting-host="9b2a472476d0a018c7f5c23e6fc6ca21";
logging-data="32092"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+BseW3MEICa2K0lsE82E3L"
Cancel-Lock: sha1:7VMw/PfcZAM6X/v2hLU14xdDFY8=
X-Newsreader: Claws Mail 3.17.8 (GTK+ 2.24.33; x86_64-pc-linux-gnu)
 by: Marco Moock - Sun, 7 Nov 2021 10:09 UTC

Am Sun, 7 Nov 2021 10:51:59 +0100
schrieb Pascal Hambourg <pascal@plouf.fr.eu.org>:

> How is that different from IPv4 CGNAT ?
It results in the same, but there is no direct IPv4 connection to the
provider like CG-NAT, IPv4 is being tunneled.

> Dual-Stack Lite is a promising approach that takes the best of NAT464
> while avoiding its problems: It uses IPv6-only links between the
> provider and the customer, but does not use NAT64 translation. When a
> device in the customer network sends an IPv4 packet to an external
> destination, the IPv4 packet is encapsulated in an IPv6 packet for
> transport into the provider network. At the LSN, the packet is
> decapsulated and NAT44 is performed (Figure 1). Tunneling IPv4 over
> IPv6 is far simpler than translation, so the performance and
> redundancy concerns are eliminated.
https://www.networkworld.com/article/2232181/understanding-dual-stack-lite.html

Re: incoming ssh blocked by ISP

<20211107124451.4dd00de0@ryz>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=245&group=comp.os.linux.networking#245

  copy link   Newsgroups: comp.os.linux.networking
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: inva...@invalid.invalid (Marco Moock)
Newsgroups: comp.os.linux.networking
Subject: Re: incoming ssh blocked by ISP
Date: Sun, 7 Nov 2021 12:44:51 +0100
Organization: A noiseless patient Spider
Lines: 15
Message-ID: <20211107124451.4dd00de0@ryz>
References: <sm66vk$hvp$1@dont-email.me>
<sm6af0$sst$1@dont-email.me>
<sm6sb6$kru$1@dont-email.me>
<sm6tj9$sst$2@dont-email.me>
Mime-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Injection-Info: reader02.eternal-september.org; posting-host="9b2a472476d0a018c7f5c23e6fc6ca21";
logging-data="32092"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19vcC1QW61e0KzFm6UmqMI1"
Cancel-Lock: sha1:uommIP0UIkYeHIVU8/nDBGiWKgU=
X-Newsreader: Claws Mail 3.17.8 (GTK+ 2.24.33; x86_64-pc-linux-gnu)
 by: Marco Moock - Sun, 7 Nov 2021 11:44 UTC

Am Sat, 6 Nov 2021 21:54:50 -0000 (UTC)
schrieb Lew Pitcher <lew.pitcher@digitalfreehold.ca>:

> Nonsense. If your ISP blocks /all/ inbound ports, then your system is
> effectively /not/ connected to the internet: both TCP and UDP require
> that /some/ port be open on each side of the conversation.
They can block "incoming" traffic by running a stateful package
inspection firewall that only allows incoming traffic on a port if a
package ha already been sent to the target. That is SPI firewalling.

For TCP, they can just block all incoming packages with no ACK flag
set, so you can properly connect to a server because the outgoing SYN
(only SYN flag set) can pass, but incoming such a package is being
dropped.

Re: incoming ssh blocked by ISP

<sm9g0b$10a$1@dont-email.me>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=246&group=comp.os.linux.networking#246

  copy link   Newsgroups: comp.os.linux.networking
Path: i2pn2.org!i2pn.org!paganini.bofh.team!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: rdtenn...@tennent.ca (Bob Tennent)
Newsgroups: comp.os.linux.networking
Subject: Re: incoming ssh blocked by ISP
Date: Sun, 7 Nov 2021 21:21:15 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 55
Message-ID: <sm9g0b$10a$1@dont-email.me>
References: <sm66vk$hvp$1@dont-email.me> <sm6af0$sst$1@dont-email.me>
<sm6sb6$kru$1@dont-email.me> <op.1cghyouwa3w0dxdave@hodgins.homeip.net>
<op.1cgh5ikqa3w0dxdave@hodgins.homeip.net> <sm7bnj$i4u$1@dont-email.me>
Reply-To: rdtennent@gmail.com
Injection-Date: Sun, 7 Nov 2021 21:21:15 -0000 (UTC)
Injection-Info: reader02.eternal-september.org; posting-host="4f9310a1ca0e949e965da0cddba3b408";
logging-data="1034"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+HzUDIqqEgZvP7UwdChrC0WimiL5Gw5os="
User-Agent: slrn/1.0.3 (Linux)
Cancel-Lock: sha1:ERq9GS5E6DBVc6bI7o67BdrzlhM=
 by: Bob Tennent - Sun, 7 Nov 2021 21:21 UTC

On Sun, 7 Nov 2021 01:56:03 -0000 (UTC), Bob Tennent wrote:
> On Sat, 06 Nov 2021 18:01:56 -0400, David W. Hodgins wrote:
> > On Sat, 06 Nov 2021 17:57:50 -0400, David W. Hodgins
> <dwhodgins@nomail.afraid.org> wrote:
> >
> >> On Sat, 06 Nov 2021 17:33:27 -0400, Bob Tennent
> <rdtennent@tennent.ca> wrote:
> >>> That doesn't work. The ISP doesn't allow access of any sort
> >>> to the system.
> >>
> >> As long as one of the systems can access the other, use a
> >> reverse ssh proxy to
> >> allow access in the other direction.
> >>
> >> See http://www.harding.motd.ca/autossh/
> >
> > Sorry, meant to also include
> > https://hobo.house/2016/06/20/
> fun-and-profit-with-reverse-ssh-tunnels-and-autossh/
>
> Thanks. This looks like it might be the solution.

So I'm trying this, following those instructions though I'm
not sure I undestand what's going on.

In my case I believe the "remoteserver" (that can initiate
outbound SSH connections) is my home system called jimmy and
the "homeserver" (that I control and can accept inbound SSH
connections) is an AWS instance with a static IP address.

So on jimmy I execute

ssh AWS -p 9991 -R 8081:localhost:1991

I've opened ports 9991 and 8081 on the AWS firewall and
configured sshd to use port 9991. This command doesn't
generate any error messages and I get connected to AWS.

So then on AWS, I execute

ssh localhost -p 8081

and I get the following error messages:

connect_to localhost port 9991: failed.
kex_exchange_identification: read: Connection reset by peer

I don't know what that means and why I'm told connecting to
port 9991 fails when I specified port 8081.

Can someone who understands how this reverse-tunnel process
should be working please explain what I need to do?

Re: incoming ssh blocked by ISP

<op.1ciii3hla3w0dxdave@hodgins.homeip.net>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=247&group=comp.os.linux.networking#247

  copy link   Newsgroups: comp.os.linux.networking
Path: i2pn2.org!i2pn.org!paganini.bofh.team!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: dwhodg...@nomail.afraid.org (David W. Hodgins)
Newsgroups: comp.os.linux.networking
Subject: Re: incoming ssh blocked by ISP
Date: Sun, 07 Nov 2021 19:05:17 -0500
Organization: A noiseless patient Spider
Lines: 46
Message-ID: <op.1ciii3hla3w0dxdave@hodgins.homeip.net>
References: <sm66vk$hvp$1@dont-email.me> <sm6af0$sst$1@dont-email.me>
<sm6sb6$kru$1@dont-email.me> <op.1cghyouwa3w0dxdave@hodgins.homeip.net>
<op.1cgh5ikqa3w0dxdave@hodgins.homeip.net> <sm7bnj$i4u$1@dont-email.me>
<sm9g0b$10a$1@dont-email.me>
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed; delsp=yes
Content-Transfer-Encoding: 8bit
Injection-Info: reader02.eternal-september.org; posting-host="998e1e67218bf72da70f95e88aa283f5";
logging-data="9823"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19/CfhWhFrf/tIcW8o30IBCx5aDXrAs0uw="
User-Agent: Opera Mail/12.16 (Linux)
Cancel-Lock: sha1:ilToeayG3fsjZ49vwv46vFDLR1M=
 by: David W. Hodgins - Mon, 8 Nov 2021 00:05 UTC

On Sun, 07 Nov 2021 16:21:15 -0500, Bob Tennent <rdtennent@tennent.ca> wrote:
> Can someone who understands how this reverse-tunnel process
> should be working please explain what I need to do?

I run sshd listening to port 59385 to avoid the brute force attacks filling logs
with failed attempts. Note that you need to setup the ssh keys to work with public
keys only. No password.

In my case George's computer is the one that normally cannot be accessed.
Under my id on that computer, in /home/dave/.ssh/config it has ...

Host mine
Hostname davidwhodgins.no-ip.biz
Port 59385
User dave
Compression yes
CompressionLevel 9
ServerAliveInterval 120

It runs autossh at bootup using ...
# cat /etc/rc.d/rc.local
#!/bin/bash
su -l dave -c /home/dave/bin/myautossh &

# cat /home/dave/bin/myautossh
#!/bin/bash
export AUTOSSH_POLL=90
> /home/dave/autossh.log
export AUTOSSH_LOGFILE=/home/dave/autossh.log
/usr/bin/autossh -f -N -M 0 -R 59387:localhost:59385 mine

On my computer /home/dave/.ssh/config has
Host george
Hostname localhost
Port 59387
User dave
Compression yes
ServerAliveInterval 120

So George's computer, at boot starts an ssh connection to my computer, setting
up the reverse tunnel, which listens to port 59387. From my computer I can then
ssh to george's computer, using my id on both.

Hope this helps.

Regards, Dave Hodgins

Re: incoming ssh blocked by ISP

<sm9tsc$u1a$1@dont-email.me>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=248&group=comp.os.linux.networking#248

  copy link   Newsgroups: comp.os.linux.networking
Path: i2pn2.org!i2pn.org!aioe.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: rdtenn...@tennent.ca (Bob Tennent)
Newsgroups: comp.os.linux.networking
Subject: Re: incoming ssh blocked by ISP
Date: Mon, 8 Nov 2021 01:18:04 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 60
Message-ID: <sm9tsc$u1a$1@dont-email.me>
References: <sm66vk$hvp$1@dont-email.me> <sm6af0$sst$1@dont-email.me>
<sm6sb6$kru$1@dont-email.me> <op.1cghyouwa3w0dxdave@hodgins.homeip.net>
<op.1cgh5ikqa3w0dxdave@hodgins.homeip.net> <sm7bnj$i4u$1@dont-email.me>
<sm9g0b$10a$1@dont-email.me>
Reply-To: rdtennent@gmail.com
Injection-Date: Mon, 8 Nov 2021 01:18:04 -0000 (UTC)
Injection-Info: reader02.eternal-september.org; posting-host="2cc92379f93a55962bc4410f13070eab";
logging-data="30762"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX189JSST1Bf/jZEugEzLJJnlvh+FbTKJSnM="
User-Agent: slrn/1.0.3 (Linux)
Cancel-Lock: sha1:FYwTUjs1CAtQrxH6QjrMaMoUCbY=
 by: Bob Tennent - Mon, 8 Nov 2021 01:18 UTC

On Sun, 7 Nov 2021 21:21:15 -0000 (UTC), Bob Tennent wrote:
> On Sun, 7 Nov 2021 01:56:03 -0000 (UTC), Bob Tennent wrote:
> > On Sat, 06 Nov 2021 18:01:56 -0400, David W. Hodgins wrote:
> > > On Sat, 06 Nov 2021 17:57:50 -0400, David W. Hodgins
> > <dwhodgins@nomail.afraid.org> wrote:
> > >
> > >> On Sat, 06 Nov 2021 17:33:27 -0400, Bob Tennent
> > <rdtennent@tennent.ca> wrote:
> > >>> That doesn't work. The ISP doesn't allow access of any sort
> > >>> to the system.
> > >>
> > >> As long as one of the systems can access the other, use a
> > >> reverse ssh proxy to
> > >> allow access in the other direction.
> > >>
> > >> See http://www.harding.motd.ca/autossh/
> > >
> > > Sorry, meant to also include
> > > https://hobo.house/2016/06/20/
> > fun-and-profit-with-reverse-ssh-tunnels-and-autossh/
> >
> > Thanks. This looks like it might be the solution.
>
> So I'm trying this, following those instructions though I'm
> not sure I undestand what's going on.
>
> In my case I believe the "remoteserver" (that can initiate
> outbound SSH connections) is my home system called jimmy and
> the "homeserver" (that I control and can accept inbound SSH
> connections) is an AWS instance with a static IP address.
>
> So on jimmy I execute
>
> ssh AWS -p 9991 -R 8081:localhost:1991
>
> I've opened ports 9991 and 8081 on the AWS firewall and
> configured sshd to use port 9991. This command doesn't
> generate any error messages and I get connected to AWS.
>
> So then on AWS, I execute
>
> ssh localhost -p 8081
>
> and I get the following error messages:
>
> connect_to localhost port 9991: failed.
> kex_exchange_identification: read: Connection reset by peer
>
> I don't know what that means and why I'm told connecting to
> port 9991 fails when I specified port 8081.

It's occurred to me that on AWS, the relevant user is ubuntu
but on jimmy, it's rdt. When I (i.e., rdt) ssh to AWS, my
..ssh/config file specifies that the User is ubuntu. Where do
I (as ubuntu) specify on AWS that the relevant user on jimmy
is rdt? Executing

ssh localhost -p 8081 -l rdt

doesn't seem to make a difference.

Re: incoming ssh blocked by ISP

<op.1cio1bpna3w0dxdave@hodgins.homeip.net>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=249&group=comp.os.linux.networking#249

  copy link   Newsgroups: comp.os.linux.networking
Path: i2pn2.org!i2pn.org!aioe.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: dwhodg...@nomail.afraid.org (David W. Hodgins)
Newsgroups: comp.os.linux.networking
Subject: Re: incoming ssh blocked by ISP
Date: Sun, 07 Nov 2021 21:25:49 -0500
Organization: A noiseless patient Spider
Lines: 48
Message-ID: <op.1cio1bpna3w0dxdave@hodgins.homeip.net>
References: <sm66vk$hvp$1@dont-email.me> <sm6af0$sst$1@dont-email.me>
<sm6sb6$kru$1@dont-email.me> <op.1cghyouwa3w0dxdave@hodgins.homeip.net>
<op.1cgh5ikqa3w0dxdave@hodgins.homeip.net> <sm7bnj$i4u$1@dont-email.me>
<sm9g0b$10a$1@dont-email.me> <sm9tsc$u1a$1@dont-email.me>
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed; delsp=yes
Content-Transfer-Encoding: 8bit
Injection-Info: reader02.eternal-september.org; posting-host="998e1e67218bf72da70f95e88aa283f5";
logging-data="24913"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+/IT2J5AU1c4Zo2yqAhnvD32KS3qmH3Ac="
User-Agent: Opera Mail/12.16 (Linux)
Cancel-Lock: sha1:CNgjwRxvxjd2q3nqB892bLMq3jA=
 by: David W. Hodgins - Mon, 8 Nov 2021 02:25 UTC

On Sun, 07 Nov 2021 20:18:04 -0500, Bob Tennent <rdtennent@tennent.ca> wrote:
> It's occurred to me that on AWS, the relevant user is ubuntu
> but on jimmy, it's rdt. When I (i.e., rdt) ssh to AWS, my
> .ssh/config file specifies that the User is ubuntu. Where do
> I (as ubuntu) specify on AWS that the relevant user on jimmy
> is rdt? Executing
> ssh localhost -p 8081 -l rdt
> doesn't seem to make a difference.

Specify the user etc in ~/.ssh/config.
In /home/rdt/.ssh/config the user will be ubuntu.
In /home/ubuntu.ssh/config the user will be rdt.

Both of the computer's involved have sshd running.

I have it listening to port 59385. Avoid using port 22 both to avoid script kiddies
filling the logs and to avoid cases where the isp blocks connections.

On george's system (the one I normally can not ssh to), the command that connects
to mine and sets up the tunnel, run by autossh is
ssh -N -R 59387:localhost:59385 mine

The "mine" selects the system it connects to from ~/.config including the user,
port and ip address (dynamic dns in my case).
Host mine
Hostname davidwhodgins.no-ip.biz
Port 59385
User dave
Compression yes
CompressionLevel 9
ServerAliveInterval 120

The -N stops it from executing any commands after it connects.
The -R 59387:localhost:59385 tells it to open port 59387 on my computer after
it connects and forwards any connections I make on my computer's port 59387
to port 59385 on George's computer.

On my computer, I just type in ssh george and it gets the info from ~/.ssh/config
Host george
Hostname localhost
Port 59387
User dave
Compression yes
ServerAliveInterval 120

Does that help clarify things?

Regards, Dave Hodgins

Re: incoming ssh blocked by ISP

<ANSdnQHAVbQgMRX8nZ2dnUU7-Q3NnZ2d@earthlink.com>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=250&group=comp.os.linux.networking#250

  copy link   Newsgroups: comp.os.linux.networking
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!news.misty.com!border2.nntp.dca1.giganews.com!nntp.giganews.com!buffer2.nntp.dca1.giganews.com!buffer1.nntp.dca1.giganews.com!nntp.earthlink.com!news.earthlink.com.POSTED!not-for-mail
NNTP-Posting-Date: Sun, 07 Nov 2021 22:51:09 -0600
From: ant...@zimage.comANT (Ant)
Subject: Re: incoming ssh blocked by ISP
Newsgroups: comp.os.linux.networking
References: <sm66vk$hvp$1@dont-email.me> <sm6af0$sst$1@dont-email.me> <sm6sb6$kru$1@dont-email.me> <op.1cghyouwa3w0dxdave@hodgins.homeip.net> <op.1cgh5ikqa3w0dxdave@hodgins.homeip.net> <sm7bnj$i4u$1@dont-email.me> <sm9g0b$10a$1@dont-email.me> <op.1ciii3hla3w0dxdave@hodgins.homeip.net>
User-Agent: tin/2.4.5-20201224 ("Glen Albyn") (Linux/5.10.19-200.fc33.x86_64 (x86_64))
Message-ID: <ANSdnQHAVbQgMRX8nZ2dnUU7-Q3NnZ2d@earthlink.com>
Date: Sun, 07 Nov 2021 22:51:09 -0600
Lines: 19
X-Usenet-Provider: http://www.giganews.com
NNTP-Posting-Host: 47.180.143.226
X-Trace: sv3-He5pa9pXV8vWjWY0RDtB/q3LX2Fl35rbnC7MzZ0tJVRt0gYrljH/+N+8/5assiXv+mEAHC26EffhY2p!cuNcz8xeWldMUGh1/Z2QqDFMI/4rivEw0fvLIvalgINiWzfUKiwSmhrpWYs1KkYBSBJAIFoHjwb3!N0PC2Washc46ay/Htc/hhpFuzR9cvxr2
X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers
X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly
X-Postfilter: 1.3.40
X-Original-Bytes: 2138
 by: Ant - Mon, 8 Nov 2021 04:51 UTC

David W. Hodgins <dwhodgins@nomail.afraid.org> wrote:
> On Sun, 07 Nov 2021 16:21:15 -0500, Bob Tennent <rdtennent@tennent.ca> wrote:
> > Can someone who understands how this reverse-tunnel process
> > should be working please explain what I need to do?

> I run sshd listening to port 59385 to avoid the brute force attacks filling logs
> with failed attempts. Note that you need to setup the ssh keys to work with public
> keys only. No password...

Heh, my former security software employer blocked non-default outgoing
ports but kept the default 22 open.
--
It's too dark already. Can we please stick with daylight saving forever? :(
Note: A fixed width font (Courier, Monospace, etc.) is required to see this signature correctly.
/\___/\ Ant(Dude) @ http://aqfl.net & http://antfarm.home.dhs.org.
/ /\ /\ \ Please nuke ANT if replying by e-mail.
| |o o| |
\ _ /
( )

Re: incoming ssh blocked by ISP

<slrnsohdo8.3kjg2.BitTwister@wb.home.test>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=251&group=comp.os.linux.networking#251

  copy link   Newsgroups: comp.os.linux.networking
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: BitTwis...@mouse-potato.com (Bit Twister)
Newsgroups: comp.os.linux.networking
Subject: Re: incoming ssh blocked by ISP
Date: Sun, 7 Nov 2021 23:35:03 -0600
Organization: A noiseless patient Spider
Lines: 18
Message-ID: <slrnsohdo8.3kjg2.BitTwister@wb.home.test>
References: <sm66vk$hvp$1@dont-email.me> <sm6af0$sst$1@dont-email.me>
<sm6sb6$kru$1@dont-email.me> <op.1cghyouwa3w0dxdave@hodgins.homeip.net>
<op.1cgh5ikqa3w0dxdave@hodgins.homeip.net> <sm7bnj$i4u$1@dont-email.me>
<sm9g0b$10a$1@dont-email.me> <sm9tsc$u1a$1@dont-email.me>
<op.1cio1bpna3w0dxdave@hodgins.homeip.net>
Injection-Info: reader02.eternal-september.org; posting-host="5ab66b73c13937d1074f20c019cff029";
logging-data="18600"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19b8u7KpoRzZn2Sm1EkpCt/ikHQGno4We4="
User-Agent: slrn/1.0.3 (Linux)
Cancel-Lock: sha1:IKlJqxOHndJjuSI9A//l6lAmyFw=
 by: Bit Twister - Mon, 8 Nov 2021 05:35 UTC

On Sun, 07 Nov 2021 21:25:49 -0500, David W. Hodgins wrote:
> On Sun, 07 Nov 2021 20:18:04 -0500, Bob Tennent <rdtennent@tennent.ca> wrote:
>> It's occurred to me that on AWS, the relevant user is ubuntu
>> but on jimmy, it's rdt. When I (i.e., rdt) ssh to AWS, my
>> .ssh/config file specifies that the User is ubuntu. Where do
>> I (as ubuntu) specify on AWS that the relevant user on jimmy
>> is rdt? Executing
>> ssh localhost -p 8081 -l rdt
>> doesn't seem to make a difference.
>
> Specify the user etc in ~/.ssh/config.
> In /home/rdt/.ssh/config the user will be ubuntu.
> In /home/ubuntu.ssh/config the user will be rdt.
>

Remember to set ~/.ssh permissions
chmod 700 ~/.ssh
chmod 600 ~/.ssh/*

Re: incoming ssh blocked by ISP

<smbdj1$5eh$1@dont-email.me>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=252&group=comp.os.linux.networking#252

  copy link   Newsgroups: comp.os.linux.networking
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: joebeanf...@nospam.duh (Joe Beanfish)
Newsgroups: comp.os.linux.networking
Subject: Re: incoming ssh blocked by ISP
Date: Mon, 8 Nov 2021 14:52:17 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 17
Message-ID: <smbdj1$5eh$1@dont-email.me>
References: <sm66vk$hvp$1@dont-email.me>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Mon, 8 Nov 2021 14:52:17 -0000 (UTC)
Injection-Info: reader02.eternal-september.org; posting-host="265545293467e7d6666c6ef5c7eb6834";
logging-data="5585"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+hkvVbllbHplxq0GMEHhW3MfTRyizXZZk="
User-Agent: Pan/0.146 (Hic habitat felicitas; 8107378
git@gitlab.gnome.org:GNOME/pan.git)
Cancel-Lock: sha1:exbap/zM6FbLvxTNTAVEmhMUjGI=
 by: Joe Beanfish - Mon, 8 Nov 2021 14:52 UTC

On Sat, 06 Nov 2021 15:28:52 +0000, Bob Tennent wrote:

> Outgoing ssh works fine and sshd is active. It's not my
> firewall and I use ddclient and zoneedit.com to deal with my
> dynamic IP address.
>
> When I complain to Support at my ISP I'm told to pay for a
> static IP address. Is there any other solution? I'm not a
> networking expert. I do have login access to a server with a
> static IP address but it's not the system I'm trying to ssh
> into.

It might be a little fiddly to maintain, but you could setup
a tunnel from your dynamic IP host to the static server using
ssh -R. Then, whenever you want, you can ssh into the tunnel
port on the static server which will dump you into the dynamic
host.

Re: incoming ssh blocked by ISP

<slrnsonhco.43q.dan@djph.net>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=253&group=comp.os.linux.networking#253

  copy link   Newsgroups: comp.os.linux.networking
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: dan...@djph.net (Dan Purgert)
Newsgroups: comp.os.linux.networking
Subject: Re: incoming ssh blocked by ISP
Date: Wed, 10 Nov 2021 13:13:45 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 73
Message-ID: <slrnsonhco.43q.dan@djph.net>
References: <sm66vk$hvp$1@dont-email.me> <sm6af0$sst$1@dont-email.me>
<ep9j5ixftj.ln2@minas-tirith.valinor>
Injection-Date: Wed, 10 Nov 2021 13:13:45 -0000 (UTC)
Injection-Info: reader02.eternal-september.org; posting-host="40a0ffb46e989c94edf3f28e71448f44";
logging-data="29377"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18GU+KIEXfv7/eTmUIIk3AcKRVFVUHaleY="
User-Agent: slrn/1.0.3 (Linux)
Cancel-Lock: sha1:/Sujx06XGK2EG9ARFK1mMCdBYDc=
 by: Dan Purgert - Wed, 10 Nov 2021 13:13 UTC

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Carlos E. R. wrote:
> Or reverse ssh. I can not describe, I have not used it. Or a tunnel to
> some server out there.

Reverse-ssh is pretty nice, but would require a couple bucks a month to
say Linode (or Digital Ocean or any of the other VPS providers out
there).

It's been a little while since I've done this, so I might have an error
or two. Note that this requires sshd to be installed on the machine
behind CGNAT (I think it is, but...)

Hosts:
- PC-H --> the PC behind the CGNAT ISP
- VPS --> the intermediary VPS system
- Laptop --> the device we're carrying around / connecting from outside
with.

User accounts:
- dan@pc-h
- revssh@vps
- you@laptop

1. Setup the tunnel.
- As dan@pc-h, connect to the VPS with the command :
ssh -R 40022:localhost:22 revssh@vps

- This will open a connection to "revssh@vps". Leave it open, but
walk away from "PC-H" now.
- The port "40022" is arbitrary, it can be anything you like, that is
above 1024.
- The port "22" is the port that sshd is listening to on PC-H

2. Grab the laptop, and login to the VPS as normal (i.e. "ssh
revssh@vps".)
- Note: any valid account on the VPS will work for this step.

3. Test the tunnel from the VPS.
- Connect to the tunnel with "ssh -oPort=40022 dan@localhost"
- Authenticate with the proper ssh credentials (private key and/or
password, as appropriate) for the account "dan@pc-h"

4. You should now be sitting at your normal "dan@pc-h" prompt. Use PC-H
as normal, or jump to other hosts on your LAN, as necessary.

HTH :)

-----BEGIN PGP SIGNATURE-----

iQIzBAEBCgAdFiEE3asj+xn6fYUcweBnbWVw5UznKGAFAmGLxZYACgkQbWVw5Uzn
KGCV6hAAkax/PjOZol2Gat6KyjN4g+esTsR3n1oND4fHMHC59vSz8oH4/GCtWEim
x5gS1pUzSBSYdT/KoIqw/krIDr/01tjcA6QWToP/nnwFVIjupKsRP5eTEnGdFacr
ksQiLi+JHRRFMWIYYzgNNGIQc4GEgeR6XTXBJHmNIlooKw86tyP7SS/14ZL+P2su
7RagkMvGE6S5ukgiCrjUKJq/O+8WV3Kln3LK9EjhggcPUQCCFCDP+teFWTMbv8tL
miNO2+jpH8wibOotazoKqb3gwtb4ojUniG2KvNgw09Q2/00OeUURbMHpZrDqmhsO
mtUMZV2Fx4p3xm2/PBGI4eVBfV8w1FEcUqJ4zwc2PyD6X6sWk8xUfTV3PmN4w5Rs
3fC91kz0X9G0tTvG3KLOZtiHAQOHbd3aYLeujiY/zSKPeNPhdoEUc11ahnqtOje5
mXfLAetF1TUYTj91X9DTajXC11bDWuKt0avZ3nA2GlAT6laSlvtqJhpXd/2JOkOJ
yE4XVehRSLxP/hK7+rrBImmiNX6lE/K/XCunOf5UuaabctyVwWSmvUVilLus3duN
LykYLg81KF9j8YDOKsPsmDL5j3CAzCFj1bk6+XUL/OYv8pYUYb8tdAh7SzaNiypZ
YrJeZw1OOq6EARLkDU6SJUMKjY2ce0F7bgZKaKcrxt1btSg8HNE=
=Tl56
-----END PGP SIGNATURE-----

--
|_|O|_| Github: https://github.com/dpurgert
|_|_|O| PGP: DDAB 23FB 19FA 7D85 1CC1 E067 6D65 70E5 4CE7 2860
|O|O|O| Former PGP: 05CA 9A50 3F2E 1335 4DC5 4AEE 8E11 DDF3 1279 A281

Re: incoming ssh blocked by ISP

<smrea0$cf$1@dont-email.me>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=256&group=comp.os.linux.networking#256

  copy link   Newsgroups: comp.os.linux.networking
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: rdtenn...@tennent.ca (Bob Tennent)
Newsgroups: comp.os.linux.networking
Subject: Re: incoming ssh blocked by ISP
Date: Sun, 14 Nov 2021 16:42:41 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 27
Message-ID: <smrea0$cf$1@dont-email.me>
References: <sm66vk$hvp$1@dont-email.me> <smbdj1$5eh$1@dont-email.me>
Reply-To: rdtennent@gmail.com
Injection-Date: Sun, 14 Nov 2021 16:42:41 -0000 (UTC)
Injection-Info: reader02.eternal-september.org; posting-host="54ac4015f4cd3325f5c0fa065d67a3b0";
logging-data="399"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX191j7I8/WI+WfWNyIMFryPpEqSFElU04Lo="
User-Agent: slrn/1.0.3 (Linux)
Cancel-Lock: sha1:kXJekS2Ax/VLcFogHx8896fuAEE=
 by: Bob Tennent - Sun, 14 Nov 2021 16:42 UTC

On Mon, 8 Nov 2021 14:52:17 -0000 (UTC), Joe Beanfish wrote:
> On Sat, 06 Nov 2021 15:28:52 +0000, Bob Tennent wrote:
>
>> Outgoing ssh works fine and sshd is active. It's not my
>> firewall and I use ddclient and zoneedit.com to deal with my
>> dynamic IP address.
>>
>> When I complain to Support at my ISP I'm told to pay for a
>> static IP address. Is there any other solution? I'm not a
>> networking expert. I do have login access to a server with a
>> static IP address but it's not the system I'm trying to ssh
>> into.
>
> It might be a little fiddly to maintain, but you could setup
> a tunnel from your dynamic IP host to the static server using
> ssh -R. Then, whenever you want, you can ssh into the tunnel
> port on the static server which will dump you into the dynamic
> host.

As suggested by you and others, I've been able to set up
a reverse ssh tunnel and can make it persistent by using
autossh.

But why does the original ssh connection die after about 10
minutes of inactivity (and have to be renewed by autossh)?
Is this a security feature on the server and beyond my
control (I don't have superuser privileges)?

Re: incoming ssh blocked by ISP

<20211114180126.593b5722@ryz>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=257&group=comp.os.linux.networking#257

  copy link   Newsgroups: comp.os.linux.networking
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: mo0...@posteo.de (Marco Moock)
Newsgroups: comp.os.linux.networking
Subject: Re: incoming ssh blocked by ISP
Date: Sun, 14 Nov 2021 18:01:26 +0100
Organization: A noiseless patient Spider
Lines: 9
Message-ID: <20211114180126.593b5722@ryz>
References: <sm66vk$hvp$1@dont-email.me>
<smbdj1$5eh$1@dont-email.me>
<smrea0$cf$1@dont-email.me>
Mime-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Injection-Info: reader02.eternal-september.org; posting-host="c10650f58ab76761026a12050c4a1381";
logging-data="12536"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/ZL2jNCa8CJ1tu/hTX8Mbd"
Cancel-Lock: sha1:RK++UI7dh61H4I9b+wmAM6VoSw0=
X-Newsreader: Claws Mail 3.17.8 (GTK+ 2.24.33; x86_64-pc-linux-gnu)
 by: Marco Moock - Sun, 14 Nov 2021 17:01 UTC

Am Sun, 14 Nov 2021 16:42:41 -0000 (UTC)
schrieb Bob Tennent <rdtennent@tennent.ca>:

> But why does the original ssh connection die after about 10
> minutes of inactivity (and have to be renewed by autossh)?
> Is this a security feature on the server and beyond my
> control (I don't have superuser privileges)?
It is a security feature, like locking your screen after some minutes.

Re: incoming ssh blocked by ISP

<op.1cu0nwawa3w0dxdave@hodgins.homeip.net>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=258&group=comp.os.linux.networking#258

  copy link   Newsgroups: comp.os.linux.networking
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: dwhodg...@nomail.afraid.org (David W. Hodgins)
Newsgroups: comp.os.linux.networking
Subject: Re: incoming ssh blocked by ISP
Date: Sun, 14 Nov 2021 13:08:10 -0500
Organization: A noiseless patient Spider
Lines: 13
Message-ID: <op.1cu0nwawa3w0dxdave@hodgins.homeip.net>
References: <sm66vk$hvp$1@dont-email.me> <smbdj1$5eh$1@dont-email.me>
<smrea0$cf$1@dont-email.me>
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed; delsp=yes
Content-Transfer-Encoding: 8bit
Injection-Info: reader02.eternal-september.org; posting-host="282fcabeec8775eb112741a86d5f1c90";
logging-data="3894"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/b2UzjhUZjsAjZDCvB8w6GpRW+tQwrly8="
User-Agent: Opera Mail/12.16 (Linux)
Cancel-Lock: sha1:xWwseby2ulOXmHuplRRQ2D4hrPQ=
 by: David W. Hodgins - Sun, 14 Nov 2021 18:08 UTC

On Sun, 14 Nov 2021 11:42:41 -0500, Bob Tennent <rdtennent@tennent.ca> wrote:
> But why does the original ssh connection die after about 10
> minutes of inactivity (and have to be renewed by autossh)?
> Is this a security feature on the server and beyond my
> control (I don't have superuser privileges)?

That's why I put a line with ServerAliveInterval 120 in the stanza for the host in
~/.ssh/config

With that, autossh should only be needed to re-establish the link if the connection
drops for any reason, such as the remote system being rebooted.

Regards, Dave Hodgins

Re: incoming ssh blocked by ISP

<smrnih$7ic$1@dont-email.me>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=259&group=comp.os.linux.networking#259

  copy link   Newsgroups: comp.os.linux.networking
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: rdtenn...@tennent.ca (Bob Tennent)
Newsgroups: comp.os.linux.networking
Subject: Re: incoming ssh blocked by ISP
Date: Sun, 14 Nov 2021 19:20:49 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 18
Message-ID: <smrnih$7ic$1@dont-email.me>
References: <sm66vk$hvp$1@dont-email.me> <smbdj1$5eh$1@dont-email.me>
<smrea0$cf$1@dont-email.me> <op.1cu0nwawa3w0dxdave@hodgins.homeip.net>
Reply-To: rdtennent@gmail.com
Injection-Date: Sun, 14 Nov 2021 19:20:49 -0000 (UTC)
Injection-Info: reader02.eternal-september.org; posting-host="54ac4015f4cd3325f5c0fa065d67a3b0";
logging-data="7756"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/TcyR+h+FBAYDT+As/3U3fkIU49k2SaH4="
User-Agent: slrn/1.0.3 (Linux)
Cancel-Lock: sha1:uzRNrt/wBJ87tFD9d3mYaw3tjmY=
 by: Bob Tennent - Sun, 14 Nov 2021 19:20 UTC

On Sun, 14 Nov 2021 13:08:10 -0500, David W. Hodgins wrote:
> On Sun, 14 Nov 2021 11:42:41 -0500, Bob Tennent <rdtennent@tennent.ca> wrote:
>> But why does the original ssh connection die after about 10
>> minutes of inactivity (and have to be renewed by autossh)?
>> Is this a security feature on the server and beyond my
>> control (I don't have superuser privileges)?
>
> That's why I put a line with ServerAliveInterval 120 in
> the stanza for the host in ~/.ssh/config
>
> With that, autossh should only be needed to re-establish
> the link if the connection drops for any reason, such as
> the remote system being rebooted.

Since I'm using ssh -R , it's not clear to me which
system should get that configuration option.

Re: incoming ssh blocked by ISP

<op.1cu54d0ca3w0dxdave@hodgins.homeip.net>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=260&group=comp.os.linux.networking#260

  copy link   Newsgroups: comp.os.linux.networking
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: dwhodg...@nomail.afraid.org (David W. Hodgins)
Newsgroups: comp.os.linux.networking
Subject: Re: incoming ssh blocked by ISP
Date: Sun, 14 Nov 2021 15:06:03 -0500
Organization: A noiseless patient Spider
Lines: 35
Message-ID: <op.1cu54d0ca3w0dxdave@hodgins.homeip.net>
References: <sm66vk$hvp$1@dont-email.me> <smbdj1$5eh$1@dont-email.me>
<smrea0$cf$1@dont-email.me> <op.1cu0nwawa3w0dxdave@hodgins.homeip.net>
<smrnih$7ic$1@dont-email.me>
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed; delsp=yes
Content-Transfer-Encoding: 8bit
Injection-Info: reader02.eternal-september.org; posting-host="282fcabeec8775eb112741a86d5f1c90";
logging-data="23867"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+5HpULshVZVLVNgf/CZ8JkusLIw8gRPXE="
User-Agent: Opera Mail/12.16 (Linux)
Cancel-Lock: sha1:ejMP4PST4IZcBl+3qXgC2pOvMvY=
 by: David W. Hodgins - Sun, 14 Nov 2021 20:06 UTC

On Sun, 14 Nov 2021 14:20:49 -0500, Bob Tennent <rdtennent@tennent.ca> wrote:
> > That's why I put a line with ServerAliveInterval 120 in
> > the stanza for the host in ~/.ssh/config
> >
> > With that, autossh should only be needed to re-establish
> > the link if the connection drops for any reason, such as
> > the remote system being rebooted.
>
> Since I'm using ssh -R , it's not clear to me which
> system should get that configuration option.

Both systems. Also on both I have sshd running with ...
# grep -v -e ^'#' -e ^$ /etc/ssh/sshd_config
Port 59385
AddressFamily inet
Protocol 2
HostKey /etc/ssh/ssh_host_rsa_key
HostKey /etc/ssh/ssh_host_dsa_key
LogLevel VERBOSE
PermitRootLogin without-password
AuthorizedKeysFile .ssh/authorized_keys
PasswordAuthentication no
UsePAM yes
AcceptEnv LANG LC_CTYPE LC_NUMERIC LC_TIME LC_COLLATE LC_MONETARY LC_MESSAGES
AcceptEnv LC_PAPER LC_NAME LC_ADDRESS LC_TELEPHONE LC_MEASUREMENT
AcceptEnv LC_IDENTIFICATION LC_ALL
GatewayPorts yes
X11Forwarding yes
ClientAliveInterval 45
PermitTunnel yes
Subsystem sftp /usr/libexec/openssh/sftp-server

Note the ClientAliveInterval setting.

Regards, Dave Hodgins

Re: incoming ssh blocked by ISP

<smrtif$3hh$1@dont-email.me>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=261&group=comp.os.linux.networking#261

  copy link   Newsgroups: comp.os.linux.networking
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: rdtenn...@tennent.ca (Bob Tennent)
Newsgroups: comp.os.linux.networking
Subject: Re: incoming ssh blocked by ISP
Date: Sun, 14 Nov 2021 21:03:12 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 38
Message-ID: <smrtif$3hh$1@dont-email.me>
References: <sm66vk$hvp$1@dont-email.me> <smbdj1$5eh$1@dont-email.me>
<smrea0$cf$1@dont-email.me> <op.1cu0nwawa3w0dxdave@hodgins.homeip.net>
<smrnih$7ic$1@dont-email.me> <op.1cu54d0ca3w0dxdave@hodgins.homeip.net>
Reply-To: rdtennent@gmail.com
Injection-Date: Sun, 14 Nov 2021 21:03:12 -0000 (UTC)
Injection-Info: reader02.eternal-september.org; posting-host="54ac4015f4cd3325f5c0fa065d67a3b0";
logging-data="3633"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18WiJBO+q3voqM90sU+CKpwMte/fS87W6s="
User-Agent: slrn/1.0.3 (Linux)
Cancel-Lock: sha1:UEefp5U6fkbe6ZcSsJtuY5vBRGw=
 by: Bob Tennent - Sun, 14 Nov 2021 21:03 UTC

On Sun, 14 Nov 2021 15:06:03 -0500, David W. Hodgins wrote:
> On Sun, 14 Nov 2021 14:20:49 -0500, Bob Tennent <rdtennent@tennent.ca> wrote:
>> > That's why I put a line with ServerAliveInterval 120 in
>> > the stanza for the host in ~/.ssh/config
>> >
>> > With that, autossh should only be needed to re-establish
>> > the link if the connection drops for any reason, such as
>> > the remote system being rebooted.
>>
>> Since I'm using ssh -R , it's not clear to me which
>> system should get that configuration option.
>
> Both systems. Also on both I have sshd running with ...
> # grep -v -e ^'#' -e ^$ /etc/ssh/sshd_config
> Port 59385
> AddressFamily inet
> Protocol 2
> HostKey /etc/ssh/ssh_host_rsa_key
> HostKey /etc/ssh/ssh_host_dsa_key
> LogLevel VERBOSE
> PermitRootLogin without-password
> AuthorizedKeysFile .ssh/authorized_keys
> PasswordAuthentication no
> UsePAM yes
> AcceptEnv LANG LC_CTYPE LC_NUMERIC LC_TIME LC_COLLATE LC_MONETARY LC_MESSAGES
> AcceptEnv LC_PAPER LC_NAME LC_ADDRESS LC_TELEPHONE LC_MEASUREMENT
> AcceptEnv LC_IDENTIFICATION LC_ALL
> GatewayPorts yes
> X11Forwarding yes
> ClientAliveInterval 45
> PermitTunnel yes
> Subsystem sftp /usr/libexec/openssh/sftp-server
>
> Note the ClientAliveInterval setting.

Thanks. Unfortunately, I don't have su privileges on the
server system and hence can't edit /etc/ssh/sshd_config.

Re: incoming ssh blocked by ISP

<op.1cu9w3n5a3w0dxdave@hodgins.homeip.net>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=262&group=comp.os.linux.networking#262

  copy link   Newsgroups: comp.os.linux.networking
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: dwhodg...@nomail.afraid.org (David W. Hodgins)
Newsgroups: comp.os.linux.networking
Subject: Re: incoming ssh blocked by ISP
Date: Sun, 14 Nov 2021 16:28:05 -0500
Organization: A noiseless patient Spider
Lines: 16
Message-ID: <op.1cu9w3n5a3w0dxdave@hodgins.homeip.net>
References: <sm66vk$hvp$1@dont-email.me> <smbdj1$5eh$1@dont-email.me>
<smrea0$cf$1@dont-email.me> <op.1cu0nwawa3w0dxdave@hodgins.homeip.net>
<smrnih$7ic$1@dont-email.me> <op.1cu54d0ca3w0dxdave@hodgins.homeip.net>
<smrtif$3hh$1@dont-email.me>
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed; delsp=yes
Content-Transfer-Encoding: 8bit
Injection-Info: reader02.eternal-september.org; posting-host="282fcabeec8775eb112741a86d5f1c90";
logging-data="9779"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19D9N2bevbZ+3WsqHz5Fhlu6ZpWYcjQVGc="
User-Agent: Opera Mail/12.16 (Linux)
Cancel-Lock: sha1:Kr01+MHztjoNQcT3SsUZovfwxKI=
 by: David W. Hodgins - Sun, 14 Nov 2021 21:28 UTC

On Sun, 14 Nov 2021 16:03:12 -0500, Bob Tennent <rdtennent@tennent.ca> wrote:
> On Sun, 14 Nov 2021 15:06:03 -0500, David W. Hodgins wrote:
> > Note the ClientAliveInterval setting.

> Thanks. Unfortunately, I don't have su privileges on the
> server system and hence can't edit /etc/ssh/sshd_config.

It defaults to 15 seconds with ClientAliveCountMax defaulting to 3, meaning the
connection will drop after 45 seconds of inactivity.

To avoid having it drop set the ServerAliveInterval to 40 or less. The lower the
number the more overhead an inactive ssh connection generates.

Regards, Dave Hodgins

Re: incoming ssh blocked by ISP

<O9OdnQuQLJ55rg_8nZ2dnUU7-c-dnZ2d@earthlink.com>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=263&group=comp.os.linux.networking#263

  copy link   Newsgroups: comp.os.linux.networking
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!news.misty.com!border2.nntp.dca1.giganews.com!nntp.giganews.com!buffer2.nntp.dca1.giganews.com!buffer1.nntp.dca1.giganews.com!nntp.earthlink.com!news.earthlink.com.POSTED!not-for-mail
NNTP-Posting-Date: Mon, 15 Nov 2021 04:18:12 -0600
From: ant...@zimage.comANT (Ant)
Subject: Re: incoming ssh blocked by ISP
Newsgroups: comp.os.linux.networking
References: <sm66vk$hvp$1@dont-email.me> <smbdj1$5eh$1@dont-email.me> <smrea0$cf$1@dont-email.me>
User-Agent: tin/2.4.5-20201224 ("Glen Albyn") (Linux/5.10.19-200.fc33.x86_64 (x86_64))
Message-ID: <O9OdnQuQLJ55rg_8nZ2dnUU7-c-dnZ2d@earthlink.com>
Date: Mon, 15 Nov 2021 04:18:12 -0600
Lines: 16
X-Usenet-Provider: http://www.giganews.com
NNTP-Posting-Host: 47.180.143.226
X-Trace: sv3-o4wqi3Xy78L9tsBOqatpnwUALWpokZ+Te88CaW4F6DUPXjOQLhc2zjQT5/uJNwdpIwLq3dfSu0XQKKz!rWG+tl7AaqX9bWITsBnq4ZANjA/AN9U+oz5VQpY7u2erebZAMwnNP3KxblMMLgT77+QqzimDfNua!LmuTud71EWb0/VtZJMOBY5bwSiqAtlzc
X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers
X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly
X-Postfilter: 1.3.40
X-Original-Bytes: 1700
 by: Ant - Mon, 15 Nov 2021 10:18 UTC

Bob Tennent <rdtennent@tennent.ca> wrote:
....
> But why does the original ssh connection die after about 10
> minutes of inactivity (and have to be renewed by autossh)?
> Is this a security feature on the server and beyond my
> control (I don't have superuser privileges)?

Enable the keep alive option in your SSH client.
--
It's summer again! Weather and life are loco! Being old sucks. :(
Note: A fixed width font (Courier, Monospace, etc.) is required to see this signature correctly.
/\___/\ Ant(Dude) @ http://aqfl.net & http://antfarm.home.dhs.org.
/ /\ /\ \ Please nuke ANT if replying by e-mail.
| |o o| |
\ _ /
( )

Re: incoming ssh blocked by ISP

<O9OdnQqQLJ6GqQ_8nZ2dnUU7-c-dnZ2d@earthlink.com>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=264&group=comp.os.linux.networking#264

  copy link   Newsgroups: comp.os.linux.networking
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!news.misty.com!border2.nntp.dca1.giganews.com!nntp.giganews.com!buffer2.nntp.dca1.giganews.com!nntp.earthlink.com!news.earthlink.com.POSTED!not-for-mail
NNTP-Posting-Date: Mon, 15 Nov 2021 04:19:07 -0600
From: ant...@zimage.comANT (Ant)
Subject: Re: incoming ssh blocked by ISP
Newsgroups: comp.os.linux.networking
References: <sm66vk$hvp$1@dont-email.me> <smbdj1$5eh$1@dont-email.me> <smrea0$cf$1@dont-email.me> <op.1cu0nwawa3w0dxdave@hodgins.homeip.net> <smrnih$7ic$1@dont-email.me> <op.1cu54d0ca3w0dxdave@hodgins.homeip.net> <smrtif$3hh$1@dont-email.me> <op.1cu9w3n5a3w0dxdave@hodgins.homeip.net>
User-Agent: tin/2.4.5-20201224 ("Glen Albyn") (Linux/5.10.19-200.fc33.x86_64 (x86_64))
Message-ID: <O9OdnQqQLJ6GqQ_8nZ2dnUU7-c-dnZ2d@earthlink.com>
Date: Mon, 15 Nov 2021 04:19:07 -0600
Lines: 23
X-Usenet-Provider: http://www.giganews.com
NNTP-Posting-Host: 47.180.143.226
X-Trace: sv3-sZfLEZrhOz6ablXDTvx6s9OsIOdycrcusSQgPYgibqB++epOGNmYWkEPocjKn9gvXXMPBwCHfpDEyUi!I+Jg7eKphRrGJlYg9rhQKPyoinOH71ZeIB7Ww1XknTfka0ukh0O0w4sbeke9ILUZUZzZUTQnQfPz!8OyzZO++MGhbjFnGppVhg9SkuTIeHRYy
X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers
X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly
X-Postfilter: 1.3.40
X-Original-Bytes: 2283
 by: Ant - Mon, 15 Nov 2021 10:19 UTC

David W. Hodgins <dwhodgins@nomail.afraid.org> wrote:
> On Sun, 14 Nov 2021 16:03:12 -0500, Bob Tennent <rdtennent@tennent.ca> wrote:
> > On Sun, 14 Nov 2021 15:06:03 -0500, David W. Hodgins wrote:
> > > Note the ClientAliveInterval setting.

> > Thanks. Unfortunately, I don't have su privileges on the
> > server system and hence can't edit /etc/ssh/sshd_config.

> It defaults to 15 seconds with ClientAliveCountMax defaulting to 3, meaning the
> connection will drop after 45 seconds of inactivity.

> To avoid having it drop set the ServerAliveInterval to 40 or less. The lower the
> number the more overhead an inactive ssh connection generates.

Interesting. I always wondered why the values were so low.
--
It's summer again! Weather and life are loco! Being old sucks. :(
Note: A fixed width font (Courier, Monospace, etc.) is required to see this signature correctly.
/\___/\ Ant(Dude) @ http://aqfl.net & http://antfarm.home.dhs.org.
/ /\ /\ \ Please nuke ANT if replying by e-mail.
| |o o| |
\ _ /
( )

Re: incoming ssh blocked by ISP

<smufa3$ses$1@dont-email.me>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=265&group=comp.os.linux.networking#265

  copy link   Newsgroups: comp.os.linux.networking
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: unr...@invalid.ca (William Unruh)
Newsgroups: comp.os.linux.networking
Subject: Re: incoming ssh blocked by ISP
Date: Mon, 15 Nov 2021 20:18:11 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 19
Message-ID: <smufa3$ses$1@dont-email.me>
References: <sm66vk$hvp$1@dont-email.me> <smbdj1$5eh$1@dont-email.me>
<smrea0$cf$1@dont-email.me> <op.1cu0nwawa3w0dxdave@hodgins.homeip.net>
<smrnih$7ic$1@dont-email.me> <op.1cu54d0ca3w0dxdave@hodgins.homeip.net>
<smrtif$3hh$1@dont-email.me> <op.1cu9w3n5a3w0dxdave@hodgins.homeip.net>
<O9OdnQqQLJ6GqQ_8nZ2dnUU7-c-dnZ2d@earthlink.com>
Injection-Date: Mon, 15 Nov 2021 20:18:11 -0000 (UTC)
Injection-Info: reader02.eternal-september.org; posting-host="e6f886af78457eb1b2a08f11fee4766d";
logging-data="29148"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/pt3Q6uBoqRx2NLUgvdFOl"
User-Agent: slrn/1.0.3 (Linux)
Cancel-Lock: sha1:BzJFHAknb8lJyMmc5VT6CI4wPj8=
 by: William Unruh - Mon, 15 Nov 2021 20:18 UTC

On 2021-11-15, Ant <ant@zimage.comANT> wrote:
> David W. Hodgins <dwhodgins@nomail.afraid.org> wrote:
>> On Sun, 14 Nov 2021 16:03:12 -0500, Bob Tennent <rdtennent@tennent.ca> wrote:
>> > On Sun, 14 Nov 2021 15:06:03 -0500, David W. Hodgins wrote:
>> > > Note the ClientAliveInterval setting.
>
>> > Thanks. Unfortunately, I don't have su privileges on the
>> > server system and hence can't edit /etc/ssh/sshd_config.
>
>> It defaults to 15 seconds with ClientAliveCountMax defaulting to 3, meaning the
>> connection will drop after 45 seconds of inactivity.
>
>> To avoid having it drop set the ServerAliveInterval to 40 or less. The lower the
>> number the more overhead an inactive ssh connection generates.
>
> Interesting. I always wondered why the values were so low.

When connections were 300Bd I can see this being a concern. With 1Gb/sec
connection, that overhead is surely completely trivial.

Pages:12
server_pubkey.txt

rocksolid light 0.9.8
clearnet tor