Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

stefr's avatar

SFTP with PHPstorm on Forge

Hi,

I've setup a server with Forge on Digital Ocean. Everything works as expected. However, I would like to connect PHPstorm directly to the files through SFTP. I can connect to SSH with Sequel Pro and FileZilla to this server, but I can't get it working with PHPStorm. Here is my configuration:

SFTP host: <IP address to server>
Port: 22
Root path: /
Username: Forge
Auth type: Keypair(OpenSSH or PuTTY)
Private key file: /Users/myname/.ssh/id_rsa
Passphrase: <EMPTY>

When I try to connect, it will ask me for the passphrase. There is no passphrase (I also tried to enter sudo password just to be sure). When I click OK it will give me the message:

Connection to '<IP FROM SERVER>' failed.
387

Hope there is someone out there who can help me out!

0 likes
3 replies
stefr's avatar
stefr
OP
Best Answer
Level 9

Solved! The passphrase is the SSH key passphrase...

Polar_Bear's avatar

I realize you have this self-solved, but wondering if anyone else has similar issues with phpstorm. I am having the same issues with similar set up except my forge-provisioned server is on Amazon AWS and I get a 289 error message when trying to set up a host connection even though the newly generated openssl (64bit compatible) key pair works with identical configuration through phpstorm's own built in terminal app (but not the server connect module). Incidentally, the key pair works fine through Forge-->AWS (EC2) in Sequel Pro for Mac and Cyberduck

agarwa13's avatar

Hi @laradoc I have the same issue as you. Literally, exactly the same issue. Did you solve your probelm?

Please or to participate in this conversation.