Using lynx with a proxy server - and ssh with -D <port>

Liste des GroupesRevenir à cu programmer 
Sujet : Using lynx with a proxy server - and ssh with -D <port>
De : gazelle (at) *nospam* shell.xmission.com (Kenny McCormack)
Groupes : comp.unix.programmer
Date : 10. Apr 2026, 16:02:05
Autres entêtes
Organisation : The official candy of the new Millennium
Message-ID : <10rb3dd$vpgd$1@news.xmission.com>
User-Agent : trn 4.0-test77 (Sep 1, 2010)
I'm trying to get lynx to use my host machine as a proxy server, because
certain sites don't work from my home IP address (Thanks to AI bots and
CloudFlare and other modern Internet BS!).

I think I have the lynx side right, but I'm not sure about the ssh side.

My reading of "man ssh" tells me that I should be able to do (on my local
machine):

    $ ssh -D 3281 <host>

and this should setup a SOCKS4/5 server on the host (as well as getting you
to a shell prompt on the host).

While that is running, I do (on my local machine):

    $ http_proxy=http://localhost:3281 lynx http://lists.gnu.org/archive/html/bug-gawk/2026-04/index.html

And I get (Note: I have verified with "lsof" that the "ssh" process is
listening on port 3281):

--- Cut Here ---
Looking up localhost:3281
Making HTTP connection to localhost:3281
Sending HTTP request.
HTTP request sent; waiting for response.
Alert!: Unexpected network read error; connection aborted.
Can't Access
`http://lists.gnu.org/archive/html/bug-gawk/2026-04/index.html'
Alert!: Unable to access document.

lynx: Can't access startfile
Status: 1
$
--- Cut Here ---

Just for completeness, I then logged out of the "ssh -D" connection (thus
removing the listening process on port 3281) and did it again:

--- Cut Here ---
    $ http_proxy=http://localhost:3281 lynx http://lists.gnu.org/archive/html/bug-gawk/2026-04/index.html

Looking up localhost:3281
Making HTTP connection to localhost:3281
Alert!: Unable to connect to remote host.

lynx: Can't access startfile
http://lists.gnu.org/archive/html/bug-gawk/2026-04/index.html
Status: 1
$
--- Cut Here ---

So, it is pretty clear that in the first case, it is finding something, but
failing to complete.  I think I am missing something in either the "ssh"
command or on the host machine.

Can anyone help?  Note that I got most of my info from digging into the
Lynx documentation (not the man page - the man page doesn't tell you much
other than to look in the Lynx Users Guide - which is an html file stored
in /usr/share/doc).  The "ssh" info came from "man ssh".

Note: It sounds like maybe I need to be running some kind of proxy server
(beyond what "ssh" provides) on the host; can anyone suggest one?

--
After Using Gender Slur Against AOC, GOP Rep. Yoyo Won't Apologize 'For Loving God'.

That's so sweet...

Date Sujet#  Auteur
10 Apr 26 * Using lynx with a proxy server - and ssh with -D <port>27Kenny McCormack
10 Apr 26 `* Re: Using lynx with a proxy server - and ssh with -D <port>26Adam Sampson
10 Apr 26  `* Re: Using lynx with a proxy server - and ssh with -D <port>25Kenny McCormack
10 Apr 26   +* Re: Using lynx with a proxy server - and ssh with -D <port>5Kalevi Kolttonen
10 Apr 26   i+* Re: Using lynx with a proxy server - and ssh with -D <port>3Kalevi Kolttonen
10 Apr 26   ii`* Re: Using lynx with a proxy server - and ssh with -D <port>2Lawrence D’Oliveiro
10 Apr 26   ii `- Re: Using lynx with a proxy server - and ssh with -D <port>1Kenny McCormack
10 Apr 26   i`- Re: Using lynx with a proxy server - and ssh with -D <port>1Kenny McCormack
10 Apr 26   `* Re: Using lynx with a proxy server - and ssh with -D <port>19Richard Kettlewell
10 Apr 26    `* Re: Using lynx with a proxy server - and ssh with -D <port>18Kenny McCormack
11 Apr 26     `* Re: Using lynx with a proxy server - and ssh with -D <port>17Richard Kettlewell
11 Apr 26      +* Re: Using lynx with a proxy server - and ssh with -D <port>7Kenny McCormack
11 Apr 26      i`* Re: Using lynx with a proxy server - and ssh with -D <port>6Richard Kettlewell
11 Apr 26      i +- Re: Using lynx with a proxy server - and ssh with -D <port>1Richard Kettlewell
11 Apr 26      i `* Re: Using lynx with a proxy server - and ssh with -D <port>4Kenny McCormack
11 Apr 26      i  `* Re: Using lynx with a proxy server - and ssh with -D <port>3Richard Kettlewell
12 Apr 26      i   `* Re: Using lynx with a proxy server - and ssh with -D <port>2Kenny McCormack
12 Apr 26      i    `- Re: Using lynx with a proxy server - and ssh with -D <port>1Richard Kettlewell
11 Apr 26      `* Re: Using lynx with a proxy server - and ssh with -D <port>9Kalevi Kolttonen
11 Apr 26       `* Re: Using lynx with a proxy server - and ssh with -D <port>8Kenny McCormack
11 Apr 26        `* Re: Using lynx with a proxy server - and ssh with -D <port>7Kalevi Kolttonen
12 Apr 26         `* Re: Using lynx with a proxy server - and ssh with -D <port>6Adam Sampson
12 Apr 26          `* Re: Using lynx with a proxy server - and ssh with -D <port>5Kenny McCormack
12 Apr 26           `* Re: Using lynx with a proxy server - and ssh with -D <port>4Kalevi Kolttonen
12 Apr 26            `* Re: Using lynx with a proxy server - and ssh with -D <port>3Kalevi Kolttonen
12 Apr 26             `* Re: Using lynx with a proxy server - and ssh with -D <port>2Kenny McCormack
12 Apr 26              `- Re: Using lynx with a proxy server - and ssh with -D <port>1Kenny McCormack

Haut de la page

Les messages affichés proviennent d'usenet.

NewsPortal