To transfer files using the PhpStorm IDE, you will generally use the Deployment feature to set up and manage FTP, SFTP, FTPS, or other remote server connections. Here is a step-by-step guide on how to do this:
Set Up Deployment Connection
-
Open Deployment Settings:
- Go to File → New file to create a new project;
- In the left panel, select ≡ → Tools → Deployment → Configuration.
-
Add a New Server:
- Click the “+” icon to add a new server.
- Choose your preferred server type (usually FTP, SFTP, or FTPS).
-
Configure Server Details:
- Name: Give a meaningful name to the connection.
- Type: Choose the connection type (SFTP, SCP, etc.).
- Host: Enter senhasegura’s address (IP or domain name).
- Port: Enter port 22 for SFTP, for example.
- Username: Your senhasegura login username.
- Authentication type: Password
- Password: Your senhasegura’s login password.
-
Test the Connection:
- Click the “Test Connection” button to verify that all settings are correct.
-
Set Local and Remote Paths:
- Go to the “Mappings” tab.
- Local path: Select the local directory of your project that you want to link to the remote server.
- Deployment path: Enter the directory where files will be uploaded on the remote server.
Transfer Files
- Upload Files:
- Navigate to the file or folder you want to transfer.
- Right-click on the file or folder, go to ‘Deployment’, and select ‘Upload to [server name]’.
SSH (optional)
To validate if the file was transferred correctly to the remote server, you can also make an SSH connection via senhasegura using PhpStorm.
- Select Terminal:
- In the bottom left corner of the screen, you will see a “Terminal” icon. Click on it, then select the configured server next to the + symbol.
By following these steps, you should be able to configure and transfer files efficiently using PhpStorm.
Here is an instructional video demonstrating the transfer of a file via SFTP and SSH connection with PhpStorm.