Difference between revisions of "Remote login and file transfer"
Line 1: | Line 1: | ||
+ | '''<span style="font-size:medium;">Remote Login</span>''' | ||
+ | |||
+ | |||
+ | |||
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: | 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: | ||
Line 5: | Line 9: | ||
You will then be promted to enter the password. Once this has been done, you will gain access to the command line. | You will then be promted to enter the password. Once this has been done, you will gain access to the command line. | ||
+ | |||
+ | |||
+ | |||
+ | '''<span style="font-size:medium;">File transfer</span>''' | ||
+ | |||
+ | <font size="3"><span style="line-height: 25.600000381469727px;"It is possible to transfer a file from a remote computer to the Pi using the <span style="font-family:courier new,courier,monospace;">scp</span> command. On the command line of the remote host type <code> scp /path/to/file/ pi@<IP Address>:/home/pi/path/on/the/pi <\code> <br/></span></font> |
Revision as of 10:41, 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:
- Determine the IP address of the Pi by typing
hostname -I
- 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
<span style="line-height: 25.600000381469727px;"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 <\code>