Hey, I am a complete novice when it comes to SSH. I have a two hosts. I want to transfer all my sites from my old host to my new host using SSH since it will be safer that way and faster. Problem is, I have no idea how to go about it. It is a big site with over 30k user uploaded files. Its signature generator. I created the SSH key on my old host and it gave me a private and public key. I then imported both the private and public key onto my new host. Is that the right direction so far? Now I am confused at what the next step is. Do I click one of these? http://wimg.co.uk/0Yt.png I tried clicking the first one but don't know what to put here: http://wimg.co.uk/r5P.png Do I put the server I would use to access my FTP? Thanks for any help. Also, if you know of any step by step tutorials, let me know.
Okay, this is really simple: Telnet is NOT an SSH client so Click on SSHTerm (the first button). Enter your FTP location as the host. Just the hostname (or IP address), though. If that doesn't work, ask your hosting company for the hostname. Alternatively, you might want to look for the introductory e-mail they sent you. Your SSH hostname (or IP address) might be in there. Open the .pub file created on the OLD host. Copy the contents and paste them into the ~/.ssh/authorized_keys file on the NEW host (create the authorized_keys file if it doesn't exist). Just to make sure, protect the file with the proper permissions `chmod 664 authorized_keys` To copy your files: Create (or navigate to) the desired folder From the NEW server, type `scp -r username@oldhostname: .` Done. Let me know if you have any questions.
why you transfer your site through ssh ? use FTP for file transfer. 1st step - make a whole site database backup and file backup in your computer. transfer your site through FTP and if you face problem in your new host then solve step by step. or hire me my charge is only $10 for safe hosting transfer.
@ dewlance because SSH is a lot safer than FTP. Plus, it would take a long time to do a backup and upload it through the FTP as it has about 35,000 Files hosted. @webmasterperks thank you for the detailed reply. I will try what you said later and let you know how it worked out.
Yeah, it's secure and when you live on the command-line, you use it a lot. In fact, on many of the servers I use I shutdown the FTP daemons until I need them. I never use FTP unless I'm forced... like when I want WordPress to auto-update... Arrggh!
lol I still haven't transferred this site over to my dedi from my shared. The thing is, I have two huge files over 250MB in size and everytime I drag them into the public_html in the ftp for my new server, they begin to transfer then after its like 20% done, it stops and said they couldn't be transferred. I tried doing one at a time and it still fails. Should I just download the home_dir for the site in my old host in the cpanel and then restore it in my new cpanel? i have a .tar.gz backup of the site but dont know where to upload it too. thx for the help
If you have the tar.gz backup, then you can untar it the the new server by doing a tar -zxf file.tar.gz. And then just copy the contents of the tarball to their respective folders. This can be done by doing a cp -R file /path/to/where/you/want/the/files/to/be copied.