Operate a Raspberry Pi Remotely

A very good article about how to configure a Raspberry Pi to work without monitor and keyboard can be found here. However, here is my own story about it:

After the Raspberry Pi had arrived, I went through the usual learning curve of a complete beginner – flashing a SD card with Raspbian, searching frantically a spare HDMI cable to connect it to my TV, not having a USB keyboard at hand (oops!) and last but not least having neither much  idea about the Raspberry Pi hardware nor about Linux. The USB keyboard problem I could solve relatively quickly thanks to my self-made UART-to-RS232 adaptor (see step 2) connected to a RS232-to-USB cable. Raspbian by default starts up a terminal on the UART and one can connect to it from a PC with a terminal program. So no USB keyboard and no TV is required.

Because the serial port has later to be enabled for communication with the PV inverter device (see step 2), I have to use another way to log into a console, for example to log in from a remote PC using SSH connections. Here is what I have done, but the way I did this is certainly not the only possibility: When logged in via the USB-UART cable (using TeraTerm on the PC side), I get the MAC for the Raspberry Pi’s ethernet adapter by typing:
ifconfig
The result is something like this:
iwconfig
The obtained MAC address (right of HWaddr) I entered on the configuration page of my router and associated a fixed IP address to it. Restart the router. The Raspberry Pi’s network settings remain unchanged, so it will obtain its IP address via DHCP. The router associates the Raspberry’s MAC with a certain IP address, so the Raspberry will get always the same IP address.
With this known IP address I can now easily connect to the console via SSH. On the PC side I am using PuTTY. Recently I have installed Bitvise SSH client. I use this more and more, because it has some interesting features (a subject for a new blog post, maybe).
I am asking myself however how this can be done on a Raspberry Pi Zero. The Zero has no Ethernet adapter. This will be a subject of a new blog.