2.5.2.3.1. Setting up an FTP and SFTP connection in PhpStorm
To connect to hosting via FTP, configure PhpStorm as follows:

- «Name» — an arbitrary name of the configuration being created for connecting to a remote server.
- «Type» — «FTP».
- «Host» — FTP host.
- «Port» —
21
. - «User name» — FTP login.
- «Password» — FTP password.
- «Save password» - turn on to remember the password and not enter it every time you connect.
- «Root path» - path to the desired directory on the server relatively FTP access directory (can be selected by clicking on the folder icon).
- «Web server URL» — the URL of the site or its service address (you can not specify if you include below «Don't check HTTP connection to server»).
- Click «Advanced» and specify additional settings:
- «Passive mode» — necessarily turnon.
- «Show and process hidden files» — enable if you want to see all files in the directory, including hidden ones.
- «Encoding for client-server communication» —
utf-8
.
You can test the connection with the button «Test Connection».
To connect to hosting via SFTP, configure PhpStorm as follows:

- «Name» — an arbitrary name of the configuration being created for connecting to a remote server.
- «Type» — «SFTP».
- «Host» — SSH host.
- «Port» —
22
. - «User name» — SSH login.
- «Authentication» — «Password».
- «Password» — SSH password.
- «Save password» - turn on to remember the password and not enter it every time you connect.
- «Root path» - path to the desired directory on the server relative to the root of the filesystem (can be found in site settings or select by clicking on the folder icon).
- «Web server URL» — the URL of the site or its service address (you can not specify if you include below «Don't check HTTP connection to server»).
- Click «Advanced» and specify additional settings:
- «Encoding for client-server communication» —
utf-8
.
You can test the connection with the button «Test Connection».