how to transfer file from your local computer

Radio_Head

Well-Known Member
Verifed Vendor
Feb 15, 2002
2,051
1
343
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
 

Radio_Head

Well-Known Member
Verifed Vendor
Feb 15, 2002
2,051
1
343
[quote:030598c132][i:030598c132]Originally posted by thaphantom[/i:030598c132]

I would ftp to your account then in shell move it and chmod it..[/quote:030598c132]

It's an idea . More fast ?

[quote:030598c132]why u would want to upload files to your clients site I will never know...[/quote:030598c132]

suppose that I need to install a script upon request on a client account ... but I cannot login on his account with root password ..
so for example I have to upload 100 files , what I have to do without client ftp password ?
 

Radio_Head

Well-Known Member
Verifed Vendor
Feb 15, 2002
2,051
1
343
is there any way to create a root (admin) ftp account ?
 

itf

Well-Known Member
May 9, 2002
624
0
316
[quote:11a86774e0][i:11a86774e0]Originally posted by Radio_Head[/i:11a86774e0]

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:11a86774e0]
You can upload and download files via SSH sessions, i.e Root SSH session

It depends on which software do you use for this purpose:
[b:11a86774e0]1) SecureCRT[/b:11a86774e0] (Commercial Software, you have to buy)
If you are using Vandyke’s SecureCRT for the SSH session: (http://www.vandyke.com/)
Via transfer menu select Xmodem and upload your file then enter these commands

cd destination-directiory
[b:11a86774e0]rx –x filename[/b:11a86774e0]

If you want to download use this command

[b:11a86774e0]sx –x filename[/b:11a86774e0]

Then select download from SecureCRT transfer menu and enter the filename.
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:

Efficiency: Zmodem & Ymodem & Xmodem

You can use either rx, sx (Xmodem) ry, sy (Ymodem) and rz, sz (Zmodem)

[b:11a86774e0]2) PUTTY/psftp (free software)[/b:11a86774e0]
However I recommend using PUTTY which you can download from this URL http://www.chiark.greenend.org.uk/~sgtatham/putty/

Use “ [b:11a86774e0]psftp.exe[/b:11a86774e0] “ it is like ftp but via SSH session you can upload and download multiple files with ftp commands to/from your entire server using your Root account.

[b:11a86774e0]3) rsync[/b:11a86774e0]
If you have a local Linux /Unix workstation you can transfer any files you wish using rsync via ssh (rsync –e ssh)
 

rpmws

Well-Known Member
Aug 14, 2001
1,822
9
318
back woods of NC, USA
go to http://www.vandyke.com and get a copy of SecureFX ..it's a FTP program that also lets you do SSH2 and SFTP to the server. You can login to the server with a FTP like file browser and be in as &root& I love it .Use it all the time.
 

itf

Well-Known Member
May 9, 2002
624
0
316
[quote:b71149bfeb][i:b71149bfeb]Originally posted by rpmws[/i:b71149bfeb]

go to http://www.vandyke.com and get a copy of SecureFX ..it's a FTP program that also lets you do SSH2 and SFTP to the server. You can login to the server with a FTP like file browser and be in as &root& I love it .Use it all the time.[/quote:b71149bfeb]Yes SecureFX is another software like, Secure CommNet

and ...
 

Radio_Head

Well-Known Member
Verifed Vendor
Feb 15, 2002
2,051
1
343
thank you , I will try them . As of now I was using zoc 4.05 and it's fantastic (emtec.com) . I am to investigate if it has similar ftp commands. Thanks however !
 

itf

Well-Known Member
May 9, 2002
624
0
316
[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.
 

Radio_Head

Well-Known Member
Verifed Vendor
Feb 15, 2002
2,051
1
343
Hello !

I found that ZOC 4.05 supports rz and sz linux commands from SSH !! Your files are transferred using zmodem
under an ssh connection !


Suppose that you want transfer all your files in c:/test
on your server on /home/user/test

1) Open Zoc and connect to your server
2) Go to /home/user/test
3) type [b:3150387811]rz[/b:3150387811]
4) go to c:/test and select your files and click ok
5) Transfer begins (!) .

On other side if you use [b:3150387811]sz[/b:3150387811] you may transfer files from server to your local machine on c:/downloads directory (!).

1) #sz filename filename filename ...

Really good !

I have not tested rz and sz on other terminal , however using
zoc they work really fine !
Zoc is absolutely the best terminal for me !
 

Radio_Head

Well-Known Member
Verifed Vendor
Feb 15, 2002
2,051
1
343
rx and sx works fine too on zoc , however I prefer rz and sz .
 

itf

Well-Known Member
May 9, 2002
624
0
316
[quote:a493d359b5][i:a493d359b5]Originally posted by Radio_Head[/i:a493d359b5]

rx and sx works fine too on zoc , however I prefer rz and sz .[/quote:a493d359b5]
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 and for sz, rz your terminal software should support Zmodem file transfer

However using FTP over SSH is easier for multiple transfers (I wrote in my previous post)
 

Radio_Head

Well-Known Member
Verifed Vendor
Feb 15, 2002
2,051
1
343
#man rz
for more detals :p
 

itf

Well-Known Member
May 9, 2002
624
0
316
Radio_Head,
Don't you think that it is not necessary to post the man result I think everybody can use
man rz or man rx or man sx or man sz
commands, huh
 

Radio_Head

