Sujet : Using lynx with a proxy server - and ssh with -D <port>
De : gazelle (at) *nospam* shell.xmission.com (Kenny McCormack)
Groupes : comp.unix.programmerDate : 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.htmlAnd 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.htmlLooking 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.htmlStatus: 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...
Haut de la page
Les messages affichés proviennent d'usenet.
NewsPortal