Тёмный

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

Corey Schafer
Подписаться 1,3 млн
Просмотров 317 тыс.
50% 1

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

Опубликовано:

 

1 авг 2017

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 257   
@coderoam
@coderoam 6 лет назад
Well Explained. As a developer, it was bit difficult to understand others tutorial. Keep up the good work.
@kalyanhr
@kalyanhr 5 лет назад
Simple, Clear and Short video about SSH. Just just nailed it. Awesome job!!
@IcarianVX
@IcarianVX 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.
@randmssolutions9013
@randmssolutions9013 2 года назад
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 4 года назад
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.
@mattiylen
@mattiylen 3 года назад
Genuinely, very clear demonstration, rarely one can find as perfect as this
@chetansharma5514
@chetansharma5514 4 года назад
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 2 года назад
because he does not know himself
@baldmike
@baldmike 6 лет назад
This one's the winner! Great video, very helpful, thank you.
@skyhackerfpv7104
@skyhackerfpv7104 3 года назад
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!
@erickmwazonga8871
@erickmwazonga8871 6 лет назад
A clear and detailed explanation for a beginner and a clarification guide for a guru. Thank you.
@kjm2002
@kjm2002 Год назад
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!
@ayan1386
@ayan1386 4 года назад
Amazing tutorial. Concise and to-the-point!
@muijnckj
@muijnckj 6 лет назад
Finally a simple tutorial, it's not all that hard you know... Thank you!!
@w.schobel1514
@w.schobel1514 7 лет назад
As always: Perfect explained. Great vid !
@bcross9109
@bcross9109 6 лет назад
Thanks for this video, way more practical and informative than the others I found!
@geoptus
@geoptus 5 лет назад
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
@pauloferreira4040
@pauloferreira4040 6 месяцев назад
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 5 лет назад
Thank you! This is by far the cleanest explanation
@Vegetableswithpants
@Vegetableswithpants Год назад
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.
@blogcorpo
@blogcorpo Год назад
5 years and still amazing. ♥
@zax71
@zax71 2 года назад
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 ~
@rafaeltravecedo7905
@rafaeltravecedo7905 5 лет назад
Thanks a lot. Your explanation about using SSH-KEYS is very clear.
@BlancheNuit
@BlancheNuit Год назад
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
@hophmanbg
@hophmanbg 5 лет назад
You just put the light in my head thanks man and all the best.
@DannyDaDane
@DannyDaDane Год назад
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!
@anisdhouieb9918
@anisdhouieb9918 5 лет назад
very good exaplanation in just 15 minutes
@rmcellig
@rmcellig 4 года назад
Excellent. Exactly what I was looking for!!
@ohtobetiramisu
@ohtobetiramisu 2 года назад
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 :)
@portfedh
@portfedh 2 года назад
I keep finding your videos. They are are so good. Thank you.
@csabajozsef8400
@csabajozsef8400 5 лет назад
Thanks for the quality videos, this is a very good place to learn.
@higiniofuentes2551
@higiniofuentes2551 2 года назад
Good video! Sometimes I didn't know I you were in the remote or in the main, but the information is accurate! Thank you!
@leopet6815
@leopet6815 3 года назад
Very concise info that is applicable to any server. Thank you!
@mamusthafa6
@mamusthafa6 3 года назад
Short and sweet. I understood very clearly. awesome teacher. Waiting for more videos like this...
@surajoberai
@surajoberai Год назад
thank you. I have successfully set up key-based authentication on the remote server
@kimgeen8002
@kimgeen8002 2 года назад
Thank you so much for this tutorial! Simple and well explained with all neccecary details!
@Appalling68
@Appalling68 2 года назад
Just stumbled upon this video. Nicely done and perfectly explained. Thank you.
@AdrianMoseley
@AdrianMoseley 3 года назад
Excellent tutorial. I can now add this to my toolbelt.
@Clem000
@Clem000 3 года назад
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.
@elpedrooo2008
@elpedrooo2008 5 лет назад
Thank You , It was A clear Explanation
@claudiom07
@claudiom07 3 года назад
Corey... you saved my life!! Thank you for your clear explanation!
@juancarlosrojas5858
@juancarlosrojas5858 Год назад
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.
@matteocassino3172
@matteocassino3172 3 года назад
Exactly what I was searching for. Thx a lot for the good job.
@magnusmorgens5966
@magnusmorgens5966 5 лет назад
Awesome now i got a safe way to enter my raspberry via pc and mobil thank you
@tommygunn2782
@tommygunn2782 Год назад
Wow, you are an amazing instructor!
@rullywow3834
@rullywow3834 5 лет назад
Great video and clear explanation. Thanks!
@Sledy95
@Sledy95 2 года назад
Great video. Pearl in the sea of confusing tutorials :D
@satyareddy7728
@satyareddy7728 5 лет назад
Well Explained on Key based authentication
@Andrei-ds8qv
@Andrei-ds8qv 5 лет назад
Very clear, very good explanation, thanks
@anandmurugan3804
@anandmurugan3804 4 года назад
Thanks You So Much For This Video.. Its really helped me a lot in understanding of SSH key based authentication
@niraj874u
@niraj874u 5 лет назад
Thank you so much. Nice Explanation.
@victorespinoza355
@victorespinoza355 3 года назад
Thanks for these wonderful tutorials Corey. I hope you keep receiving blessings, lots of blessings
@Raqueem
@Raqueem 2 года назад
Thank you for the excellent tutorial and clear articulation ! loved it !
@pierrecanisiuspaxsonessouk2434
Very clear explanations, thanks so much
@iamp1991
@iamp1991 Год назад
Thank you sir. That was clear & very useful.
@RCMOULI1
@RCMOULI1 5 лет назад
Easily explained. Keep adding more :)
@rueliotube
@rueliotube 3 года назад
Excellent video! Thanks for taking the time to educate me.
@Babe_Chinwendum
@Babe_Chinwendum 2 года назад
It was very useful to me. Thank you so much.
@supa1009
@supa1009 5 лет назад
Amazing video Corey! Thank you very much :))
@navneetsingh285
@navneetsingh285 3 года назад
great explanation...so simple
@christopergiron339
@christopergiron339 3 года назад
Really helpful video for beginners like me.
@kareemjeiroudi1964
@kareemjeiroudi1964 5 лет назад
Man, you're a goddamn good teacher 👍!
@jtrtsay
@jtrtsay Год назад
wow you are so amazing at keeping things easy to follow, successfull first try!
@riadhtroudi295
@riadhtroudi295 4 года назад
very well explained, thank you very much for your time.
@uajoku
@uajoku Год назад
Nicely explained. Thank you.
@seungwoochoe
@seungwoochoe 3 года назад
Wow, this was really helpful. Thank you!!
@smudgepost
@smudgepost 4 года назад
Thank you! I've struggled with this for so long and this covers all variations so well, thanks!
@hubercats
@hubercats 3 года назад
Very helpful post. Thank you!
@GustavAgar
@GustavAgar 6 месяцев назад
a video about ssh port forwarding of you would be legendary !!
@cyberofthinx
@cyberofthinx Год назад
Great video great simple explanation! It made my day, many thanks!
@vamsikrishna1131
@vamsikrishna1131 5 лет назад
excellent. precise and to the point..
@EdwinRombouts
@EdwinRombouts 2 года назад
Awesome tutorial, thanks a lot!
@lucienmauricesenghor8216
@lucienmauricesenghor8216 Год назад
I was waiting for this
@jingyuanhu9804
@jingyuanhu9804 5 лет назад
This is the best tutorial ever
@garryn123
@garryn123 3 года назад
clear and concise...excellent!!!
@siamakshams1923
@siamakshams1923 3 года назад
Great tutorial Corey, thank you.
@tejaseervi1151
@tejaseervi1151 2 года назад
Wow... Great explanation... As always in other videos.
@kalashshrma7265
@kalashshrma7265 5 лет назад
awesome, best explanation like always.
@subhankarb100
@subhankarb100 Год назад
really appreciated your video ....very helpful
@nidhipatel133
@nidhipatel133 3 года назад
This is the best video. Thank you so much for this.
@fata__morgana
@fata__morgana 4 года назад
Excellent tutorial!
@brokenbe
@brokenbe Год назад
Awesomely explained...ty
@sasankbabu2859
@sasankbabu2859 5 лет назад
I highly recommend this video
@sreekanthk5454
@sreekanthk5454 2 года назад
Nice and clear, Thank you
@iliasalqassar1489
@iliasalqassar1489 4 года назад
Well Explained. Thx a lot !
@bruceadam1772
@bruceadam1772 2 года назад
what a good video!!! well explained
@metamototomo
@metamototomo 2 года назад
That's amzaing tutorial. Thank you so much!
@mikedan8972
@mikedan8972 2 года назад
well explained, thank you!
@MichaelAverage
@MichaelAverage 5 лет назад
Third time this year here. thanks for this great video
@MichaelAverage
@MichaelAverage 4 года назад
Fifth*
@MichaelAverage
@MichaelAverage 2 года назад
Hey there, i am back after some time :D
@micortes89
@micortes89 4 года назад
Awesome tutorial. Thanks a lot.
@SangelRally
@SangelRally 4 года назад
That was Excellent !!!
@jamescs50
@jamescs50 3 года назад
Thank you again Corey.
@AbdulBasit-ib6by
@AbdulBasit-ib6by 2 года назад
Really awesome tutorial.
@Udaridamarakula1234
@Udaridamarakula1234 2 года назад
I immediately subscribed your channel .
@cloudblue7772
@cloudblue7772 Год назад
this Help me a lot sir!
@ravism1585
@ravism1585 2 года назад
great explanation... Thanks
@mgp09
@mgp09 3 года назад
Thank you this helped a lot.
@muijnckj
@muijnckj 6 лет назад
I would like to add that it is quite handy to make a file named 'config' in the local .ssh folder and put: Host [your shortcode] HostName [hostname] IdentityFile ~/.ssh/[key file name] User [username] ... [copy the above for other servers] You can then type in de terminal 'ssh [your shortcode]' and log in directly.
@Edg3Media
@Edg3Media Год назад
Great well done !
@officiallyjakes
@officiallyjakes 3 года назад
you teach real good.
@edgarlip2
@edgarlip2 2 года назад
this was awesome !!!!
Далее
SSH Keys
10:12
Просмотров 103 тыс.
The Hardest Challenge!
00:37
Просмотров 11 млн
OpenSSH is about to change. (For the better.)
10:00
Просмотров 139 тыс.
The Beginner's Guide To SSH
20:10
Просмотров 54 тыс.
How SSH Works
8:54
Просмотров 491 тыс.
Understanding SSH Host Keys
10:16
Просмотров 5 тыс.
Linux Crash Course - Public Key Authentication
19:05
Просмотров 33 тыс.
SSH Key Authentication | How to Create SSH Key Pairs
18:46
Setting Up SSH Keys
21:02
Просмотров 41 тыс.