Git Product home page Git Product logo

corkscrew's People

Contributors

bryanpkc avatar cslauritsen avatar hathagat avatar xowap avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

corkscrew's Issues

authentication doesn't work with Squid basic auth

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

Corkscrew eats 100% of CPU

Hello,
thank you for your time for Corkscrew development. Very useful tool.
Seems, that I found a small bug.
Corkscrew eats 100% of CPU when ssh server unavailable by network problems. There is happens when I receive similar error message from proxy server:
Gateway Timeout
ssh_exchange_identification: Connection closed by remote host

Seems that corkscrew trys reconnecting without any pause, causing proxy flood.

$ corkscrew --help
corkscrew 2.0 ([email protected])
From official repositoies of Ubuntu 18.04

Connection closed by UNKNOWN port 65535

Hi,

I get stuck in ssh proxy, appreciate for help.

1 OS platform

  • macOS 13.5
  • arch 6.4.10

2 corkscrew ver

2.0

3 ssh config

❯ cat .ssh/config

# my-github
Host github.com
	Hostname github.com
	IdentityFile ~/.ssh/my_github
	User [email protected]
    ProxyCommand corkscrew 127.0.0.1 7890 %h %p

4 ssh error

4.1 ssh -T

❯ ssh -T [email protected]

kex_exchange_identification: Connection closed by remote host
Connection closed by UNKNOWN port 65535

4.2 ssh -v

❯ ssh -v [email protected]

OpenSSH_9.0p1, LibreSSL 3.3.6
debug1: Reading configuration data /Users/dingrui/.ssh/config
debug1: /Users/dingrui/.ssh/config line 2: Applying options for github.com
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: /etc/ssh/ssh_config line 21: include /etc/ssh/ssh_config.d/* matched no files
debug1: /etc/ssh/ssh_config line 54: Applying options for *
debug1: Authenticator provider $SSH_SK_PROVIDER did not resolve; disabling
debug1: Executing proxy command: exec corkscrew 127.0.0.1 7890 github.com 22
debug1: identity file /Users/dingrui/.ssh/my_github type 0
debug1: identity file /Users/dingrui/.ssh/my_github-cert type -1
debug1: Local version string SSH-2.0-OpenSSH_9.0
kex_exchange_identification: Connection closed by remote host
Connection closed by UNKNOWN port 65535

I hava no ideals on this, i'm looking forward to your suggestions or help, thanks again.

Certificate Based Authentication Works or ??

I have used the debian repo corkscrew and this github version, both give me the same results. I am attempting to ssh to port 443. Server has sshd running on port 443, and my client is using the 'ProxyCommand /opt/corkscrew/corkscrew my.domain 443 %h %p'

It is a certificated based SSH and my certs are valid and work when not trying to use corkscrew.

The ultimate error that I get is:

kex_exchange_identification: Connection closed by remote host
Connection closed by UNKNOWN port 65535

Any help would be appreciated.

Corkscrew install from brew has broken Proxy-Authorization

Steps to reproduce:

  • Install corkscrew using brew brew install corkscrew
  • Create auth file echo user@pass > auth
  • Make corkscrew request: corkscrew localhost 8000 localhost 8001 auth
  • Header come through like: Proxy-Authorization: Basic Q09OTkVDVCBsb2NhbGhvc3Q6ODAwMSBIVFRQLzEuMApQcm94eS1BdXRob3JpemF0aW9uOiBCYXNpYyA=
  • Decoding the auth header:
base64 --decode <<< 'Q09OTkVDVCBsb2NhbGhvc3Q6ODAwMSBIVFRQLzEuMApQcm94eS1BdXRob3JpemF0aW9uOiBCYXNpYyA='
CONNECT localhost:8001 HTTP/1.0
Proxy-Authorization: Basic 

Notes

  • It seems like the request headers themselves are being base64 encoded instead of the contents of the auth file.
  • I built corkscrew from source and the auth works as expected. Possibly this is as simple as publishing the latest corkscrew to homebrew.
corkscrew --version
corkscrew 2.0 ([email protected])

Thank you this is very useful software for me.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.