By Geriko
Hi there,
I’ve been following https://crosstalksolutions.com/definitive-guide-to-hosted-unifi/ in order to setup the unifi controller on DO. It works perfectly, but my ISP supplies me with a dynamic IP address. We have a lot of work going on at the moment which means throughout the day, the power goes off for a while and we power up, I get a new IP. Is there anyway to handle this with firewall rules to I don’t have to keep manually logging in and allowing my new ip through? At the moment I’m having to load the console from the DO account page and login as root to unblock myself.
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
Wow thank you for such an awesome reply. I do have an old RP licking sround, though it’s quite old but might be well suited to this. I’ll give it a crack, though I will no doubt be asking further questions.
Thank you again
I have them both setup (the local via a linux vm on windows 10). I can see it’s running but it’s not working and I have a feeling it’s to do with the local. How does the cron task access the server via the ssh login if no password is given in the script?
Also if my ip is now blocked from ssh access, surely the cron task can’t access the server?
Hi Jon,
I stayed up late last night going over your OP and I came to the same conclusions. I now have a passwordless key and have allowed my custom ssh port to be accessed. I have adjusted the script, however I get the error:
"sudo: no tty present and no askpass program specified"
I can confirm that I can ssh from the VM to the server without needing a password by sshing manually.
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.