Skip to content

Unable to connect via SSH with keyfile #14102

@shdwchn10

Description

@shdwchn10

Bug Description:

I have a lot of hosts entries in ~/.ssh/config like this one:

Host pc
    Hostname 192.168.100.11
    Port 22
    User shdwchn10
    Compression yes
    IdentityFile ~/.ssh/pc

And I'm unable to connect to any of them via Theia (Linux, Appimage). ssh in terminal works fine.

Steps to Reproduce:

  1. Have some systems with Host entry in ~/.ssh/config file (each system in this file doesn't allow password login)
  2. Try to connect to any of them with username@ip
  3. Error: Could not open SSH connection to remote. All configured authentication methods failed
  4. Or try to connect with the host name (from ~/.ssh/config): pc and enter username in the second prompt
  5. Error: Could not open SSH connection to remote. getaddrinfo ENOTFOUND pc
  6. If I try to enter just the host name without username in the second prompt (like it works in ssh cli: ssh pc) I get this error: Please enter a user name.

image
username@ip connection error. Error from logs:

2024-09-01T16:30:34.013Z root INFO Ended remote connection to host '[email protected]'

image
pc connection error (logs are empty)

image
pc without username error (logs are empty)

Additional Information

  • Operating System: Fedora Linux 40.20240828.0 (Silverblue)
  • Theia Version: 1.52.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    remoteissues related to the remote functionalityremote-sshissues related to the ssh remote functionality

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions