From bb2379d68d32082499823cb8bc64df8a7e26901d Mon Sep 17 00:00:00 2001 From: Matt Johnston <matt@ucc.asn.au> Date: Tue, 4 Apr 2023 23:23:17 +0800 Subject: [PATCH] Don't send "ssh-connection" service request github.com disconnects immediately. OpenSSH and Dropbear clients don't send it anyway. sunsetc can now push itself to github! --- src/client.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/client.rs b/src/client.rs index cb78e9b..4aaf7ac 100644 --- a/src/client.rs +++ b/src/client.rs @@ -33,7 +33,10 @@ impl Client { b: &mut impl CliBehaviour, ) -> Result<()> { parse_ctx.cli_auth_type = None; - s.send(packets::ServiceRequest { name: SSH_SERVICE_CONNECTION })?; + + // github.com doesn't like this, openssh doesn't send it + // s.send(packets::ServiceRequest { name: SSH_SERVICE_CONNECTION })?; + self.auth.success(b) } -- GitLab