As you know, SSH and Samba are really two basic things in Linux in general and HASS in particular. In today’s lesson, I will show you another way to browse HASS files without installing Samba.
How to install and use WinSCP
1. Installation:
Go to WinSCP home page and download the installation. This paragraph is basically so I put the picture up.
2. Use:
Once installation is complete, open WinSCP and see the following picture:
There are 4 fields to fill:
1 / Domain or IP of Pi (if you use the domain, remember to open port 22 to 22, ip of Pi)
2 / Port default is 22 (that is the SSH port you guys)
3 / User: is the user that you installed in SSH (hassio default is root , hassbian default is pi )
4 / Password: SSH Password that you set up.
When done, press Login
If successful, you will have access to Pi, and browse the file inside it. The file browsing interface you will see is as follows. In the picture below, I browse to the l-bot folder
To open the file to edit the code, first right-click the file to open, select Edit -> Configure, then select the path to the editor you often use (Notepad ++ or Visual Code or …).
After the setup exam is complete, you can open the code editing file already.
This is more convenient than Samba because Samba must be in the same LAN as Pi, but this way, you can still go back to Pi to browse the file (by entering domain – remember to open port 22 first).