Ssh Help

liunx

Guest
I have SSH enabled on my account but i'm new to it. I was told that wit SSH i could transfer from another ftp to my TCH account. I've looked around for tutorials and such and i came across one. I tried one. <br /><br />scp user@anotherftpip:/directroy/file.zip localhost:/directory/file.zip<br /><br />It then asked me for anotherftpip's password: i tried to enter it but the cursor wouldnt' move so i entered what it should have been and pressed enter. It failed i tried a bunch of other things but it didn't work.<br /><br />Does anyone know of any tutorials i could read on the matter?<br />I tried askin helpdesk but all they said was they don't help with that <img src="http://www.totalchoicehosting.com/forums/style_emoticons/default/sad.gif" style="vertical-align:middle" emoid=":(" border="0" alt="sad.gif" /><!--content-->
What is your goal? To move your files from one web site to another? or something else?<br />-kw<!--content-->
correct to move files DIRECTLY from another ftp to my TCH account.<br /><br />I don't want to download then upload <img src="http://www.totalchoicehosting.com/forums/style_emoticons/default/sad.gif" style="vertical-align:middle" emoid=":(" border="0" alt="sad.gif" /><!--content-->
open 2 SSH shells, 1 for your old host, 1 for TCH. first you will have to tar the files on the old server.<br /><br /><!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1-->> cd public_html/<br />> tar -cvf mywebsitearchive.tar *<!--c2--></div><!--ec2--><br /><br />then, while logged into TCH SSH, you need to do the following:<br /><br /><!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1-->> cd public_html/<br />> ftp your.old.webserver.com<br />Connected to your.old.webserver.com (111.222.333.444).<br />Name (your.old.webserver.com:TCHusername): here_put_your_old_username<br />Password: here_put_your_old_password<!--c2--></div><!--ec2--><br /><br />you now have an ftp connection to your old remote site. then all you need to do is do this:<br /><br /><!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1-->ftp> cd public_html/<br />ftp> binary<br />ftp> get mywebsitearchive.tar <br />ftp> bye<!--c2--></div><!--ec2--><br /><br />and it will put the file in your directory on TCH from where you called the ftp program - now back to the TCH server.<br /><br /><!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1-->> ls -lrt<!--c2--></div><!--ec2--><br /><br />and you will see the tar file. untar it <br /><br /><!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1-->>tar -xvf mywebsitearchive.tar<!--c2--></div><!--ec2--><br /><br />and you should be good to go. <br /><br />hope that helps,<br /><br />chuck<!--content-->
thanks for the help chuck.<br /><br />I just tried it out but i seem to get a error message every time i try<br /><br />local: websitearc.tar Permission Denied.<br /><br /> <img src="http://www.totalchoicehosting.com/forums/style_emoticons/default/sad.gif" style="vertical-align:middle" emoid=":(" border="0" alt="sad.gif" /><!--content-->
at what point are you getting that error?<br /><br />chuck<!--content-->
after <br /><br />ftp> get websitearc.tar<!--content-->
log into your old server and do an <!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1-->ls -lrt<!--c2--></div><!--ec2--><br /><br />in the dir with the tar file, and post the results here.<br /><br />you can AIM me at FSUchucky3 if you want to... <br /><br />chuck<!--content-->
finally got it to work. i had to get to public_html but i had to do cd home and cd domainname first<br /><br />Thanks a lot for your help chuck. <img src="http://www.totalchoicehosting.com/forums/style_emoticons/default/biggrin.gif" style="vertical-align:middle" emoid=":D" border="0" alt="biggrin.gif" /> <br /><br />-Jason<!--content-->
glad it worked out for ya<br /><br />chuck<!--content-->
 
Top