I would like to add a bookmark in nautilus to a sftp server whose ip address changes over time.
I am connecting through sftp to a (google cloud instance) server, inserting in the file explorer the address:
where xx.xxx.xx.xx is an IP address. I would like to add this as a bookmark in Nautilus, which I can easily do with
ctrl +d. However, the ip address keeps changing from day to day. I can retrieve the IP address with a command like:
gcloud compute instances describe instancename --format="get(networkInterfaces.accessConfigs.natIP)"
Is there any way I can have a dynamic Nautilus bookmark, that would use the command above to create the correct address? Or can I run a command myself to update a static nautilus bookmark?