PHPStorm SFTP connection problem

I am having a problem connecting to an SFTP server from PHPStorm. Is this the correct board to ask about that kind of problem? If not, please let me know where I should post.

Thanks

6 comments
Comment actions Permalink

Yes please, just give more details.

0
Comment actions Permalink

The web server OS is Windows Server 2003, service pack 2. I am using freeFTPd (version 1.0.11) as the SFTP server. It is running as a Windows service (only SFTP is running, not FTP), using password authentication, with the document root set to the web server document root directory. The project files are in a subdirectory under the root. I can successfully connect to the SFTP server using a client (Filezilla 3.5.3), password authentication, and it does start in the correct directory.

I am running PHPStorm 3.0.3 (2/28/2012 build) on Windows XP service pack 3. I try to "Create New Project from Existing Files", select "Web server is on remote host, files are accessible via FTP/SFTP", and enter the information on the "Add Remote Server" dialog box (using Auth type: Password, and typing the password in, but not selecting "Save password"). When I click "Test SFTP connection...", I get the error message: "Connection to '%SEVERDNSNAME%' failed. Could not connect to SFTP server at "%SERVERDNSNAME%"." When I click "Next", I get the similar error message: "Connection to '%PHPSTORMSERVERNAME%' failed. Could not connect to SFTP server at "%SERVERDNSNAME%".". %PHPSTORMSERVERNAME% is the name I entered in the "Name" box when adding a remote server, and %SERVERDNSNAME% is the actual DNS name of the remote machine. If I look in the SFTP server log, I see the messages "SFTP connection attempt" followed immediately (same timestamp to the second) by "SFTP %USERNAME% disconnected".

This is distinct from what happens if I try to connect the same way from PHPStorm but deliberately enter the wrong password. In that case, when I push the "Next" button, I get the error message: "Connection to '%PHPSTORMSERVERNAME%' failed. Auth fail". The server log has messages, "SFTP connection attempt" followed by 3 "SFTP %USERNAME% access denied" messages, followed by "SFTP %USERNAME% disconnected".

Given the different PHPStorm error messages and server log when I deliberately enter the wrong password, this does not look like an authentication failure. The server setup apprears to be correct, since the Filezilla client can connect without any problems.

Can anyone help with steps to solve  the problem or to gather additional information on what is going wrong? Thanks in advance.

0
Comment actions Permalink

Do you know if your web server is using ipv6 protocol? Many windows servers use it and PHPstorm doesn't support it (as far as i can tell). Apache/linux servers tend to use ipv4, so they are not a problem. We have a client that uses a windows server and I can't FTP to their server using PHPstorm. I have to use either FileZilla or Dreamweaver (with ipv6 enabled in the advanced FTP options).

As a side note, it would be IMMENSELY HELPFUL if this capability was built into PHPstorm.

- Andy

0
Comment actions Permalink

Hello!

Could you please provide the log (enabling debug first)?

Best regards,
Elena Shaverdova

0
Comment actions Permalink

Hello! I have а problem with sftp connect.

Hosting replied that legacy protocols key exchange, which they no longer support. What do I do?

Log in the attachment.

Thank you



Attachment(s):
idea.log.zip
0

Please sign in to leave a comment.