Linux/Mac Tutorial: SSH Key-Based Authentication - How to SSH Without a Password

Sdílet
Vložit
  • čas přidán 1. 08. 2017
  • In this Linux/Mac terminal tutorial, we will be learning how to configure ssh keys so that we can login to our servers without a password. Not only is this more convenient, but it is also more secure. This also allows us to write automated scripts to talk to our servers without the need of putting in passwords constantly. Let's get started.
    How to Create a Network of Machines in VirtualBox with SSH Access:
    • How to Create a Networ...
    ✅ Support My Channel Through Patreon:
    / coreyms
    ✅ Become a Channel Member:
    / @coreyms
    ✅ One-Time Contribution Through PayPal:
    goo.gl/649HFY
    ✅ Cryptocurrency Donations:
    Bitcoin Wallet - 3MPH8oY2EAgbLVy7RBMinwcBntggi7qeG3
    Ethereum Wallet - 0x151649418616068fB46C3598083817101d3bCD33
    Litecoin Wallet - MPvEBY5fxGkmPQgocfJbxP6EmTo5UUXMot
    ✅ Corey's Public Amazon Wishlist
    a.co/inIyro1
    ✅ Equipment I Use and Books I Recommend:
    www.amazon.com/shop/coreyschafer
    ▶️ You Can Find Me On:
    My Website - coreyms.com/
    My Second Channel - / coreymschafer
    Facebook - / coreymschafer
    Twitter - / coreymschafer
    Instagram - / coreymschafer
    #Linux #Mac

