Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Connection closed by UNKNOWN port 65535 #19

Open
Bannirui opened this issue Oct 31, 2023 · 3 comments
Open

Connection closed by UNKNOWN port 65535 #19

Bannirui opened this issue Oct 31, 2023 · 3 comments

Comments

@Bannirui
Copy link

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.

@wangjia184
Copy link

+1 for this issue on Ubuntu

@Bannirui
Copy link
Author

+1 for this issue on Ubuntu

actually it works as enabling SSH connections over HTTPS.

@Bannirui
Copy link
Author

+1 for this issue on Ubuntu

actually it works as enabling SSH connections over HTTPS.

FYI, https://bannirui.github.io/2024/01/24/%E4%BB%A3%E7%90%86git%E7%9A%84ssh%E5%8D%8F%E8%AE%AE/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants