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

Fails on all ssh connections #87

Closed
cutec-chris opened this issue May 5, 2023 · 6 comments
Closed

Fails on all ssh connections #87

cutec-chris opened this issue May 5, 2023 · 6 comments

Comments

@cutec-chris
Copy link

Error downloading server from https://github.com/VSCodium/vscodium/releases/download/1.77.1./vscodium-reh-linux-arm64-1.77.1..tar.gz

@jeanp413
Copy link
Owner

jeanp413 commented May 5, 2023

@cutec-chris looks like your are not using vscodium desktop as a client but maybe code-oss? then please follow this comment

@davidtbo
Copy link

davidtbo commented Jun 2, 2023

I just installed version 0.0.37 of open-remote-ssh on VSCodium v 1.78.2. I have my .ssh/config file set up so that I can do ssh remotemachine from a terminal. However, when I try to have VSCodium open that machine remotely it fails to open. Here's the log:


[Info  - 18:23:41.145] Resolving ssh remote authority 'ssh-remote+devdesktop' (attemp #1)
[Trace  - 18:23:41.173] Identity keys:
/Users/myusername/.ssh/id_rsa ssh-rsa SHA256:WV+Fw83KnoPx085XXXXXXXXXXXXXXXXXXXXXXXXXXXX=
[Info  - 18:23:41.413] Trying no-auth authentication
[Info  - 18:23:41.462] Trying publickey authentication: /Users/myusername/.ssh/id_rsa ssh-rsa SHA256:WV+Fw83KnoPx085XXXXXXXXXXXXXXXXXXXXXXXXXXXX=
[Error  - 18:23:41.563] Error resolving authority
Error: All configured authentication methods failed

Do you have any advice as to why this is failing? I should also note the permission on the key is 600. Appreciate any advice you can give! :)

@jeanp413
Copy link
Owner

jeanp413 commented Jun 2, 2023

Hi @davidtbo, I have some questions,

  • what's your local OS?
  • does your key has a passphrase?
  • is it added to the ssh-agent?
  • can you share the logs when connecting from a normal terminal using ssh -v devdesktop to check how it does authentication there?

@davidtbo
Copy link

davidtbo commented Jun 2, 2023

Local OS is Mac 13.4 Ventura. No passphrase. I can do ssh remotemachine on the terminal and it works, but VSCodium won't connect to it with the plugin.

I'm not sure about adding it to an ssh-agent.

Here are the logs from my terminal:


