SFTP is a secure protocol for transferring files between computers over the internet or a network. It stands for “SSH File Transfer Protocol” or “Secure File Transfer Protocol” and is based on the SSH protocol (Secure Shell).
Unlike FTP (File Transfer Protocol), which transfers data without encryption, SFTP ensures that all data is encrypted and therefore protected from unauthorized access.
To connect via SFTP, use the root user's login credentials. This example shows how to set up the connection using the WinSCP application. Create a New Session in WinSCP.
In the configuration window for the new session, select SFTP as the File protocol. Then enter your server's IP address and port 22. Use your root user's login credentials for the username and password.
If you use an SSH key instead of the standard password option, click Advanced and go to SSH -> Authentication. There, you can add your SSH key.
The first time you connect via SFTP, this message appears because your computer does not yet recognize the server. Click “Yes” if you trust the server. This saves its security key so you won't be asked again on future connections. This is a normal step when connecting to a new server for the first time.
