Using Linux to FTPS,SFTP, or FTP Files Over to Your Hosting Account

1. SFTP (SSH File Transfer Protocol — Port 7005)

Since SSH is already available on port 7005, SFTP works out of the box with no extra configuration.

Connect:

 
 
bash
sftp -P 7005 username@webserver.ultrawebhosting.com
```

**Upload files:**
```
cd public_html
put index.html
put -r my-site/
bye

One-liner upload without entering interactive mode:

 
 
bash
echo "put index.html" | sftp -P 7005 -b - username@webserver.ultrawebhosting.com:public_html/

2. FTPS (FTP over Explicit TLS — Port 21)

cPanel uses explicit TLS on port 21 by default. lftp handles this well from the command line.

Connect:

 
 
bash
lftp -u username ftps://webserver.ultrawebhosting.com
```

If prompted about certificate trust, you can add this to `~/.lftprc` to accept it:
```
set ssl:verify-certificate no
```

**Upload files once connected:**
```
cd public_html
put index.html
# Upload an entire directory:
mirror -R ./my-site/ .
bye

Alternative using curl for a quick single-file upload:

 
 
bash
curl -T index.html --ssl-reqd --user username:password ftp://webserver.ultrawebhosting.com/public_html/

3. Plain FTP (Unencrypted — Port 21)

Plain FTP sends credentials in cleartext, so only use this on a trusted network or as a last resort.

Connect:

 
 
bash
ftp webserver.ultrawebhosting.com
```

You'll be prompted for your username and password.

**Upload files once connected:**
```
cd public_html
put index.html
# For multiple files:
mput *.html
# Toggle binary mode for non-text files:
binary
put image.png
bye

Note: cPanel may have plain FTP disabled in favor of FTPS. If the connection is refused or immediately closed, the server is enforcing TLS — use FTPS or SFTP instead.

  • 0 Users Found This Useful

Was this answer helpful?

Related Articles

I uploaded my images but I cannot see them in my html pages

There are a few possible reasons why your images might not be loading in your HTML...

Why can I not telnet into my server? What is SSH?

Telnet is an antiquated protocol, passing data from one computer to another without encryption....

I am getting an error - Can you help troubleshoot it?

Having trouble with an error message? Don't worry, we're here to help!   First, try searching...

I uploaded my site but I can not see it, why?

Make sure you are uploading your website files to the public_html directory. Also please keep in...

Web Hosting Information

Web Hosting Service – Associated Facts While you may be aware as to how crucial a website is to...