VladiBG, when you said *Don't use cat to copy files* I needed to know why because I got cat code that can copy files. So now I’m looking for the diff other then cat limitations with binary files and directories. Security should be the same because they both go thru the encrypted ssh tunnel I guest. But I’m with you
VladiBG, scp encrypt the data too.
I have 30 files on my desktop in a directory call
.setup.
scp command did not copy one file but it did copy the other 29 files to the remote. Notice how it acted up showing parts of the .cshrc regardless of what you use.
...............................................................
Code:
(~) scp -P 2002 -r /.setup/* rome0@100.101.102.104:SETUP/
rome0@100.101.102.104's password:
echotc: Unknown capability `md'.
echotc: Unknown capability `AF'.
echotc: Unknown capability `AF'.
echotc: Unknown capability `AF'.
echotc: Unknown capability `me'.
I had to copy the dot-file by itself and
scp verified the copy:
Code:
(~) scp -P 2002 -r /.setup/.cshrc rome0@100.101.102.104:SETUP/.cshrc
rome0@100.101.102.104's password:
echotc: Unknown capability `md'.
echotc: Unknown capability `AF'.
echotc: Unknown capability `AF'.
echotc: Unknown capability `AF'.
echotc: Unknown capability `me'.
.cshrc 100% 2835 98.4KB/s 00:00
cat worked perfectly well for copy-file but it did not output the name of file:
Code:
(~) cat /.setup/.cshrc | ssh rome0@100.101.102.104 -p 2002 'cat >SETUP/.cshrc'
rome0@100.101.102.104's password:
echotc: Unknown capability `md'.
echotc: Unknown capability `AF'.
echotc: Unknown capability `AF'.
echotc: Unknown capability `AF'.
echotc: Unknown capability `me'.
Although I went off topic (seeking remote --> desktop <- from desktop ideas) what cause this limitation with
scp? Can
scp copy all the files at once, if so, what am I’m missing? Other then that scp is a wonderful tool.