GearHack

: :

Add Comment | Related Links | TrackBack
Related Content

Allowing SSH Through tinyproxy

Recently, I sat-up an OpenVPN Linux server, so that I can get into my internal network from anywhere. In addition to the OpenVPN, I ran tinyproxy--a light-weight HTTP proxy daemon--on this server to provide the routing between the internal and external network. However, when I attempted to access another one of my internal Linux server through SSH, I got the following error message:

Proxy could not open connnection to [SERVER]:  Access violation
ssh_exchange_identification: Connection closed by remote host

After tinkering around with tinyproxy for a bit, I found out that tinyproxy, by default, disallowed most ports from using the CONNECT method. The only two ports it allows in the tinyproxy.conf file is the following:

  ConnectPort 443
ConnectPort 563

So you can add port 22 to that list for SSH. And you can add additional forwarding ports. However, if adding individual ports is a mess and you aren't concerned with security, you can comment out all of the "ConnectPort" settings. When you do, all ports are allowed by default.

Chieh Cheng
Tue, 07 Sep 2010 22:52:58 +0000

Thanks, I was trying to switch from using squid as an http proxy and this was tripping me up.

James
Mon, 13 Apr 2015 03:29:06 +0400

Add Comment | Related Links | TrackBack
Related Content

Did your message disappear? Read the Forums FAQ.

Add Comment

Spam Control | * indicates required field
Your Name: *
E-mail:
Remember Me!
Comment: *
File attachment is optional. Please do not attach a file to your submission unless it is relevent.
Attach File:
(20 MB Max)
Spam Protection: * Answer of 1 + 7?
Click button only once, please!

TrackBack

TrackBack only accepted from WebSite-X Suite web sites. Do not submit TrackBacks from other sites.

Send Ping | TrackBack URL | Spam Control

No TrackBacks yet. TrackBack can be used to link this thread to your weblog, or link your weblog to this thread. In addition, TrackBack can be used as a form of remote commenting. Rather than posting the comment directly on this thread, you can posts it on your own weblog. Then have your weblog sends a TrackBack ping to the TrackBack URL, so that your post would show up here.

Messages, files, and images copyright by respective owners.


Articles | Wiki
Forums | Latest | RSS
Library | Links | News
Search | Store | Help

151 Users Online

Hacking Digital Cameras
Fun for Photographers


Get Our

Memecoins!



Hacking Digital Cameras
Fun for Photographers

Amazon Associate

Copyright © 2004 - 2024. All Rights Reserved.