Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.user > #226996

Securing local host of reverse SSH tunnel?

From Nate Bargmann <n0nb@n0nb.us>
Newsgroups linux.debian.user
Subject Securing local host of reverse SSH tunnel?
Date 2020-09-15 14:00 +0200
Message-ID <APhMS-6T1-3@gated-at.bofh.it> (permalink)
Organization Amateur Radio!

Show all headers | View raw


[Multipart message — attachments visible in raw view] - view raw

Hi All.

I am going to be deploying a Debian system at a location where I am
unsure if I can make any inbound connection into that system.  I am
going to set up an SSH tunnel from that system to a host in my LAN.
What I am concerned about is the remote possibility of theft and
therefore exposing my LAN to an inbound connection where a shell prompt
can be obtained.  I will be setting up a private/public key pair.  My
plan is to SSH into the internal host and then initiate an SSH
connection to the defined port and ultimately log into the remote
system.

The site is physically secure, but ...  While I understand that at the
remote end I can instruct the SSH client not to request a pseudo tty, if
a thief has the private key, all he needs to do is initiate a connection
and get a shell prompt on my internal host (due to being run from a
startup script, the private key cannot be password protected, or can
it?).

What I would like to do is in some way configure the ssh daemon on my
internal host to not allow any access other than allocating the port for
the reverse connection.  Ideally, this restriction should be based on
the public key of the pair but I've not seen in sshd_config(5) a way for
the Match directive to use the public key as its trigger.

If there is another way, I've yet to find it.

TIA

- Nate

-- 

"The optimist proclaims that we live in the best of all
possible worlds.  The pessimist fears this is true."

Web: https://www.n0nb.us
Projects: https://github.com/N0NB
GPG fingerprint: 82D6 4F6B 0E67 CD41 F689 BBA6 FB2C 5130 D55A 8819

Back to linux.debian.user | Previous | Next — Next in thread | Find similar | Unroll thread


Thread

Securing local host of reverse SSH tunnel? Nate Bargmann <n0nb@n0nb.us> - 2020-09-15 14:00 +0200
  Re: Securing local host of reverse SSH tunnel? Dan Ritter <dsr@randomstring.org> - 2020-09-15 14:20 +0200
  Re: Securing local host of reverse SSH tunnel? echo test <echotest09@gmail.com> - 2020-09-15 14:40 +0200
  Re: Securing local host of reverse SSH tunnel? Fabrice BAUZAC-STEHLY <noon@mykolab.com> - 2020-09-15 21:00 +0200
    Re: Securing local host of reverse SSH tunnel? Alex Mestiashvili <amestia@rsh2.donotuse.de> - 2020-09-16 19:10 +0200
      Re: Securing local host of reverse SSH tunnel? Nate Bargmann <n0nb@n0nb.us> - 2020-09-17 01:30 +0200
        Re: Securing local host of reverse SSH tunnel? Alex Mestiashvili <amestia@rsh2.donotuse.de> - 2020-09-22 10:30 +0200
    Re: Securing local host of reverse SSH tunnel? Nate Bargmann <n0nb@n0nb.us> - 2020-09-17 20:40 +0200

csiph-web