HOW TO SECURE A RASPBERRY PI 4 SERVER ON YOUR NETWORK - EPISODE 4

Поділитися
Вставка
  • Опубліковано 5 лис 2024

КОМЕНТАРІ • 29

  • @MarkAlterBridge
    @MarkAlterBridge 2 роки тому

    Thank you for these tutorials! They are so much more robust than anything else I've seen on the raspberry pi.
    I've been reading up on the commands being used so I've a good understanding and just happened to read this in the manual for AllowUsers "This keyword can be followed by a list of user name patterns, separated by spaces." In the video you mentioned comma separated so just wanted to put that out there in-case someone has an issue (if it even is)

  • @markspc1
    @markspc1 3 роки тому +7

    Great tutorial.
    Would you consider using a larger command line screen and a larger font, thanks.

    • @addicted2techuk
      @addicted2techuk  3 роки тому

      Yes good point I will zoom in more going forward. Thank you for your feedback.😃

  • @allanlorriman2016
    @allanlorriman2016 3 роки тому +2

    Hi, great video. You have covered lots of points I have not seen on youtube before. Wel done.

    • @addicted2techuk
      @addicted2techuk  3 роки тому

      Thank you for your feedback. I am glad you got value from it..😃

  • @khaledFadouchi
    @khaledFadouchi 3 роки тому +1

    Thanks a lot for all videos ! very well explained thanks a lot for your effors !!

  • @SeanCannon_ph
    @SeanCannon_ph 3 роки тому +2

    Good video. Note that when adding multiple users to Allowusers in sshd_config @12:33, do not use a comma in between user names, but use a space instead; so user1 user2 etc. It's a good tip you have to leave a working window open while testing a change - that saved my bacon.

  • @sekander1253
    @sekander1253 3 роки тому +1

    Absolutely useful tutorial. Thank you very much indeed.

  • @billgross3579
    @billgross3579 3 роки тому +2

    These are great tutorials! I'm glad I found you. But please, please make the window and the text of what you're demonstrating as large as possible. Many of us watch on phones. I cannot read what's in your putty window.

    • @addicted2techuk
      @addicted2techuk  3 роки тому +1

      Thank you for the feedback Bill. I will do my best.

  • @robertfichtinger
    @robertfichtinger Рік тому

    Your video's have been an absolute bless, really wonderful! They actually persuaded me to do lots more with the Raspberry than I could have ever foreseen. In the video you are talking about extra layers of security (SSH keys and password authentication). Do you have practical suggestions how best to achieve those? Personally I would love to be able to access the Raspberry Pi from outside.

  • @carlosescalona5838
    @carlosescalona5838 2 роки тому

    Hello and thank you for this series of videos. I have a question about the part of locking the pi account, because i am following the tutorials but i'm using ubuntu server, so i wonder if in my situation i can completely erase the 'ubuntu' account, thanks in advance.

  • @Ret_af_vet_2019
    @Ret_af_vet_2019 Рік тому

    Greetings! Thanks for these great videos! Can't wait to get started....I have RPI 4 with 4gb ram...are we able to perform all these installations in this series on one raspberry pi? Will it have enough resources? Sorry for the beginner question!!

  • @indigowyrm
    @indigowyrm 3 роки тому

    Thanks - great tutorials ! but when I add a new user and add to groups when I try to login with new user the password doesn't work. I already have OMV installed and have changed the hostname but still normally login with the pi@192.x.x.x. and new user shows in admin and sudo groups and in omv dashboard any ideas pleaee? cheers

  • @TechEtrix
    @TechEtrix 2 роки тому

    I renamed the pi account in the Pi Imager and therefore did not change the user, since no default pi user exists for me. Is this somehow problematic?

    • @addicted2techuk
      @addicted2techuk  2 роки тому +1

      No the default pi account should still be there. Changing the username in the imager should create a new user account.

    • @TechEtrix
      @TechEtrix 2 роки тому

      @@addicted2techuk I have listed all existing user accounts and groups using "cat /etc/passwd", which did not show any remainders of a Pi user account.

    • @addicted2techuk
      @addicted2techuk  2 роки тому +1

      OK that makes sense. If you run the install script it should work fine. It will create the pi account if it is needed.

  • @glyndavies
    @glyndavies 3 роки тому +1

    I've created a user (newpi) and added groups adm and sudo. The first sudo command I issue (e.g. 'sudo hostname ') I am prompted to input the password for newpi. Thereafter, I can sudo as normal but every time I start a new session or reboot I have to provide newpi's password the first time I sudo. You don't appear to mention this behaviour in your tutorial: is this how it's supposed to work? It's a pain and severely limits the usefulness of a non-pi user.

    • @addicted2techuk
      @addicted2techuk  3 роки тому

      Yes it is normal and is a security feature built into Linux. 😃

    • @glyndavies
      @glyndavies 3 роки тому

      @@addicted2techuk Thanks for the reply. Not sure if that's just a nuisance or if it makes it a showstopper for me. I'll ponder.

    • @davidschulze1009
      @davidschulze1009 3 роки тому +4

      Do: sudo visudo
      Add under "#includedir /etc/sudoers.d": username ALL=(ALL) NOPASSWD:ALL
      and you are fine.

    • @glyndavies
      @glyndavies 3 роки тому

      @@davidschulze1009 THanks for that! I'll check it out later today.

    • @glyndavies
      @glyndavies 3 роки тому +2

      @@davidschulze1009 That worked a treat. Thank you for your suggestion, which I followed. Before I did, I learned a lot about groups, adduser and moduser , and how to set my text editor to be vi permanently - so it's all been good. I can now go ahead and finish securing my NAS. Your suggestion was a BIG help.

  • @MahipalYadavmahii
    @MahipalYadavmahii 3 роки тому

    Getting Access denied on logging in witthe new user. Tried created new users and logging in an new putty session. but reasults is the same.

    • @MahipalYadavmahii
      @MahipalYadavmahii 3 роки тому +1

      Found the solution. first i need to add a user to ssh group before attempting to log in that user in raspberry pi using putty.

    • @addicted2techuk
      @addicted2techuk  3 роки тому

      Glad you solved it Mahipal. All the best! :)