SSH Keys | How to Setup in Ubuntu 20.04

Поділитися
Вставка
  • Опубліковано 10 тра 2020
  • What's up Linux Community!!! In this video we’ll focus on setting up SSH keys for Ubuntu 20.04 installation. SSH keys provide an easy, secure way of logging into your server and are recommended for all users.
    SSH Man Page: linux.die.net/man/1/ssh
    Please enjoy the video and if you have any questions, leave a comment down below. My goal is to expand the Linux community.
    Remember to Like, Share and Subscribe if you enjoyed the video!
    Also if you want to support the channel you can send donations to my CashApp: cash.app/$KeepItTechie
    ✔️SOCIAL NETWORKS
    -------------------------------
    KeepItTechie: keepittechie.com/
    Facebook: / keepittechie
    Twitter: / keepittechie
    Instagram: / keepittechie
    Discord: / discord
    CashApp: cash.app/$KeepItTechie
    Patreon: / keepittechie
    --------------------------------
    #KeepItTechie
    #SSHKeys
    #Ubuntu20
    #Linux Support the channel via Coin
    Bitcoin Address:
    bc1qgxzq9ck5nhud8ekmpt46l9u5gn3ty5w9n6mmd4
    Ethereum Address:
    0xb8fC845963893644EEF435552F2B6bd30Ad012E3
    XRP Address:
    rKrUvWFT7hVtD5JCcCY9s2HFQZ5UHViLD
    Litecoin Address:
    LNfWvkcFVfKZXJV28dzU9g7FQ7FYtg5cFg
    Dash Address
    Xu4VgqCkN4d1JKfzdjMNdb63Mfup3Cmnqx
    Zcash Address
    t1fqyxF3pFtRDuz2Vprt4m5pXWa8rs97Swr
  • Наука та технологія