Komentáře • 257

  • @coderoam
    @coderoam Před 6 lety +70

    Well Explained. As a developer, it was bit difficult to understand others tutorial. Keep up the good work.

  • @kalyanhr
    @kalyanhr Před 5 lety +19

    Simple, Clear and Short video about SSH. Just just nailed it. Awesome job!!

  • @IcarianVX
    @IcarianVX Před 4 lety +4

    FINALLY - I have been messing with opening a dynamic tunnel from a linux machine TO a Mac for hours now. This tutorial (while backwards) was what I needed. Thanks Corey.

  • @chetansharma5514
    @chetansharma5514 Před 4 lety +31

    You have this special quality to explain things with simplicity.. Be it git or linux or python. I just enjoy your videos. A massive yes to your videos because you show hands on and not just theory. Awesome beyond Awesomeness

    • @m22d52
      @m22d52 Před 2 lety

      because he does not know himself

  • @randmssolutions9013
    @randmssolutions9013 Před 2 lety +3

    As always, Corey explained the usage in a manner that is easily understood. I was stumped by the official SSH documentation because it doesn't clearly indicate which machine to copy the public key over to. Thank you Corey.

  • @AndyDavis007
    @AndyDavis007 Před 4 lety +1

    Hey, Corey. I've used a couple of your tutorials so far. I set up (2) virtual Ubuntu-18.04 servers in VirtualBox on a host network with ssh keys login only. Since my host laptop is Ubuntu I do have the ssh-copy-id command but I'm glad you showed the "manual" way of configuring it too. Thanks again.

  • @baldmike
    @baldmike Před 6 lety +21

    This one's the winner! Great video, very helpful, thank you.

  • @mattiylen
    @mattiylen Před 3 lety +1

    Genuinely, very clear demonstration, rarely one can find as perfect as this

  • @geoptus
    @geoptus Před 5 lety +4

    This is by far the best and clearest explanation of how to implement k-b-a.
    I have used keys for a while but never fully understood the details.
    Thanks for this great tutorial Corey

  • @erickmwazonga8871
    @erickmwazonga8871 Před 6 lety +1

    A clear and detailed explanation for a beginner and a clarification guide for a guru. Thank you.

  • @w.schobel1514
    @w.schobel1514 Před 7 lety +9

    As always: Perfect explained. Great vid !

  • @bcross9109
    @bcross9109 Před 6 lety +5

    Thanks for this video, way more practical and informative than the others I found!

  • @ayan1386
    @ayan1386 Před 4 lety +10

    Amazing tutorial. Concise and to-the-point!

  • @muijnckj
    @muijnckj Před 6 lety +3

    Finally a simple tutorial, it's not all that hard you know... Thank you!!

  • @kmontoya87
    @kmontoya87 Před rokem

    The quality and execution of this is so spot on to a tee - even 5 years old, this is golden content, thank you so much!

  • @pauloferreira4040
    @pauloferreira4040 Před 7 měsíci

    Extremely clean and direct information. This soluton worked for me at the first trial! Thanks for taking the time to do this video.

  • @rajeevsuraneni8805
    @rajeevsuraneni8805 Před 5 lety +6

    Thank you! This is by far the cleanest explanation

  • @DannyDaDane
    @DannyDaDane Před rokem

    The way I remember is that the public key is like the lock on the door that everyone can try their private keys on, but only your private key will actually open the lock.
    Copying the Public key is just installing the lock on the door on the server, that only your private key can open.
    Great video btw!

  • @skyhackerfpv7104
    @skyhackerfpv7104 Před 3 lety

    Yes! It makes sense to me now. Public key goes on the remote server in the authorized_keys file, it was so helpful to see this being done. THANK YOU!

  • @hophmanbg
    @hophmanbg Před 5 lety +2

    You just put the light in my head thanks man and all the best.

  • @rafaeltravecedo7905
    @rafaeltravecedo7905 Před 5 lety +2

    Thanks a lot. Your explanation about using SSH-KEYS is very clear.

  • @rmcellig
    @rmcellig Před 4 lety +1

    Excellent. Exactly what I was looking for!!

  • @BlancheNuit
    @BlancheNuit Před 2 lety

    I''ve looked 4-5 videos on how to do that, maybe I'm dumb asf but none helped me.
    Your video was crystal clear and it instantly worked, thanks

  • @Vegetableswithpants
    @Vegetableswithpants Před rokem

    Thank you for this video! The way you explained the pub key process finally clicked with me, after I spent yesterday reading documentation and getting it wrong.

  • @zax71
    @zax71 Před 2 lety +1

    Great tuturial! Works on Windows to Linux too. If you use powershell the commands will be the same, just you have to type out your home directory manually when doing the scp instead of ~

  • @mamusthafa6
    @mamusthafa6 Před 3 lety +1

    Short and sweet. I understood very clearly. awesome teacher. Waiting for more videos like this...

  • @csabajozsef8400
    @csabajozsef8400 Před 5 lety +3

    Thanks for the quality videos, this is a very good place to learn.

  • @leopet6815
    @leopet6815 Před 3 lety +1

    Very concise info that is applicable to any server. Thank you!

  • @higiniofuentes2551
    @higiniofuentes2551 Před 2 lety

    Good video!
    Sometimes I didn't know I you were in the remote or in the main, but the information is accurate!
    Thank you!

  • @ohtobetiramisu
    @ohtobetiramisu Před 2 lety

    Holy shit thank you, I was trying to ssh into my ubuntu server through windows 11 and I knew it was way simpler than I was putting it out to be. Great and easy tutorial :)

  • @anisdhouieb9918
    @anisdhouieb9918 Před 5 lety +1

    very good exaplanation in just 15 minutes

  • @kimgeen8002
    @kimgeen8002 Před 2 lety +1

    Thank you so much for this tutorial! Simple and well explained with all neccecary details!

  • @Appalling68
    @Appalling68 Před 2 lety

    Just stumbled upon this video. Nicely done and perfectly explained. Thank you.

  • @RCMOULI1
    @RCMOULI1 Před 5 lety

    Easily explained. Keep adding more :)

  • @AdrianMoseley
    @AdrianMoseley Před 3 lety

    Excellent tutorial. I can now add this to my toolbelt.

  • @rullywow3834
    @rullywow3834 Před 5 lety +1

    Great video and clear explanation. Thanks!

  • @elpedrooo2008
    @elpedrooo2008 Před 5 lety +2

    Thank You , It was A clear Explanation

  • @portfedh
    @portfedh Před 2 lety

    I keep finding your videos. They are are so good. Thank you.

  • @matteocassino3172
    @matteocassino3172 Před 3 lety

    Exactly what I was searching for. Thx a lot for the good job.

  • @claudiom07
    @claudiom07 Před 3 lety

    Corey... you saved my life!! Thank you for your clear explanation!

  • @niraj874u
    @niraj874u Před 5 lety +2

    Thank you so much. Nice Explanation.

  • @Raqueem
    @Raqueem Před 2 lety

    Thank you for the excellent tutorial and clear articulation ! loved it !

  • @supa1009
    @supa1009 Před 5 lety +1

    Amazing video Corey! Thank you very much :))

  • @smudgepost
    @smudgepost Před 4 lety +1

    Thank you! I've struggled with this for so long and this covers all variations so well, thanks!

  • @Andrei-ds8qv
    @Andrei-ds8qv Před 5 lety +1

    Very clear, very good explanation, thanks

  • @satyareddy7728
    @satyareddy7728 Před 5 lety +1

    Well Explained on Key based authentication

  • @rueliotube
    @rueliotube Před 3 lety

    Excellent video! Thanks for taking the time to educate me.

  • @kareemjeiroudi1964
    @kareemjeiroudi1964 Před 5 lety +5

    Man, you're a goddamn good teacher 👍!

  • @blogcorpo
    @blogcorpo Před rokem

    5 years and still amazing. ♥

  • @seungwoochoe
    @seungwoochoe Před 3 lety

    Wow, this was really helpful. Thank you!!

  • @anandmurugan3804
    @anandmurugan3804 Před 4 lety +1

    Thanks You So Much For This Video.. Its really helped me a lot in understanding of SSH key based authentication

  • @Sledy95
    @Sledy95 Před 2 lety

    Great video. Pearl in the sea of confusing tutorials :D

  • @magnusmorgens5966
    @magnusmorgens5966 Před 5 lety +3

    Awesome
    now i got a safe way to enter my raspberry via pc and mobil
    thank you

  • @victorespinoza355
    @victorespinoza355 Před 4 lety

    Thanks for these wonderful tutorials Corey. I hope you keep receiving blessings, lots of blessings

  • @tommygunn2782
    @tommygunn2782 Před rokem

    Wow, you are an amazing instructor!

  • @siamakshams1923
    @siamakshams1923 Před 3 lety

    Great tutorial Corey, thank you.

  • @lucienmauricesenghor8216

    I was waiting for this

  • @Clem000
    @Clem000 Před 3 lety

    Thanks this was really handy for me. I am using tunneling and had to ensure that both the public key for my personal machine and the tunnel were (concatentated) in the authorized_keys file.

  • @riadhtroudi295
    @riadhtroudi295 Před 4 lety +1

    very well explained, thank you very much for your time.

  • @garryn123
    @garryn123 Před 3 lety

    clear and concise...excellent!!!

  • @vamsikrishna1131
    @vamsikrishna1131 Před 5 lety +1

    excellent. precise and to the point..

  • @kalashshrma7265
    @kalashshrma7265 Před 5 lety +1

    awesome, best explanation like always.

  • @juancarlosrojas5858
    @juancarlosrojas5858 Před rokem +1

    Gracias. Muy bien, excelente. Me aclaraste mucho. En Windows también se debe usar scp para copiar el archivo de la llave pública a la máquina remota.

  • @cyberofthinx
    @cyberofthinx Před rokem

    Great video great simple explanation! It made my day, many thanks!

  • @brokenbe
    @brokenbe Před rokem

    Awesomely explained...ty

  • @iamp1991
    @iamp1991 Před rokem

    Thank you sir. That was clear & very useful.

  • @fata__morgana
    @fata__morgana Před 5 lety +1

    Excellent tutorial!

  • @Babe_Chinwendum
    @Babe_Chinwendum Před 2 lety

    It was very useful to me. Thank you so much.

  • @pierrecanisiuspaxsonessouk2434

    Very clear explanations, thanks so much

  • @jingyuanhu9804
    @jingyuanhu9804 Před 5 lety +1

    This is the best tutorial ever

  • @uajoku
    @uajoku Před rokem

    Nicely explained. Thank you.

  • @GustavAgar
    @GustavAgar Před 6 měsíci

    a video about ssh port forwarding of you would be legendary !!

  • @iliasalqassar1489
    @iliasalqassar1489 Před 4 lety +1

    Well Explained. Thx a lot !

  • @nidhipatel133
    @nidhipatel133 Před 4 lety

    This is the best video. Thank you so much for this.

  • @surajoberai
    @surajoberai Před rokem

    thank you. I have successfully set up key-based authentication on the remote server

  • @tejaseervi1151
    @tejaseervi1151 Před 2 lety

    Wow... Great explanation... As always in other videos.

  • @micortes89
    @micortes89 Před 4 lety

    Awesome tutorial. Thanks a lot.

  • @hubercats
    @hubercats Před 3 lety

    Very helpful post. Thank you!

  • @EdwinRombouts
    @EdwinRombouts Před 2 lety

    Awesome tutorial, thanks a lot!

  • @navneetsingh285
    @navneetsingh285 Před 3 lety +1

    great explanation...so simple

  • @SangelRally
    @SangelRally Před 4 lety +1

    That was Excellent !!!

  • @Udaridamarakula1234
    @Udaridamarakula1234 Před 2 lety

    I immediately subscribed your channel .

  • @mgp09
    @mgp09 Před 4 lety

    Thank you this helped a lot.

  • @MichaelAverage
    @MichaelAverage Před 5 lety +5

    Third time this year here. thanks for this great video

  • @subhankarb100
    @subhankarb100 Před rokem

    really appreciated your video ....very helpful

  • @bruceadam1772
    @bruceadam1772 Před 2 lety

    what a good video!!! well explained

  • @sreekanthk5454
    @sreekanthk5454 Před 2 lety

    Nice and clear, Thank you

  • @christopergiron339
    @christopergiron339 Před 3 lety

    Really helpful video for beginners like me.

  • @mikedan8972
    @mikedan8972 Před 2 lety

    well explained, thank you!

  • @jamescs50
    @jamescs50 Před 3 lety

    Thank you again Corey.

  • @cloudblue7772
    @cloudblue7772 Před rokem

    this Help me a lot sir!

  • @jtrtsay
    @jtrtsay Před rokem

    wow you are so amazing at keeping things easy to follow, successfull first try!

  • @AbdulBasit-ib6by
    @AbdulBasit-ib6by Před 2 lety

    Really awesome tutorial.

  • @Ninja-iq2xt
    @Ninja-iq2xt Před 7 lety

    Nice one Corey. Can you make tutorial on pipeline @corey? As its something which very few knows and very few videos on it explaining it, we will love your quality videos on it.

  • @Edg3Media
    @Edg3Media Před rokem

    Great well done !

  • @edgarlip2
    @edgarlip2 Před 2 lety

    this was awesome !!!!

  • @metamototomo
    @metamototomo Před 2 lety

    That's amzaing tutorial. Thank you so much!

  • @ravism1585
    @ravism1585 Před 2 lety

    great explanation... Thanks

  • @IsItTimeToTravel
    @IsItTimeToTravel Před 4 lety

    This is the best explanation

  • @kurtklein9183
    @kurtklein9183 Před 3 lety

    Very useful thank you 😍