[quote:75d4ac7c33][i:75d4ac7c33]Originally posted by Radio_Head[/i:75d4ac7c33]
I wish to know what I have to do to transfer files from my local computer for example FROM c:/test.pl TO a client account for example /home/user/public_html/cgi-bin ( considering that I cannot ftp on my client account with my root password ).
A solution is to ask the password to my client and to upload the file using the client ftp account : or is there a fast way using the shell from root ?
thank you
[/quote:75d4ac7c33]
You can upload and download files via SSH sessions, i.e Root SSH session
Methods of file transfer via SSH session:
However it depends on which software do you use for this purpose,
[b:75d4ac7c33]1) SSH/SSH2 Clients/Emulators/Terminal [/b:75d4ac7c33] softwares such as SecureCRT, Zoc …
SecureCRT: Commercial Software that you have to buy ( http://www.vandyke.com/ )
Via transfer menu select Zmodem and upload your file then enter these commands (if it is necessary)
cd destination-directiory
[b:75d4ac7c33]rz filename[/b:75d4ac7c33]
If you want to download use this command
[b:75d4ac7c33]sz filename[/b:75d4ac7c33]
Then select download from transfer menu and enter the filename. (if it is necessary)
Note: rx, sx, rz, sz commands are Unix/Linux commands (programs)
It doesn't matter which command are used, rx , sx or rz, sz procedures are the same, if you use rx, sx your terminal software should support Xmodem file transfer protocol and for sz, rz Zmodem file transfer protocol
You can Use Xmodem, Ymodem or Zmodem protocols but if you want to know about advantages, it is this way:
[b:75d4ac7c33]Efficiency: Zmodem & Ymodem & Xmodem[/b:75d4ac7c33]
You can use either rx, sx (Xmodem) ry, sy (Ymodem) and rz, sz (Zmodem)
[b:75d4ac7c33]2) FTP over SSH/SSH2 [/b:75d4ac7c33] such as SecureFX, PSFTP, Secure CommNet and etc.
PUTTY/PSFTP is free software ( http://www.chiark.greenend.org.uk/~sgtatham/putty/ )
These softwares let you use FTP commands such as get, mget, put, mput, ls … and transfer files over SSH2 by your Root account.
[b:75d4ac7c33]3) rsync[/b:75d4ac7c33] Unix/Linux Boxes
If you have a local Linux /Unix workstation you can transfer any files you wish using rsync via ssh (rsync –e ssh)
Note: You can install Red Hat Linux on your local workstation as a multi boot system for Windows and Linux.
P.S. I’ve received a lot of requests asking about programs if it supports what I wrote or not, this is why I reposted this guide and changed the structure to methods.