Copy a folder from Linux server over SSH


I'm running Windows 7 Pro, I have connected via SSH to a remote Linux server that host a website.
I need to copy a folder that has all the website files to my computer, what is the command to do so?
Also this website is using Apache Tomcat for DB and I need to copy it also, is there a special steps I need to take to copy the DB or just copy the folder were DB is located?

Thank you,

Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Since you have SSH credentials to the linux machine you can use SCP protocol to copy the files from the Linux machine over to your Windows 7 machine.

In linux the SCP tool is built in which lets you easily transfer files from one linux computer to another.

Windows doesn't have such a tool by default, but you can download and install WinSCP to do this:

Putty also has a command line version of this tool if you are more comfortable with that:  (see the PSCP tool)
You will probably want to take a SQL dump backup of your database and then restore the backup to your database server running on your windows machine - the raw data files on a linux machine may not be compatible with a Windows installation.
Sergey_NesterenkoAuthor Commented:
Heaving problems, getting a message that sftp server is not responding or down when connecting through WinSCP. Can you give me an example of the command I can enter on linux server that transfers folders to a remote PC?

Thank you,

It will be easier to pull the files from the linux server instead of trying to push them to your windows box. Your windows machine isn't running any services which can be easily accessed from the linux machine without setting up firewall exceptions, permissions etc.

Since you already have SSH access to the linux machine you can use WinSCP to easily pull the files off the server.

When using WinSCP, make sure that you use SSH/SCP as the file protocol, and not SFTP.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Sergey_NesterenkoAuthor Commented:
Thank you, it worked!
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.