I'm running Arch on my daily use laptop and I have two SSH terminals open up every time I login. I SSH into another Arch laptop, which is essentially a network connected hard drive in which I backup this laptop via Cron and rsync. The other device is Rasp Pi which is running OSMC and I do basic maintanance with the laptop. However the IPs keep changing all the time in my Wifi network so automatic SSH logins and Cron backups isn't working(since the command is username@ipaddress). Is there a way to assign static names to each Linux systems so the IP Address is not needed? Or am I completely misunderstanding how this thing works? Thanks.
SSH without knowing IP addresses
ssh;ip;hostname
If you have control over the WiFi you should have control over the DHCP server (in home networks most likely your WiFi router). I would then propose these possible solutions:Configure your DNS server (probably also on the WiFi router) to assign host names to the devices you want to reach. Then you can contact them by name rather than address.Configure your DHCP server so that the devices you want to reach always get assigned the same IP addresses. Most DHCP servers should be able to do so. The server identifies them using their MAC addresses.Have a look which address range is used by your DHCP server to assign addresses to devices. This could probably be something like 192.168.0.100 to 192.168.0.200 (for IPv4). Then assign some static addresses not in that range manually on the devices you want to read. OSMC is Debian-based, so you would most do it in /etc/network/interfaces. For Arch Linux, the configuration is different.