pony-ssh
pony-ssh copied to clipboard
All configured authentication methods failed
Pardon my ignorance, but is there a debug log I can look at? The error I'm getting does't really tell me the problem.
[2022-06-29 23:16:06] [error] Error connecting to Dev Workspace: All configured authentication methods failed
[2022-06-29 23:16:06] [info] Connecting to Dev Workspace: {
host: 'my-server.local',
username: 'newhalld',
agent: '/private/tmp/com.apple.launchd.OVsCXwd1YD/Listeners',
path: '~/workspaces',
privateKeyFile: '/Users/newhalld/.ssh/id_rsa',
passphrase: '*****',
privateKey: '*****'
}
This works:
$ ssh -i /Users/newhalld/.ssh/id_rsa [email protected]
Last login: Wed Jun 29 23:07:19 2022 from 10.106.101.14
codium config:
"ponyssh.hosts": {
"Dev Workspace": {
"host": "my-server.local",
"username": "newhalld",
"agent": true,
"path": "~/workspaces",
"privateKeyFile": "/Users/newhalld/.ssh/id_rsa",
"passphrase": ""
}
}
I also started getting this, did not change config since my last use of this extension a few months ago - maybe it's a regression because in newer VSCode versions?
Using Ponyssh v0.5.0 on:
Version: 1.71.2
Release: 22258
Commit: cea9d1a4b17966719d8c5f3cdd914480f7cec47c
Date: 2022-09-15T18:19:31.017Z
Electron: 19.0.12
Chromium: 102.0.5005.167
Node.js: 16.14.2
V8: 10.2.154.15-electron.0
OS: Linux x64 5.19.9-300.fc37.x86_64
Sandboxed: No
Yup, same issue here. Can ssh from shell no problem–using the same parameters in pony ssh config and it fails.
I have exactly the same issue. And there is no clue in the logs. Only the message showed here. I also fulfill the requirements, a unix-like server with Python >= 2.7 on it.
Also having this issue, not sure what's up. This is the only SSH extension that works well with VS Code Server. Config looks like this: "US": { "host": "192.168.1.78", "username": "gv", "agent": true, "privateKeyFile": "~/.ssh/id_rsa", "path": "/home/gv", "python": "/usr/bin/python3" }
Anyone solve this? The 'PrivateKeyFile' is the directory in the local container where the VS Code Server resides, and the public key goes on the machine I'm trying to SSH into.
It looks like the ssh libraries that pony-ssh relies on were a little out-of-date, causing it to fail to connect to more modern ssh server versions.
I've released pony-ssh 0.7.0 with a newer version of its ssh libraries, which should fix a bunch of these problems :)