How to Add a User with SSH Access on Ubuntu

Поділитися
Вставка
  • Опубліковано 21 січ 2025

КОМЕНТАРІ • 50

  • @Azazel_Rev
    @Azazel_Rev Рік тому +1

    minimal length, easy to understand. You are so great

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

    Thank you very much! This is very helpful 👍 you've earned yourself a subscriber 🙂

  • @salemzridette2653
    @salemzridette2653 2 роки тому +2

    Thank you very helpful ! How can I add a public key to connect with this ssh user?

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

    That's what I was looking for....Thank you so so so so so much 🤗 You got new subs.

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

    I can’t copy csr code from my terminal in one click Wordpress vultr. Can you help me?

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

    I wish you would show hot to add a new user when you have a public key setup on the server. How do you generate additional private keys from an existing public key?

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

    but your on the same network... how would you connect this up from WAN network on another network and possible firewall

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

    can you mention every keyboard shortcut and so on the u use because is hard to follow with out knowing the software, but everything is awesome what great videos

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

      Sorry about that, yes I will try to mention this in future videos

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

    i love how these people never go over errors or possibility or errors. Soo. What do you do when passwords aren't set. Even after sudo passwd changes? Yet the ssh login still doesn't work or allow passwords to be used?

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

    I tried this on aws ubuntu 18.04, I was able to create the user but was not able to ssh like you did in the end.

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

      Did you try to reboot the server

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

      ​@@TonyTeachesTech I have already solved it :)
      And I have also forgotten how I solved it tbh. I usually forget small issues.

  • @инж.ЯворИванов

    ssh: connect to host port 22: Connection refused

  • @marcoFVD
    @marcoFVD 4 роки тому

    not good :-( after permission set to no for root is it not possible to have root (sudo) acces for the new user.

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

    sure wish I could do this while the microSD card with the Linux server OS is in my PC instead of in a headless Pi. I can only add that one line now (AllowUsers) and not the password. That seems like a real flaw.

  • @dandrevs
    @dandrevs 4 роки тому

    great video Tony. Would you be up for creating a complete guide on how to create and secure a web server? For example Digital Ocean with CyberPanel market place app and the whole security portion, auto-updates, disable passwords logins etc? Thanks!

    • @TonyTeachesTech
      @TonyTeachesTech  4 роки тому +1

      Great suggestion! I'm considering doing a security video, but probably not until early next year. Stay tuned :)

    • @dandrevs
      @dandrevs 4 роки тому

      @@TonyTeachesTech will do! Take care man!

    • @TonyTeachesTech
      @TonyTeachesTech  4 роки тому +1

      @@dandrevs You too!

    • @tenminutetokyo2643
      @tenminutetokyo2643 4 роки тому

      See Random Thoughts channel.

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

    great video but remember to let people know that they should add the user they're logged in with, if any, since adding ONLY root and the new user will have the currently logged in user unable to ssh login after the current session terminates. (personal experience with this video 2yrs ago. I had to go buy a keyboard to get into my server again). Otherwise great vide.

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

      Happened to me too :/ to resolve it, I logged in as one of those (non-sudo) users that I had added to the "AllowUsers" row, then typed in terminal "su - myUserName" to switch to my own user from which I could no longer ssh. With the sudo rights on my own user, I added myUserName back to the AllowUsers row, and otherwise followed the steps of this video.

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

    Still give me permission denied in RHEL 7.1, please try again

  • @JabeyeAmoozesh-p6x
    @JabeyeAmoozesh-p6x Місяць тому

    Thank you!

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

    Hi, thanks. How do you insert a line (keyboard shortcut)? I ended up having a swap file and it asks me to delete it. How can I do that and then move on?

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

      If you use vim, you type i to go into insert mode. Then you can edit the file like normal. To save type Esc :wq Enter

    • @tannerstolte4139
      @tannerstolte4139 11 місяців тому

      @@TonyTeachesTech just the tip i was looking for.

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

    Thank you sir

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

    Helpful

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

    If your logged in as root you don't need sudo just saying 👍

  • @ddrci88
    @ddrci88 4 роки тому +1

    Always add user, never ever use root and do your things I know its easy to use root but its dangers.....

    • @TonyTeachesTech
      @TonyTeachesTech  4 роки тому +2

      :) you got it!

    • @ddrci88
      @ddrci88 4 роки тому

      @@TonyTeachesTech you teach me I watch your all videos thank you for all ;)

  • @Javaman92
    @Javaman92 7 місяців тому

    Ya know what is damn annoying? Trying to follow something on the very bottom of the screen that is covered up when ya pause the video. That is annoying.

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

    merc