Pi – remote file transfer using scp

FILE TRANSFERS

Once ssh-server is up and running you can use your OS file manager (e.g nautilus) to connect to the pi or remote computer running ssh-server
stfp://ip of remote computer
or
sftp://hostname of remote computer
Then enter the User name and password and you should be able to connect AND have read / write access on certain directories.

USING SCP (secure copy)  NB this is work in progress.

You can also use scp
man scp for more info

scp user@host:file
this will take a remote file and copy it to your local directory

scp file user@host:path
will copy a local file to the remote server,  note you need to specify the path e.g /home/user

 

You can do the same thing using the graphical user interface.  Assuming here you are using a Linux based distro,  I am going to connect to my Pi using the xubuntu filemanager.

Firstly I know the ip address, so I pinged this to make sure the remote host was up

ping 192.168.1.30
PING 192.168.1.30 (192.168.1.30) 56(84) bytes of data.
64 bytes from 192.168.1.30: icmp_seq=1 ttl=64 time=998 ms
64 bytes from 192.168.1.30: icmp_seq=2 ttl=64 time=0.666 ms
64 bytes from 192.168.1.30: icmp_seq=3 ttl=64 time=0.776 ms
^C
--- 192.168.1.30 ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 1998ms
rtt min/avg/max/mdev = 0.666/333.441/998.882/470.537 ms

in the address / path bar enter sftp://ip of remote computer

in the dialogue box enter the uid / password

 

sftp-connect

 

 

 

 

 

 

 

 

Once connected you can browse the remote computers filesystem and drag / drop files to / from the user,  if you logged in as pi then you need to open /home/pi

 

sftp-loggedin

 

 

 

 

 

 

 

 

There is another tutorial here that can complement this one nicely, and is probably a little better.  Click here.