[Bug]: not using SSH_AUTH_SOCK to find ssh-agent
Current Behavior
I have created specific entries for my remote servers in connections.json. I've specified use of public key :
"ssh:pubkeyauthentication": true, "ssh:preferredauthentications": "publickey"
when i try to connect I am asked for the passwordhe ssh key. It also says the host isn't in y .ssh/known hosts but it is.
Expected Behavior
just works using the ssh agent and my known hosts file
Steps To Reproduce
using 11.1-beta 3.
i have all my hosts set up like this:
"somehost": { "conn:ignoresshconfig": true, "conn:wshenabled": false, "display:order": 2, "ssh:hostname": "the-server", "ssh:port": "22", "ssh:pubkeyauthentication": true, "ssh:user": "username", "ssh:preferredauthentications": "publickey" },
and all prepopulated ones like this:
"name@host": { "conn:wshenabled": true, "display:hidden": true, "display:order": 4 }
Wave Version
v0.11.1-beta3
Platform
Linux
OS Version/Distribution
Fedora 41
Architecture
x64
Anything else?
No response
Questionnaire
- [ ] I'm interested in fixing this myself but don't know where to start
- [ ] I would like to fix and I have a solution
- [ ] I don't have time to fix this right now, but maybe later
Using Wave 0.11.2-1 on Arch Linux, I have the same issue. My ssh keys loaded into my ssh-agent are ignored, and wave asks me for ssh keys at each connect. As I use many ssh connections during the day, this is unbearable.
Possibly related. I just tried wave, and found it explicitly won't even let you set some SSH agent options.
Example:
SSH_ASKPASS_REQUIRE="prefer"
env | grep SSH
This really is annoying as the built in SSH_ASKPASS=/usr/bin/ksshaskpass works with the agent to remember the password for keys.
Seeing this on windows 11 as well. I use the Bitwarden ssh agent and the connection manager just ignores it even when setting it specifically on the connection like
{ "Unraid": { "conn:ignoresshconfig": true, "ssh:hostname": "192.168.2.x", "ssh:user": "xxx", "ssh:identityagent": "//./pipe/openssh-ssh-agent" } }
Turning on debugging shows it doesn't try to use the agent.
[conndebug] trying to connect to "Unraid"... [conndebug] connectInternal Unraid [conndebug] ConnectToClient Unraid (jump:0)... [conndebug] ssh dial 192.168.2.x:22 [conndebug] Password Authentication requested from connection [email protected]... [conndebug] ERROR Password Authentication failed: Canceled by the user [conndebug] ERROR ssh auth/negotiation: ssh: handshake failed: Connecting to Unraid, Error: Canceled by the user [conndebug] ERROR ConnectToClient: ssh: handshake failed: Connecting to Unraid, Error: Canceled by the user [conndebug] ERROR Connecting to Unraid, Error: ssh: handshake failed: Connecting to Unraid, Error: Canceled by the user