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

How can I install shopping cart software?

Automatically install a free shopping cart program with your hosting account in minutes   To...

What directory do I upload to?

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

Removing This website is still under construction, please visit us later!

A common question regarding the new site builder is how do I remove the under construction...

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...

Where can I find an HTML editor?

There are many HTML editing programs, including the popular Dreamweaver software and FrontPage....