PHPStorm Connect to SSH stucks on "Check connecion and continue" -> .config dir access denied.

Hi, I'm on PHPStorm 2025.1.1, I would try to connect to remote host with SSH for remote development.

Hosting provider is Infomaniak, It's a dedicated and managed VPS which allows me to create ssh users with password. I've also added a private key.

I created successfully a connection to the server, and PHPStorm tells me “Connection successful”.

When i click on “Check Connection and Continue”, I have a little dialog saying “Checking the IDE backend”, “Uploading worker binary” and “Preparing directories” then disappears, and… nothing, it stucks on the screen “Connect to SSH” with this button and this repeats every time I click on “Check Connection and Continue”…

On the remote server, a directory called “.cache” containing “JetBrains/RemoteDev/remote-dev-worker/remote-dev-worker_d0a937e1ba6429e30ca563825404b9140e23a9be5f573ddec17d30c12b90876b" has been created.

After research, in the logs I've found :

Stdout: '{"type":"error","errorCode":"CommandError","data":"mkdir /home/clients/xxx/.config/JetBrains: permission denied"}'

There is a “.config” dir, but it is owned by root and I dont have any rights on it… Is the a way to change this dir in IDE to use another one ?
 

0
正式评论

Hi, yes, the default directory for configuration files can be changed by specifying it in the XDG_CONFIG_HOME system environment variable. However, I recommend getting an account with sufficient permissions for the home directory and its subfolders to avoid related issues. Note, IDE also uses the default ~/.cache and ~/.local/share/ folders that can be customized accordingly via XDG_CACHE_HOME and XDG_DATA_HOME. Kindly check it and let me know if it helps.

请先登录再写评论。