КОМЕНТАРІ • 67

  • @tyty21315
    @tyty21315 3 роки тому +9

    I honestly just want to take a second to appreciate how well you explain stuff. If you were to make a course i would almost certainly buy it!
    Recommending your channel to all my classmates at university!

  • @Nick-jz3ic
    @Nick-jz3ic Рік тому +2

    Good video, I'm teaching myself SSH pretty much with UA-cam. I'll give it a try.

    • @KeepItTechie
      @KeepItTechie  Рік тому +2

      Awesome. I have a video that will drop in the morning about an application to help protect your ssh server.

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

    finally got around to setting up ssh with the server I setup thanks to you! Greatest Of All Techies! The GOAT for real! Sharing so much knowledge on Linux through UA-cam! again thanks!

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

    Thank you! Your tip to be logged in to the server via cmd while beeing in powershell helped me. Thanks!

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

    that was really good. I've heard this explained in so many different ways, but really heard you

  • @spaceiswater6539
    @spaceiswater6539 4 роки тому +4

    Your channel is awesome thank you so much for all the time you spend in making them, you're a fantastic in the way you explain things were others make it difficult to understand. I hope you have a super weekend.

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

      Thanks man! I try to keep it simple! 😉💪🏾💯

  • @juliagabrielapinedo7332
    @juliagabrielapinedo7332 Рік тому +3

    Thank you so much! This was really well explained. I'm new to Linux and I understood your video very well. Keep up the awesome content! 😃👍

    • @KeepItTechie
      @KeepItTechie  Рік тому +2

      No problem. I have a free course on my channel if you need more help.

  • @devian3634
    @devian3634 Рік тому +2

    Bro I just wanna say thank you. This is very helpful and very succinct.

  • @CC-gb8di
    @CC-gb8di 3 роки тому

    the best video about configuring ssh on YT. well done dude!! Thumbs up and sub

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

    great tutorial! thanks for sharing your knowledge in such a useful way!

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

      No problem bro! Thanks for checking my channel out!

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

    Thank you so much Josh.
    I just had my first linux instalation on my laptop.
    The way to create and configure the ssh key on this operating system is new for me.
    Your tutorial is fantastic and the way you explain all details are very good.
    I just subscribe to your channel and set the bell notification on All
    Respect and appreciation!
    Mr. fumdfum

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

      Glad it helped! Thanks for subbing!! I appreciate it!

  • @user-re5le7ei3k
    @user-re5le7ei3k Рік тому +2

    Aswesome video bro! Just the one I needed. Thank you

  • @SharronV
    @SharronV Місяць тому

    Yes! It worked!! Thank you 😊

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

    Slowly setting up my home server. Thanks Josh!

  • @ajayneuman282
    @ajayneuman282 10 днів тому

    great video! thanks for the help

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

    Good explanation. Thanks.

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

    Useful, good idea to have good OpSec and lock down all your systems. If you're able to login with just an ip and password, a hacker can do it too. One tip for using nano is hit Ctrl+W and type in whatever you're looking for, so for example PasswordAuthentication and it'll take you right to it. Saves me a lot of time.

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

      Great tip! I always forget Ctrl+W is the search! Thanks bro!

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

    Great info. Thank you SIR!

  • @NamLe-fl4sz
    @NamLe-fl4sz 4 місяці тому +1

    From VietNam. Thanks pro

  • @lord-baltimore
    @lord-baltimore 4 роки тому +1

    Awesome tutorial content!

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

    Thanks for your tutorial but I have the question that
    How to get a password at 5:51?
    I have tried user password when sign in to the device but it not work

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

    Another good one!! Need to setup an OpenVPN on my lab and see if yo can get in.

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

      Thanks man! I got you. I need to do a video on OpenVPN too. I have one setup on a raspberry pi on my network as a test.

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

    Really good video ❤️

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

    A++ thank you thank you!!

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

    Very well done video! Couple quick questions though. I have multiple devices and want to set up ssh from each device to the ssh server. When I create the ssh keys should I do so on the server and then send the public key to the device or should I be creating the keys on the device then sending the public key to the server. Also do I need to disable password authentication on each device?

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

      Thanks! Yes and yes. Its best that you disable password authentication after you install the keys. Make sure you test it all before making the change in the SSH config. I've locked my self out of a remote server before. That is no fun. LOL

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

      @@KeepItTechie Thank you!

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

    great video!!!

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

    Can you SSH outside of your LAN network? Like SSH from my Mac at work to my Ubuntu computer at home?

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

      Yes you can. You have to setup port forwarding on your router to point to your server. I talk about it in the video.

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

      I can't believe you make this question. :)

  • @ajaya8421
    @ajaya8421 Місяць тому

    hi bro..can we use the same publickey for differenr servers

    • @KeepItTechie
      @KeepItTechie  Місяць тому

      Yes you can. Just copy to all the servers you want to connect to.

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

    How to move file between 2 Ubuntu?
    Actually the name of file is an variable the extension is fix. There is no option on scp that delete the file u just copy?

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

      rsync is the most secure way of transferring files between Linux computers. It also has a delete option.

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

      @@KeepItTechie how is the command line like?

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

      I want create a script that automatically transfer the files to one macchine to other... In windows is easy but Linux performs much better

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

      @@brunognoato8016 I'm currently working on a video of a application called syncthing. This will be perfect for the situation you are facing. You basically install it on both systems and setup the sync between two folders based on your settings. Otherwise I have a video on how to use rsync, that can help you accomplish the same thing. ua-cam.com/video/XCjK2nwmAmg/v-deo.html

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

    so we need to use command on windows like this?*correct me please.
    ssh -"ssh server keys"(SHA:blablabla) -b "ssh server ip"
    and then write the pasword. like that?

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

    Starts at 2:02

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

    i tried to copy by ssh-copy-id but its showing connection refused

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

      Check to make sure the firewall on the server isn't blocking port 22.

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

    AM GETTING THE ERROR BELOW WHILE RUNNING IT ON JUPYTER NOTE BOOK
    client_id = 11
    ib = IB()
    ib.connect('127.0.0.1', 7496, clientId=client_id)
    THEN ERROR COMES OUT AS
    ConnectionRefusedError: [Errno 111] Connect call failed ('127.0.0.1', 7496)
    YOUR INPUT IS HIGHLY APPRECIATED

  • @MichaelBLive
    @MichaelBLive 9 місяців тому

    lost access to a remote rack server last week. had to rebuild.

    • @KeepItTechie
      @KeepItTechie  9 місяців тому

      Dang bro! What exactly happened? You should have been able to access the server directly to reset the SSH config. Was it on a cloud platform ie AWS, Azure, etc? No need to rebuild if you can get to it.

    • @MichaelBLive
      @MichaelBLive 9 місяців тому

      @@KeepItTechie it's hosted on a vps. the emergency console wouldn't work and support was confused. i had to act.

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

    I got a question i dont have a linux client how can you do this with a windows client i used putty gen made the keys used ftp to copy the key over when when i try to connect it says Server refused our key

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

      Sorry for the delay! If all else fails put the key on a usb and physically put it on the server, unless it's in the cloud. Let me know if this helps!

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

      @@KeepItTechie yeah that's what I ended up doing that's the only thing I could think of as well

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

    Just one question - i have tried generating with puttygen the keys (manually and I store the private key in my PC, and load in into Putty at log in), and paste it manually in the authorized_keys and it works...
    but I want to do the same for a regular user as well (non-root)...
    I have added the key code in the same file but I was unable to log in with my public key - 'server refused your key"... I have also tried adding the pub key code logged in via the regular user as well, so the root folder is /myuser/etc/ssh/authorized_keys but same problem.... not sure what I am doing wrong it's driving me insane :(