sudo: unable to resolve host Cloudron: Name or service not known
Solved
Support
-
Hi,
I wanted to remove the manual backups. I logged into the server using SSH using my server's login details and tried to remove the backup files following this: https://docs.cloudron.io/backups/#cleanup-backups
rm -rf
showedPermission denied
, then I usedsudo
and then it said this:sudo: unable to resolve host Cloudron: Name or service not known
I ran
sudo nano /etc/hosts
which showed this:127.0.0.1 localhost # The following lines are desirable for IPv6 capable hosts ::1 ip6-localhost ip6-loopback fe00::0 ip6-localnet ff00::0 ip6-mcastprefix ff02::1 ip6-allnodes ff02::2 ip6-allrouters ff02::3 ip6-allhosts
Should I make changes to this file? Or does Cloudron create separate SSH credentials?
Please guide me.
Thanks
-
This is because the hostname
Cloudron
is not in/etc/hosts
. You can change the hostname to something meaningful (to you) and add an entry in /etc/hosts as well. That way the warning will go away.For example, add something like below :
127.0.1.1 myservername
-
-