bryanpkc / corkscrew

A tool for tunneling SSH through HTTP proxies

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

authentication doesn't work with Squid basic auth

benapetr opened this issue · comments

Hello,

I am trying to use the auth option, but it doesn't work, unforunatelly, this is all I get, no more verbose errors:

petr.bena@MacBook:~/.ssh$ corkscrew vpn.insw.cz 80 test 1 proxy
Proxy could not open connnection to test:  Proxy Authentication Required

When I try to connect for example via firefox or any other SW that ask me for proxy credentials, I just give it user and password that is written on first line in file "proxy" and it works.

I created that file as instructed it has this format:

user:password

Here are logs from squid:

1596020825.809      0 xx TCP_DENIED/407 3848 CONNECT test:1 - HIER_NONE/- text/html
1596020828.311      0 xx TCP_DENIED/407 3848 CONNECT test:1 - HIER_NONE/- text/html
1596020848.908      0 xx TCP_DENIED/407 3859 CONNECT test:80 - HIER_NONE/- text/html
1596020852.252      0 xx TCP_DENIED/407 3878 CONNECT test:443 - HIER_NONE/- text/html

I figured it out - password was too long, creating user with shorter password worked