Best SFTP/SSH workflow for passphrase-protected keys?
I'm trialling PHPStorm 2017.2.1 on Debian and we use signed SSH keys that are passphrase-protected. I'm trying to set it up such that I can SFTP/SSH into our servers using ssh-agent/keychain. I have keychain set up such that it prompts me for the passphrase the first time I open a terminal window, and then all subsequent ssh connections don't prompt for the key's passphrase.
I am getting an "auth cancel" error when I try to connect via SFTP to a server that requires my key, though, after authenticating the key in a separate terminal window. Should I switch to KeePass? Is there something I've overlooked?
Please sign in to leave a comment.
Did you choose "ssh agent" in deployment configuration for that server?
Yes!
How does PHPStorm handle SSH/SFTP connections with SSH keys that are passphrase-protected?
If you set auth type to Key pair in Build, Execution, Deployment | Deployment > your SFTP server, you will be prompted for key and for a passphrase.
We figured it out internally; we needed to:
I'll be looking into using the third-party Keychain package to manage the ssh-agent so hopefully I can start PHPStorm by just clicking its icon.
Thanks!
Did you switch PhpStorm to KeePass in File | Settings | Appearance & Behavior | System Settings | Passwords?
Nope! I am not currently using KeePass.