Welcome to Rider Pi Robot repository
3. Remote file transfer
3. Remote file transfer
3. Remote file transfer3.1 Install WinSCP3.2 Get the IP address of the Raspberry Pi3.3 SSH remote file transfer
Sometimes we need to transfer files between two different systems, Windows and Raspberry Pi. Since these are two different file systems, we need to use the so-called ssh service to transfer files across systems.
3.1 Install WinSCP
Download the program from the WinSCP official website: https://winscp.net/eng/download.php
Double-click to open the program and start the installation. Click Accept to accept the agreement, and then follow the prompts to install.
Click Finish to complete the installation.
You can see that there is an additional WinSCP icon on the desktop
.
3.2 Get the IP address of the Raspberry Pi
When booting the factory image for the first time, you need to configure the network connection in the boot program, then enter the remote control interface, press the button in the lower right corner of the Rider-pi screen, and you can query the corresponding IP address.
3.3 SSH remote file transfer
After opening the WinSCP software, the following login interface appears.
File protocol: select SFTP for the file protocol, Host name: Raspberry Pi IP address, Port number: default 22 is fine, User name: Raspberry Pi username (pi), Password: login password (yahboom).
After entering the correct information, you can click Save to save the filled information, so you don’t have to enter it again the next time you log in.
Click Login and the following interface will be displayed after the login is successful. The left one is the folder of the win computer, and the right one is the folder of the Raspberry Pi.
There are three ways to transfer files. The first is to directly drag the file from the left to the right, or from the right to the left, and the system will automatically copy a copy of the file and transfer it.
The second is to select the file with the mouse and press the F5 key, and the selected file will be copied to the other side.
The third is to select the file and click the right button of the mouse. If it is transferred from a Windows computer to a Raspberry Pi, click upload.
A prompt will pop up, you can choose not to prompt again, and click OK, and the file will be automatically transferred.
If you transfer files from the Raspberry Pi to a Windows computer, right-click the file and select Download
Note: File transfer requires that the computer and the Raspberry Pi are in the same LAN, and the Raspberry Pi has the SSH service enabled. Sometimes if you encounter a file transfer failure, it is usually because the Raspberry Pi does not have enough permissions. Please operate within the user pi directory permissions.