Initial Ubuntu Server Setup for Beginners

If You Appreciate What We Do Here On TecMint, You Should Consider:

  1. Stay Connected to: Twitter | Facebook | Google Plus
  2. Subscribe to our email updates: Sign Up Now
  3. Get your own self-hosted blog with a Free Domain at ($3.45/month).
  4. Become a Supporter - Make a contribution via PayPal
  5. Support us by purchasing our premium books in PDF format.
  6. Support us by taking our online Linux courses

We are thankful for your never ending support.

Matei Cezar

I'am a computer addicted guy, a fan of open source and linux based system software, have about 4 years experience with Linux distributions desktop, servers and bash scripting.

Your name can also be listed here. Got a tip? Submit it here to become an TecMint author.

RedHat RHCE and RHCSA Certification Book
Linux Foundation LFCS and LFCE Certification Preparation Guide

You may also like...

11 Responses

  1. brent says:

    Ok having issues here following along and everything goes ok until the “cat /etc/hostname” = No such file or directory, If I continue i can get the public key generated but can not copy to remote, it says no such file. I am stopping here until I find out what is going on. Needing help.

    • Ravi Saive says:

      @Brent,

      Have you set your Ubuntu hostname using following command?

      $ sudo hostnamectl set-hostname tecmint
      

      Also what output you getting when verifying hostname using these commands?

      $ hostname
      $ hostname -s
      

      How you copying the SSH key to remote server? have you used following command?

      $ ssh-copy-id [email protected]_server
      
      • Brent Norris says:

        I will try this later this evening but a couple of questions on the $ssh-copy-id [email protected]_server is the remote_server supposed to be the ip address of the remote server or just remote_server?

        I am new to the Linux.

      • Brent Norris says:

        Ok yes i have set the host name as brentcpr-server

        $ hostname  
        $ hostname -s 
        

        output is brentcpr-server.

        When I to the ssh-copy-id [email protected]_server it says ERROR: failed to copy ID file /home/bjn/.pub : No such file to install the contents of /home/bjn/.pub anyway look at the -f option.

        • Ravi Saive says:

          @Brent,

          It seems the path is not correct, if you could try again generating SSH Key Pair using following commands.

          $ su - ubuntu_user
          $ ssh-keygen -t RSA -b 2048
          $ ssh-copy-id [email protected]_server
          
          • Brent Norris says:

            Thank you for your help, I was finally able to get past that part, I think, not on the part that says.

            $ cat ~/.ssh/id_rsa.pub
            

            It says no such file or directory

          • Ravi Saive says:

            @Brent,

            That’s really great to hear, that you solved yourself…:)

          • Brent Norris says:

            Also after that,

            $ sudo ufw status verbose
            mine shows as
            TO                                  Action                                  From
            2345/tcp                      allow                                      anywhere
            80                                   allow                                     anywhere
            Anywhere                     allow                                      25,443/tcp
            2345/tcp (v6)               allow                                      Anywhere   (v6)
            80  (v6)                           allow                                      Anywhere (v6)
            Anywhere  (v6)            allow                                       25,443/tcp    (v6)
            

            I have went on to follow the rest of the instructions listed and will stop here, until I can get the other problem figured out and this one. Again thanks for any and all the help.

          • Ravi Saive says:

            @Brent,

            UFW is in active state, means running fine..

  2. xABBAAA says:

    The very good thing, Thanks to the Great stuff.

Got something to say? Join the discussion.

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.