Coyote Linux & BrazilFW Add-ons - Secure Copy Tutorial

Secure Copy Tutorial

Default Coyote Linux & BrazilFW installation does not support any way how to copy files from or to coyote linux box over network. I don't like using ftp client package, because it's quite big, but what bothers me most...it requires working FTP server and it's not always available.

Secure copy (scp) is a program for copying files securely over the network. It uses ssh for data transfer, and uses the same authentication and provides the same security. Scp can be used to copy files in either direction; that is, from the local system to the remote system or vice versa.

What you will need

Copying files

Now you can try copying files from/to your linux box. Open command prompt and change to directory where Putty isinstalled. Type pscp.exe and you should see some output similar to this.

C:\#Programs\Putty>pscp.exe -v
PuTTY Secure Copy client
Release 0.53b
...

To copy local file to Coyote Linux box use following command (copy test.txt from current directory to coyote box into /tmp/ directory)

C:\#Programs\Putty>pscp test.txt root@192.168.0.1:/tmp/

output:
root@192.168.0.1's password:
test.txt                  |          4 kB |   4.5 kB/s | ETA: 00:00:00 | 100%

Substitute 192.168.0.1 with your coyote box IP address. To copy the same file back from coyote linux box to current directory use following command

C:\#Programs\Putty>pscp root@192.168.0.1:/tmp/test.txt test.txt

output:
root@192.168.0.1's password:
test.txt                  |          4 kB |   4.5 kB/s | ETA: 00:00:00 | 100%

You can also copy whole directory, but this is unsafe operation and you have to tell Putty first with -unsafe parameter. To copy whole /etc directory on coyote box to local .\localetc\ subdirectory you can use following command.

C:\#Programs\Putty>pscp -unsafe root@192.168.0.1:/etc/* localetc/

If you want to copy also subdirectories recursively, you could use following command.

C:\#Programs\Putty>pscp -unsafe -r root@192.168.0.1:/etc/* localetc/
Created by Dolly 2004, hosted by CZI s.r.o.