Open rubirubsen opened 5 months ago
Also get this error on mac, not on fedora linux though... any updates?
edit: trying #32 out now
In my Case (Client: Ubuntu 24.04 Noble AMD64, Server: Debian 12 Bookworm AMD64) it just says:
[Trace - 16:20:30.801] Identity keys: None
[Info - 16:20:30.921] Trying no-auth authentication
[Info - 16:20:30.971] Trying password authentication
[Error - 16:21:30.808] Error resolving authority
Error: Timed out while waiting for handshake
And then proceeeds to ask for a Passphrase :-1:.
My ~/.ssh/config
:
# Applies to ALL Hosts
Host *
# This will prevent: Received Disconnect from XXX.XXX.XXX.XXX port XX: Too many Authentication Failures
IdentitiesOnly=yes
# Include all Files from config.d SubFolder Ending with .config
Include config.d/*.config
Then I load a File from ~/.ssh/config.d/<HOST>.config
.
I have a Password-Protected Private Key, however it has already been unlocked via ssh-add
, so if I manually do ssh root@MYHOST
it can connect without Issues.
So unfortunately the Extension is not behaving like the "normal" ssh
Client Command.
Actually this seems to work (Settings -> Extensions -> Remote - SSH):
Note that I listed ALL Files in the ~/.ssh/config.d/
Folder (~/.ssh/config.d/*
).
(of course you need to do ssh-add ~/.ssh/<MY-PRIVATE-KEY>
first though).
A bit of a Shame since this will NOT use the config
file Contents.
Another Option might be to setup a Cron/Systemd Service or smth like that and periodically create a pre-merged File in ~/.ssh/config.merged
for Instance.
But these are all Workarounds. Any Hope in getting a proper Fix ?
@jeanp413: Any hope of getting this Fixed ?
I think your Extension is using a custom "Interpreter" compared to the "Native" OpenSSH Client, as it's not really following all Files and Includes defined in ~/.ssh/config
File.
The "Workaround" to set "The absolute file path to a custom SSH config file:" to $HOME/.ssh/config.d/*
seems to suggest that at least.
Please correct if this Assumption is wrong of course.
As #32 suggested, I fixed the issue by putting the public key in the same directory as the private key, with the ending .pub... i.e. key key.pub Need to be in the same directory. Does this do it for you? Hmm...
@zhengliw: they Keys ARE in the SAME directory in my case.
$HOME/.ssh/config
, $HOME/.ssh/myhostname.mydomain.tld
[Private Key] and $HOME/.ssh/myhostname.mydomain.tld.pub
[Public Key] are ALL in the SAME Directory to begin with. They were always like that ...
So, nope, #32 doesn't Help me at all unfortunately :(. Only my "Workaround" did the Job, but I'd like some better Solution to be implemented upstream.
Please excuse my ignorance...
No worries ...
/Error for me on vscodium, was putting my config as it should be
ctrl + shift + p => Remote-SSH: Open SSH configuration file... :
on console it gives me this exact error:
Is this an error I produce or something I miss or is somebody else getting the same error? Or might somebody reveal to me how to putt the passphrase somewhere? I also do use putty and pageant if this helps in any way.
I also tried to figure out about my ssh agent by putting "Get-WmiObject win32service | ?{$.Name -like 'ssh-agent'} | select PathName" into PowerShell which showed up this:
May be this is also important to get some proper advice. I hope I provided all informations needed and anyone of you guys is able to give me the ultimate advice =)
Cheers