my localhost /etc/hosts file? i keep on ssh'ing like user@192.168.1.xx -vvv where numbers are changing everyday
Have you... Considered making the IP static?
Hmm this will not answer your question, which to my little knowledge is an "unsolvable issue" without making the IP static or creating an in-between host to which the desktop comunicates his local IP address(...a big workaround). nmap -sP 192.168.1.1/24 assuming your router IP is 192.168.1.1(not a standard), this command will allow you to check all the hosts live from your linux terminal. It takes 12 seconds on my machine. You can get it faster by changing the 24 number. Ask me if you want to know how and if it is viable in your case
just... use the router dns??
His router's dhcp does not keep always the same IPs, and he cannot set the "DHCP reservation" since he isn't allowed to
nmap -sP 192.168.1.255/24*
also if you're doing this, just use the hostname
same output on my machine
I give you a long winded solution. On your server, that you want to SSH into, run an hourly script to write its IP address to AWS DynamoDB or Google Sheet, etc. in your machine that you use to SSH, run an hourly script to read the info from AWS DynamoDB or Google Sheet, and update your /etc/hosts
Oh i missed that part. Let me backread it. Thanks alot
https://developers.google.com/sheets/api/guides/values#python
couldn't he use ddns?
it will use public IP, not private IP
https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/GettingStarted.Python.03.html
Обсуждают сегодня