Difference between revisions of "Remote login and file transfer"

From Raspberry Pi Min-Grant project
Jump to: navigation, search
 
Line 18: Line 18:
 
<font size="3"><code>scp /path/to/file/ pi@&lt;IP Address&gt;:/home/pi/path/on/the/pi&nbsp;</code></font>
 
<font size="3"><code>scp /path/to/file/ pi@&lt;IP Address&gt;:/home/pi/path/on/the/pi&nbsp;</code></font>
  
<font size="3"><code></code></font>You will receive a promt to enter the password.
+
You will receive a promt to enter the password.
 
 
<font size="3"><code></code></font>
 

Latest revision as of 10:44, 17 April 2015

Remote Login


It is sometimes necessary to log into the Raspberry Pi remotely from another computer. If the Pi and the computer are on the same network, we can do this as follows:

  1. Determine the IP address of the Pi by typing hostname -I  
  2. From the remote computer type ssh pi@<IP Address>  

You will then be promted to enter the password. Once this has been done, you will gain access to the command line.


File transfer

It is possible to transfer a file from a remote computer to the Pi using the scp command. On the command line of the remote host type

scp /path/to/file/ pi@<IP Address>:/home/pi/path/on/the/pi 

You will receive a promt to enter the password.