Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
gpg-agent running, but Sequel still asking for server password #2619
It is really strange. I do a lot of ssh connections using the terminal.
So, to connect to these servers I use the gpg-agent. It works well in terminal as it asks for the PIN of the smartcard and connects to the server.
When I used Sequel Pro, before going to Sierra, I was able to connect every time without any problem.
I'll be happy to help about this!
I use Sequel Pro to connect to a few servers, like 20. So, it is really blocking me. I mean that I would be really happy to help :)
The version is the 1.1.2. The last nightly (50a0f18). is doing the same.
When you use the GPG Agent (with or without smartcard, the agent takes care of that, so it's not a problem if you don't have one I think) it should ask for the passphrase of your GPG key (or the PIN of the smartcard in my case) and not the SSH password.
But how it works now is that the SSH attempt asks for the SSH password, not the GPG passphrase.
Ok, here is an example:
Using SSH in the terminal, with the gpg-agent: (I have a smartcard so it asks for my PIN)
It asks for the PIN via the gpg-agent.
Whe I use Sequel, before, the behavior was exactly the same, I had the PIN entry window then it was connecting well.
Now I have that:
So, it is not asking for the PIN anymore: or even if I had enter it before, it should use the gpg-agent and finish to login. Instead it asks for the SSH user's password.
Let me know if you need more explanation.
This is the SSH command Sequel Pro uses (slightly changed):
Does that work when you run it from Terminal?
SSH_AUTH_SOCK should usually be passed through.
#!/bin/bash env > $HOME/Desktop/userenv.txt /usr/bin/ssh $*
as a .sh file, making it executable and then setting it as the SSH client in Sequel Pro > Preferences > Network.
Yes it is, but not the good one.
I have two agents in my
So, with the
referenced this issue
Jan 2, 2017
No, I have no idea.
Sequel Pro doesn't touch the
Which would mean that OS X does not pass the correct envvar when you launch Sequel Pro.
You saved my day.
It works when I launch it from the Terminal.
From Sequel Pro app :
And here from the Terminal:
Much more things in Terminal.
I created a shortcut to launch it from the Terminal.
I created an app with Automator:
Then I can still use Spotlight to open my Sequel Pro app (using the app "Open Sequel Pro").