OpenSSH_9.0p1, LibreSSL 3.3.6
debug1: Reading configuration data /Users/myusername/.ssh/config
debug1: /Users/myusername/.ssh/config line 8: Applying options for *
debug1: /Users/myusername/.ssh/config line 226: Applying options for devdesktop
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: Connecting to devdesktop port 22.
debug1: Connection established.
debug1: identity file /Users/myusername/.ssh/id_rsa type 0
debug1: identity file /Users/myusername/.ssh/id_rsa-cert type 4
debug1: Local version string SSH-2.0-OpenSSH_9.0
debug1: Remote protocol version 2.0, remote software version OpenSSH_7.4p1-RHEL7-7.4p1-22 mdy1.0
debug1: compat_banner: match: OpenSSH_7.4p1-RHEL7-7.4p1-22 mdy1.0 pat OpenSSH_7.4* compat 0x04000006
debug1: Authenticating to devdesktop:22 as 'myusername'
debug1: load_hostkeys: fopen /Users/myusername/.ssh/known_hosts2: No such file or directory
debug1: load_hostkeys: fopen /etc/ssh/ssh_known_hosts: No such file or directory
debug1: load_hostkeys: fopen /etc/ssh/ssh_known_hosts2: No such file or directory
debug1: SSH2_MSG_KEXINIT sent
debug1: SSH2_MSG_KEXINIT received
debug1: kex: algorithm: curve25519-sha256
debug1: kex: host key algorithm: rsa-sha2-512
debug1: kex: server->client cipher: [email protected] MAC: <implicit> compression: none
debug1: kex: client->server cipher: [email protected] MAC: <implicit> compression: none
debug1: expecting SSH2_MSG_KEX_ECDH_REPLY
debug1: SSH2_MSG_KEX_ECDH_REPLY received
debug1: Server host key: ssh-rsa SHA256:55gu+gPSDr6fmNjmY0C+nEI7MYlTQmri1r9IgKB1ZNo
debug1: load_hostkeys: fopen /Users/myusername/.ssh/known_hosts2: No such file or directory
debug1: load_hostkeys: fopen /etc/ssh/ssh_known_hosts: No such file or directory
debug1: load_hostkeys: fopen /etc/ssh/ssh_known_hosts2: No such file or directory
debug1: Host 'devdesktop' is known and matches the RSA host key.
debug1: Found key in /Users/myusername/.ssh/known_hosts:259
debug1: rekey out after 134217728 blocks
debug1: SSH2_MSG_NEWKEYS sent
debug1: expecting SSH2_MSG_NEWKEYS
debug1: SSH2_MSG_NEWKEYS received
debug1: rekey in after 134217728 blocks
debug1: get_agent_identities: bound agent to hostkey
debug1: get_agent_identities: ssh_fetch_identitylist: agent contains no identities
debug1: Will attempt key: /Users/myusername/.ssh/id_rsa RSA SHA256:WV+Fw83KnoPx085XXXXXXXXXXXXXXXXXXXXXXXXXXXX explicit
debug1: Will attempt key: /Users/myusername/.ssh/id_rsa RSA-CERT SHA256:WV+Fw83KnoPx085XXXXXXXXXXXXXXXXXXXXXXXXXXXX  explicit
debug1: SSH2_MSG_EXT_INFO received
debug1: kex_input_ext_info: server-sig-algs=<rsa-sha2-256,rsa-sha2-512>
debug1: SSH2_MSG_SERVICE_ACCEPT received
debug1: Authentications that can continue: publickey
debug1: Next authentication method: publickey
debug1: Offering public key: /Users/myusername/.ssh/id_rsa RSA SHA256:WV+Fw83KnoPx085XXXXXXXXXXXXXXXXXXXXXXXXXXXX explicit
debug1: Authentications that can continue: publickey
debug1: Offering public key: /Users/myusername/.ssh/id_rsa RSA-CERT SHA256:WV+Fw83KnoPx085XXXXXXXXXXXXXXXXXXXXXXXXXXXX explicit
debug1: Server accepts key: /Users/myusername/.ssh/id_rsa RSA-CERT SHA256:WV+Fw83KnoPx085XXXXXXXXXXXXXXXXXXXXXXXXXXXX explicit
Authenticated to devdesktop ([172.22.49.90]:22) using "publickey".
debug1: channel 0: new [client-session]
debug1: Requesting [email protected]
debug1: Entering interactive session.
debug1: pledge: filesystem
debug1: client_input_global_request: rtype [email protected] want_reply 0
debug1: client_input_hostkeys: searching /Users/myusername/.ssh/known_hosts for devdesktop / (none)
debug1: client_input_hostkeys: searching /Users/myusername/.ssh/known_hosts2 for devdesktop / (none)
debug1: client_input_hostkeys: hostkeys file /Users/myusername/.ssh/known_hosts2 does not exist
debug1: client_input_hostkeys: no new or deprecated keys from server
debug1: Sending environment.
debug1: channel 0: setting env LANG = "en_US.UTF-8"
Last login: Fri Jun  2 18:14:05 2023 from 10.106.101.23

@jeanp413
Copy link
Owner

jeanp413 commented Jun 2, 2023

Ok looks like you are using certificate based auth, that's currently not supported, I'll create a separate issue for it.

@jeanp413
Copy link
Owner

jeanp413 commented Jun 2, 2023

Closing this, new issue created #95

@jeanp413 jeanp413 closed this as completed Jun 2, 2023
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

3 participants