How to add a new user on a Linux server (with SSH access)

Sdílet
Vložit
  • čas přidán 7. 07. 2024
  • Get $200 free Digital Ocean credit using this link! www.juniordevelopercentral.co...
    In this tutorial we'll take a look how to add a new user in a Linux environment, in particular a DigitalOcean droplet and then make sure the new user can access the server with an SSH key by making sure they have the approopriate public key.
    We'll also make sure the user has sudo access so they can perform tasks with elevated privileges.

Komentáře • 28

  • @thenameisnigel
    @thenameisnigel Před 4 měsíci +1

    Thanks a lot this was insightful!

    • @codewithbubb
      @codewithbubb  Před 4 měsíci

      You’re welcome. Hope you found it useful.

  • @SoRusted
    @SoRusted Před 8 měsíci +1

    exactly what i needed

  • @kRystal69
    @kRystal69 Před rokem +1

    Thank you, that was really useful... ✨✨

    • @codewithbubb
      @codewithbubb  Před rokem

      You’re welcome! Glad you found it helpful.

  • @andriyobukhovskyi9962
    @andriyobukhovskyi9962 Před 9 měsíci +1

    great explenation!

  • @djlee0721
    @djlee0721 Před rokem +1

    Thanks!

  • @stephanaugustin7107
    @stephanaugustin7107 Před 8 měsíci +1

    Thank you🎉🎉

  • @maxfir
    @maxfir Před 10 měsíci

    How to add another developer (with custom ssh key) as an user to VPS?

  • @zoki5388
    @zoki5388 Před rokem +2

    Hey could you make video on how to deploy multiple node apps on ubuntu.

    • @codewithbubb
      @codewithbubb  Před rokem +1

      Sure, do you mean hosting multiple node apps under one domain/ip or the actual deployment (or both)?

    • @codewithbubb
      @codewithbubb  Před rokem

      I did a video to answer your question here: How to Host Multiple Node Apps with nginx and pm2
      czcams.com/video/5NwwuSWrCdw/video.html

  • @Babbili
    @Babbili Před rokem +1

    Nice,

    • @codewithbubb
      @codewithbubb  Před rokem +1

      Thanks very much 👍

    • @Babbili
      @Babbili Před rokem +1

      @@codewithbubb you're welcome, i wonder where can i get Linux commands documentations, is there a good site for that

    • @codewithbubb
      @codewithbubb  Před rokem +1

      I think it's probably one of those things when you need to use a command you end up Googling. I think if you search for 'Linux cheat sheet' you'll probably get some useful lists to get you familiar with some common commands.

  • @samiajulia6863
    @samiajulia6863 Před 11 měsíci +1

    4:37,what is the chown command hidden by you plz

  • @TB7530
    @TB7530 Před 5 měsíci +1

    Thanks for the vid. chown -R yields invalid group

    • @codewithbubb
      @codewithbubb  Před 5 měsíci

      Thanks very much. What was the full command you were running? Chances are either the user doesn't exist or the group doesn't exist.

    • @TB7530
      @TB7530 Před 5 měsíci

      @@codewithbubb chown -R natixis:natixis .ssh/ I just created the user.