Well-Known Member
Verifed Vendor
Feb 15, 2002
2,051
1
343
[quote:3bf8236956][i:3bf8236956]Originally posted by itf[/i:3bf8236956]

[quote:3bf8236956][i:3bf8236956]Originally posted by Radio_Head[/i:3bf8236956]

rx and sx works fine too on zoc , however I prefer rz and sz .[/quote:3bf8236956]
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 and for sz, rz your terminal software should support Zmodem file transfer

However using FTP over SSH is easier for multiple transfers (I wrote in my previous post)[/quote:3bf8236956]


May you give me an example of ftp over ssh using putty ?
Suppose to transfer all files contained on c:/test
on /user/public_html/cgi-bin , what I have to do with putty ?

Thank you
 

itf

Well-Known Member
May 9, 2002
624
0
316
[quote:10f173cff5][i:10f173cff5]Originally posted by Radio_Head[/i:10f173cff5]

[quote:10f173cff5][i:10f173cff5]Originally posted by itf[/i:10f173cff5]

[quote:10f173cff5][i:10f173cff5]Originally posted by Radio_Head[/i:10f173cff5]

rx and sx works fine too on zoc , however I prefer rz and sz .[/quote:10f173cff5]
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 and for sz, rz your terminal software should support Zmodem file transfer

However using FTP over SSH is easier for multiple transfers (I wrote in my previous post)[/quote:10f173cff5]


May you give me an example of ftp over ssh using putty ?
Suppose to transfer all files contained on c:/test
on /user/public_html/cgi-bin , what I have to do with putty ?

Thank you[/quote:10f173cff5]
Read my post again I wrote to use PSFTP
this post
http://forums.cpanel.net/read.php?TID=4906&page=1#21222
 

Radio_Head

Well-Known Member
Verifed Vendor
Feb 15, 2002
2,051
1
343
[quote:c3a0861535][i:c3a0861535]Originally posted by itf[/i:c3a0861535]

[quote:c3a0861535][i:c3a0861535]Originally posted by Radio_Head[/i:c3a0861535]

[quote:c3a0861535][i:c3a0861535]Originally posted by itf[/i:c3a0861535]

[quote:c3a0861535][i:c3a0861535]Originally posted by Radio_Head[/i:c3a0861535]

rx and sx works fine too on zoc , however I prefer rz and sz .[/quote:c3a0861535]
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 and for sz, rz your terminal software should support Zmodem file transfer

However using FTP over SSH is easier for multiple transfers (I wrote in my previous post)[/quote:c3a0861535]


May you give me an example of ftp over ssh using putty ?
Suppose to transfer all files contained on c:/test
on /user/public_html/cgi-bin , what I have to do with putty ?

Thank you[/quote:c3a0861535]
Read my post again I wrote to use PSFTP
this post
http://forums.cpanel.net/read.php?TID=4906&page=1#21222

[/quote:c3a0861535]

Yes , I logged in using PSFTP , but then what I have to do ?
Suppose to transfer all files contained on c:/test
on /user/public_html/cgi-bin , what I have to do with PSFTP
after logged in ? Thank you
 

itf

Well-Known Member
May 9, 2002
624
0
316
[quote:0f3b69a04b][i:0f3b69a04b]Originally posted by Radio_Head[/i:0f3b69a04b]

Yes , I logged in using PSFTP , but then what I have to do ?
Suppose to transfer all files contained on c:/test
on /user/public_html/cgi-bin , what I have to do with PSFTP
after logged in ? Thank you
[/quote:0f3b69a04b]
use [b:0f3b69a04b]put [/b:0f3b69a04b]and[b:0f3b69a04b] get [/b:0f3b69a04b] commands
or type help for more information
PSFTP does not support mput and mget commands

there are some other softwares as I discussed in this post
http://forums.cpanel.net/read.php?TID=4906&page=1#21222
 

Radio_Head

Well-Known Member
Verifed Vendor
Feb 15, 2002
2,051
1
343
[quote:d74d921a27][i:d74d921a27]Originally posted by itf[/i:d74d921a27]

[quote:d74d921a27][i:d74d921a27]Originally posted by Radio_Head[/i:d74d921a27]

Yes , I logged in using PSFTP , but then what I have to do ?
Suppose to transfer all files contained on c:/test
on /user/public_html/cgi-bin , what I have to do with PSFTP
after logged in ? Thank you
[/quote:d74d921a27]
use [b:d74d921a27]put and get [/b:d74d921a27] command
or type help for more information
PSFTP does not support mput command

there are som other software as I discussed in this post
http://forums.cpanel.net/read.php?TID=4906&page=1#21222[/quote:d74d921a27]

ok , thanks . I found this http://the.earth.li/~sgtatham/putty/0.52/htmldoc/Chapter6.html#6 useful too . Thanks (truly I prefer rz and sz using zoc)
 

itf

Well-Known Member
May 9, 2002
624
0
316
[quote:4a15270221][i:4a15270221]Originally posted by Radio_Head[/i:4a15270221]

ok , thanks . I found this http://the.earth.li/~sgtatham/putty/0.52/htmldoc/Chapter6.html#6 useful too . Thanks (truly I prefer rz and sz using zoc)[/quote:4a15270221]
The best choice is [b:4a15270221]rsync[/b:4a15270221] no software can compete with functionality of rsync
 

jimcarter

Well-Known Member
Jun 30, 2002
152
0
166
UK
cant you just login to your clients cpanel using your password, and then use the file manager to upload the file?