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!

    • @KeepItTechie
      @KeepItTechie  2 ปีที่แล้ว +2

      Thanks man! I appreciate it.

  • @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 TH-cam! again thanks!

  • @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! 😉💪🏾💯

  • @x13years
    @x13years 2 ปีที่แล้ว +1

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

  • @devian3634
    @devian3634 ปีที่แล้ว +2

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

  • @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.

  • @user-re5le7ei3k
    @user-re5le7ei3k ปีที่แล้ว +2

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

  • @petedabomb643
    @petedabomb643 2 ปีที่แล้ว

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

  • @SharronV
    @SharronV หลายเดือนก่อน

    Yes! It worked!! Thank you 😊

  • @CC-gb8di
    @CC-gb8di 3 ปีที่แล้ว

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

  • @Mrjonarias
    @Mrjonarias 4 ปีที่แล้ว +2

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

    • @KeepItTechie
      @KeepItTechie  4 ปีที่แล้ว +2

      No problem bro! Thanks for checking my channel out!

  • @faizalimuhammadzoda4731
    @faizalimuhammadzoda4731 2 ปีที่แล้ว +1

    Good explanation. Thanks.

  • @Nick-jz3ic
    @Nick-jz3ic ปีที่แล้ว +2

    Good video, I'm teaching myself SSH pretty much with TH-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.

  • @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!

  • @ccetlot512
    @ccetlot512 3 ปีที่แล้ว

    Slowly setting up my home server. Thanks Josh!

  • @ajayneuman282
    @ajayneuman282 19 วันที่ผ่านมา

    great video! thanks for the help

  • @NamLe-fl4sz
    @NamLe-fl4sz 5 หลายเดือนก่อน +1

    From VietNam. Thanks pro

  • @daveporter4667
    @daveporter4667 2 ปีที่แล้ว

    Great info. Thank you SIR!

  • @lord-baltimore
    @lord-baltimore 4 ปีที่แล้ว +1

    Awesome tutorial content!

  • @brunognoato8016
    @brunognoato8016 2 ปีที่แล้ว

    Really good video ❤️

  • @wethepeople6179
    @wethepeople6179 2 ปีที่แล้ว

    A++ thank you thank you!!

  • @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!

  • @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.

  • @cosmic2x472
    @cosmic2x472 2 ปีที่แล้ว

    great video!!!

  • @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!

  • @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

  • @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 2 หลายเดือนก่อน

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

    • @KeepItTechie
      @KeepItTechie  2 หลายเดือนก่อน

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

  • @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

  • @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. th-cam.com/video/XCjK2nwmAmg/w-d-xo.html

  • @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

  • @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.

  • @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

  • @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.

  • @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 :(