

In the above example, bob changed his server’s SSH port number to 22334. If you change the port number used by SSH on your server you will need to also specify the new port number in your command. Linux servers running cPanel will not let the root user connect using regular FTP because the root password would be transmitted in plain text, which should always be avoided. Root User AccessĪs long as the root user is allowed to use SSH to connect to the server it can also be used to send or receive files using SFTP or SCP. In most cases we recommend users try SFTP before FTPS because most Linux servers will automatically support SFTP, whereas some configuration changes/additions may be necessary to start using FTPS. Log in to your server’s WHM as root and find the navigation link labeled Modify an Account, as indicated below:įTPS is FTP using SSL to encrypt some or all of the transmissions between the server and client. If a user wishes to use SCP and SFTP on a Linux server running cPanel they will need to have shell access enabled.

Wildcards can be used for both sending and receiving files. SCP can also be used with wildcard statements (*) to transfer multiple files that meet your criteria:Ĭopies all files ending in.php in the /home/bob/public_html directory to the local directory called Downloads. Scp index.php scp the local file index.php to the directory /home/bob/public_html/ on the server as the user bob.Ĭopies the file index.php from its location on the server to the local directory called Downloads as the server user bob. Because it uses the SSH protocol for authentication SCP is more secure than FTP which transmits passwords in plain text.

The SCP command can be used to send a file to a server or retrieve a file from a server. To send or receive files simply drag them from one pane to another. The majority of them use a two pane window view, with one pane being the local file system and the other pane showing the server’s file system. Many SFTP clients are almost exactly the same in appearance as FTP clients. SFTP differs from SCP in that it offers a GUI component that allows more remote administration, akin to a remotely accessed file system. SFTP is not FTP over SSH, but instead a new protocol developed from the ground up. SFTP can work with many protocols but is most commonly used with SSH to provide secure authentication. One simple way to improve your Linux server’s security is to use SFTP or SCP instead of regular FTP.
