Cloudron makes it easy to run web apps like WordPress, Nextcloud, GitLab on your server. Find out more or install now.


Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Bookmarks
  • Search
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo

Cloudron Forum

Apps | Demo | Docs | Install
  1. Cloudron Forum
  2. Support
  3. sudo: unable to resolve host Cloudron: Name or service not known

sudo: unable to resolve host Cloudron: Name or service not known

Scheduled Pinned Locked Moved Solved Support
sshbackups
3 Posts 2 Posters 475 Views 2 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • R Offline
    R Offline
    Ritesh
    wrote on last edited by Ritesh
    #1

    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 showed Permission denied, then I used sudo 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

    1 Reply Last reply
    0
    • girishG Offline
      girishG Offline
      girish
      Staff
      wrote on last edited by
      #2

      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
      
      R 1 Reply Last reply
      0
      • girishG girish

        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
        
        R Offline
        R Offline
        Ritesh
        wrote on last edited by
        #3

        @girish got it, thanks 🙂

        1 Reply Last reply
        0
        • girishG girish marked this topic as a question on
        • girishG girish has marked this topic as solved on
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Bookmarks
        • Search