Using Linux to SSH and SCP Files Over to Your Hosting Account

Method 1: SSH & SCP

SSH into your account:

 
 
bash
ssh -p 7005 username@webserver.ultrawebhosting.com

You'll be dropped into your home directory (/home/username/). From there, cd public_html to manage your site files.

Copy a file to public_html via SCP:

 
 
bash
scp -P 7005 localfile.html username@webserver.ultrawebhosting.com:public_html/

Copy an entire directory recursively:

 
 
bash
scp -P 7005 -r ./my-site/ username@webserver.ultrawebhosting.com:public_html/

Note the capital -P for SCP vs lowercase -p for SSH — classic gotcha.

Using rsync over SSH (better for syncing larger sets of files):

 
 
bash
rsync -avz -e "ssh -p 7005" ./my-site/ username@webserver.ultrawebhosting.com.com:public_html/
  • 0 Users Found This Useful

Was this answer helpful?

Related Articles

I do not have an SSH Client

Need to connect to your web server via SSH? No problem! Here are a few options: Download an...

Dedicated Web Hosting – Important FAQs

One of the most persistent debates related to launching of websites is about the choice of web...

How do I setup Dreamweaver for FTP?

Dreaming of setting up Dreamweaver for FTP? Look no further, my friend! Here is a link to...

What directory do I upload to?

You may upload to either the public_html or www folder which are the same directory.

Helping You to Grasp the Basics of FTP

Helping You to Grasp the Basics of FTPAnyone who owns a website, blog or needs to upload/download...