Fix for SSH Permission Denied (Public Key)

  Рет қаралды 79,673

Susan B.

Susan B.

Күн бұрын

Troubleshooting steps for the error "Permission denied (publickey)" when attempting to SSH into a remote server.
This guide assumes you have already gone through the steps of setting up SSH keys, but they’re just not working. If you haven’t already set up your keys, start here: Creating a SSH key connection with a server - • Creating a SSH key con... .
NOTES: codewithsusan.com/notes/ssh-p...
=== CHAPTERS ===
00:00 Introduction - SSH key pair basics
01:21 Check your keys are a match
03:38 Make sure SSH config is using our key
04:49 Attempt SSH connection with verbose output
05:54 Accessing server to check public key from another computer
07:03 Accessing server via a password
08:46 Accessing server via server provider console
09:40 Check public key in ~/.ssh/authorized_keys
11:29 Confirming we can now SSH in
12:05 Recap
=== RELATED VIDEOS ===
Creating a SSH key connection with a server
• Creating a SSH key con...
Command Line Basics for Web Developers (Terminal / Git Bash)
• Command Line Basics fo...
Simple Command Line Text Editing with Nano
• Simple Command Line Te...
=== PRODUCTS I USE ===
Microphone: amzn.to/3ZRPdvb
Microphone windscreen: amzn.to/3ZRPdvb
(paid links)

Пікірлер: 309
@codewithsusan
@codewithsusan 3 ай бұрын
If this info helped you out you can say thanks and support future content by clicking my Amazon affiliate link: amzn.to/3JwRQeF. If you make a purchase on Amazon within 24 hours of clicking the link I may receive a micro-commission and it costs you nothing extra. Any income from these sales goes directly to supporting me in making new videos and guides. Thank you for your support!
@FR-vr2hd
@FR-vr2hd 2 ай бұрын
Hi Susan, Thanks for the awesome tutorial. It solved the issue that I was grappling with for the past 3+ days. None of the other tutorials even come close to what and how you have described the issue and its resolution. Thanks
@fahadbutt7713
@fahadbutt7713 Жыл бұрын
Best clear, concise explanation on the internet! Thank you!
@sulemanbasit9753
@sulemanbasit9753 19 күн бұрын
thats a lie
@adityapalwankar1386
@adityapalwankar1386 Жыл бұрын
Susan, words won't be enough to thank you on how amazing this tutorial is! So informative, so many positives. To begin with the way you explained, managed, wow! + you solved my problems in less then 15 mins, I have been googling for 60 mins! Thank you
@codewithsusan
@codewithsusan Жыл бұрын
So happy it helped, @Aditya! 🙂
@sergiomancera9225
@sergiomancera9225 Жыл бұрын
Very helpful. Thank you for making these troubleshooting guides for servers. Greetings from México!!
@ashwanimehta721
@ashwanimehta721 4 ай бұрын
I was stucked in this step from last 2 days and after seeing this video i did it in less than 5 mins. Words not enough to thank you @Susan.
@spot1401
@spot1401 11 ай бұрын
This helped me a bunch since both on my phone (termux) and my laptop, there was no config file generated. One file, one line -- solved. Thank you :)
@DilatedPeoples10
@DilatedPeoples10 Жыл бұрын
I was starting to lose my mind trying to figure this out! You are a life saver, thank you!
@codewithsusan
@codewithsusan Жыл бұрын
You're welcome, glad it helped!
@sheyig346
@sheyig346 10 ай бұрын
Losing my mind right now
@zacharymcneely6039
@zacharymcneely6039 7 ай бұрын
@@sheyig346mee too lol
@laurelineparis5407
@laurelineparis5407 Жыл бұрын
Great video, explanation. Concise and accurate. Thanks for sharing such content🙌
@OrangeHat21
@OrangeHat21 Жыл бұрын
Wonderful job Susan! You just saved my life! Thank you!
@912stable
@912stable 2 ай бұрын
I love this video. Thank you, Susan. You're more helpful than the folks at DO!
@selehadinseid2958
@selehadinseid2958 Жыл бұрын
thank you you have no idea how much time it toke but after trying every thing I have seen your video it was vary clear and straight forwarded it was help full.
@codewithsusan
@codewithsusan Жыл бұрын
You're welcome - glad you found it helpful!
@PKASIMARK
@PKASIMARK Жыл бұрын
Much love from Kenya. I found this so helpful!
@yutigi
@yutigi Жыл бұрын
Thank you for guiding us Susan.
@KaWinchester
@KaWinchester Жыл бұрын
1 gün boyunca uğraşıyordum sayende halledebildim
@donlee9193
@donlee9193 9 ай бұрын
You know. I usually don't like videos much. But you solved a problem that was making me frustrate. Thank you
@Bobapartea
@Bobapartea Жыл бұрын
This was soooo helpful! Thank you so much!
@ahmeedev
@ahmeedev 8 ай бұрын
A bundle of thanks, you saved my time. Carry on helping the community ma'am. Best of luck 🤞
@codewithsusan
@codewithsusan 7 ай бұрын
Happy to help!
@saviouressien1317
@saviouressien1317 9 ай бұрын
Awesome, clear and concise tutorial.
@serialGrowth
@serialGrowth Жыл бұрын
Thank you. It helped a lot. It just worked as expected
@gwenaellebourhis976
@gwenaellebourhis976 Жыл бұрын
Thanks Susan for this really clear video !
@codewithsusan
@codewithsusan Жыл бұрын
Glad it was helpful!
@f1aziz
@f1aziz Жыл бұрын
Thank you. Adding my current pub key fixed the issue. Note to anyone using Proxmox Hypervisor for VMs: We can inject ssh keys into the vm, through the Cloud-init option.
@rupeshkl892
@rupeshkl892 Жыл бұрын
Step by step instructions, which is required for a beginner and that is what you have take us through. Thank you and will follow you..!! HIGH FIVE🤟👏
@menfem
@menfem 11 ай бұрын
thanks susan, this was a massive help !!
@fabiomatos1083
@fabiomatos1083 11 ай бұрын
thats the best video on the entire internet, thank you!
@MercelSantos
@MercelSantos 4 ай бұрын
For sure, that is the best explanation about this subject ever. You saved hours of searching time. Thanks a lot. :)
@muzikmyke3008
@muzikmyke3008 Жыл бұрын
Best video I've found. Thank you! Fixed my issue.
@codewithsusan
@codewithsusan Жыл бұрын
Glad it helped!
@datboyblu3
@datboyblu3 Жыл бұрын
Easy explanation, thank you!
@mandeepmails
@mandeepmails Жыл бұрын
Very helpful video. Thanks Susan.
@codewithsusan
@codewithsusan Жыл бұрын
Glad it was helpful!
@mamotivated
@mamotivated 2 ай бұрын
This was a very useful video btw. Editing the config file helped me to solve my issue on runpod. Thanks
@justiny.2515
@justiny.2515 7 ай бұрын
I'm so glad I had this issue, because now after watching your video, I finally have a decent understanding of how ssh works. Thank you :)
@codewithsusan
@codewithsusan 7 ай бұрын
Awesome :)
@bilalabbaszaidi
@bilalabbaszaidi 11 ай бұрын
Very well explained. Thank you
@alexyapyap74
@alexyapyap74 Жыл бұрын
thank you very much for a very good explanation!
@avaneeshthakurrana1264
@avaneeshthakurrana1264 Жыл бұрын
Thanks a ton for the detailed information ❤
@codewithsusan
@codewithsusan Жыл бұрын
No problem. Thanks for watching Avaneesh!
@gabrielpatrick6923
@gabrielpatrick6923 5 ай бұрын
This is very helpful, well articulated.
@sayehghaderi9455
@sayehghaderi9455 Жыл бұрын
Thank you. Awesome Job 🎉
@SR-fi8ef
@SR-fi8ef Жыл бұрын
Thank you, great content and very helpful.
@am7-p
@am7-p Жыл бұрын
Thank you for the step by step guide
@mariasolgonzalez4786
@mariasolgonzalez4786 Жыл бұрын
Thank u so much!!! It was very helpful ;)
@acoustic7skate
@acoustic7skate 9 ай бұрын
this was what I needed. thank you!
@harikrishna3258
@harikrishna3258 Жыл бұрын
Thank You very much Susan! It helped me fix the issue
@codewithsusan
@codewithsusan Жыл бұрын
Glad it helped!
@delesoft
@delesoft Жыл бұрын
Thank you, great content.
@SCSUSEGroupPizzaProject
@SCSUSEGroupPizzaProject 10 ай бұрын
Perfect, great video!
@upworkprofilevideonoorulam440
@upworkprofilevideonoorulam440 11 ай бұрын
nice explanation. Thanks
@shahidkhan-saladguy
@shahidkhan-saladguy 4 ай бұрын
Love you Susan.... I was struggling since 3 days thanks alot
@codewithsusan
@codewithsusan 4 ай бұрын
Glad the struggle is over :)
@lajeferrario
@lajeferrario Жыл бұрын
Great video! Thanks
@_devdoug
@_devdoug 6 ай бұрын
Thanks Susan, you help me a lot your last method. Greetings from Brazil.
@codewithsusan
@codewithsusan 6 ай бұрын
Glad it helped!
@cassius.giorgio
@cassius.giorgio 9 ай бұрын
Awesome and very clear, thanks for sharing your acknowledgement
@MarcosMGCN
@MarcosMGCN Жыл бұрын
Nice! Thanks for the help :)
@SamanyuKaushik
@SamanyuKaushik 10 ай бұрын
amazing video and notes
@phillipjohnson7928
@phillipjohnson7928 Жыл бұрын
Great Video thanks Susan
@tejasatyanarayana
@tejasatyanarayana 5 ай бұрын
I never thought it could be my cloud providers mistake I am finally able to connect to my VM Thank you
@codewithsusan
@codewithsusan 5 ай бұрын
Glad you got it sorted out!
@SanthoshHugar
@SanthoshHugar 6 ай бұрын
Very well explained. Thanks. It helped me.
@codewithsusan
@codewithsusan 6 ай бұрын
Glad it helped!
@vijetakumar7347
@vijetakumar7347 7 ай бұрын
Great explanation. Fixed my same issue with clear understanding.
@codewithsusan
@codewithsusan 7 ай бұрын
Glad it was helpful; thanks for watching.
@ruqsaysfaraway
@ruqsaysfaraway Жыл бұрын
thank you this is so helpful
@ikhwanulabiyu6325
@ikhwanulabiyu6325 Жыл бұрын
nice explanation!
@2u841r
@2u841r 12 күн бұрын
very well explained. thank you so much
@marwaka
@marwaka Жыл бұрын
This is helped me a lot
@IkanaMusicBox
@IkanaMusicBox Жыл бұрын
absolute lifesaver, thanks a lot
@codewithsusan
@codewithsusan Жыл бұрын
Glad it helped!
@Burakdagl
@Burakdagl Жыл бұрын
very helpful , thank you so much
@mcfincher29
@mcfincher29 29 күн бұрын
This saved me a lot of frustration. I couldn't find anything on google describing my issue, but I was missing the config file in ~/.ssh... Problem solved. Thank you so much
@greymatters2965
@greymatters2965 Жыл бұрын
Glad I found this
@WoLFyy2009
@WoLFyy2009 Жыл бұрын
thanks susan that was helpful
@user-dy9zn3qi9l
@user-dy9zn3qi9l Жыл бұрын
nice explanation
@gilbertintabo160
@gilbertintabo160 Жыл бұрын
this was a great explanation
@codewithsusan
@codewithsusan Жыл бұрын
Thanks!
@user-pd4fl8cb9r
@user-pd4fl8cb9r Жыл бұрын
Thank you!
@ClashRoyale-pt9zj
@ClashRoyale-pt9zj 11 ай бұрын
thanks a lot!!! i was with trouble cause of custom name: i hadn't had a config file on my .ssh dir on windows with "IdentityFile [path-to-private-key]". THANK YOU
@christiancornel4636
@christiancornel4636 Жыл бұрын
Thank you for this one. now i understand how SSH to be fixed
@biogfp9340
@biogfp9340 Жыл бұрын
Thank you!!! This solved my issue.
@codewithsusan
@codewithsusan Жыл бұрын
Excellent! :-)
@muhamadridwanfirdaus2832
@muhamadridwanfirdaus2832 6 ай бұрын
Thanks its clear step and helpful to solve my issue
@mahmoudtimoumi9061
@mahmoudtimoumi9061 9 ай бұрын
big thanks to you , You relay helped me
@TheNerdEngineer1
@TheNerdEngineer1 9 ай бұрын
Best! save my day. Thanks.
@hypolyxa7207
@hypolyxa7207 Жыл бұрын
My problem was not having a username in front of the machine I wanted to connect to (RPI) as I had changed the SD card and the username was not the same. Probably would not have noticed that if I didn't see you entered username first. :D Thanks for the video!
@elisiofilho
@elisiofilho Жыл бұрын
Great thanks!
@sajadzirak43
@sajadzirak43 8 күн бұрын
that was really really really helpful
@sequelman8997
@sequelman8997 Жыл бұрын
Subscribed, great channel
@codewithsusan
@codewithsusan Жыл бұрын
Thanks @sequelman
@aron392
@aron392 Жыл бұрын
wonderful video
@georgidimitrov1417
@georgidimitrov1417 9 ай бұрын
Subscribed!
@pablocosta7181
@pablocosta7181 Жыл бұрын
thanks sussan!!!
@stefwill
@stefwill Жыл бұрын
Interesting authorisation method for notes access :)
@codewithsusan
@codewithsusan Жыл бұрын
Seems like a fair exchange for free content, no? : )
@rothadapravith7657
@rothadapravith7657 Жыл бұрын
Glad I found this solution
@nicolascuestaquintero9708
@nicolascuestaquintero9708 Жыл бұрын
Outstanding video
@codewithsusan
@codewithsusan Жыл бұрын
Appreciate it!
@abdidahir2293
@abdidahir2293 Жыл бұрын
great job
@adammeshulam3604
@adammeshulam3604 Жыл бұрын
perfect, thanks!
@CarlosPecanha-fs4tu
@CarlosPecanha-fs4tu Жыл бұрын
Thanks!
@sanjanasrimahalingam8829
@sanjanasrimahalingam8829 Жыл бұрын
Very helpful
@laurahenaocaviedes1248
@laurahenaocaviedes1248 9 ай бұрын
Great video
@sinalisuvinya4330
@sinalisuvinya4330 3 ай бұрын
Thank you so much I owe you my degree!!!!much love
@user-xt4zj7vc5p
@user-xt4zj7vc5p 5 ай бұрын
Worked! Thanks♥︎
@soufianeelmessaoudi341
@soufianeelmessaoudi341 5 ай бұрын
Hey Susan thank you
@alfiandimasahsanulrizkiahm450
@alfiandimasahsanulrizkiahm450 11 ай бұрын
great info
@aymankamal4495
@aymankamal4495 Жыл бұрын
Great, Thanks
@TechnoBeee
@TechnoBeee Жыл бұрын
Thanks so much!
@codewithsusan
@codewithsusan Жыл бұрын
You're welcome!
@sr.alejandro12
@sr.alejandro12 9 ай бұрын
Good video ;)
@adityarosiadi8975
@adityarosiadi8975 10 ай бұрын
Nice Info
@vascoeti7355
@vascoeti7355 Жыл бұрын
Thank you
@davidcollins_highvaluemale6585
@davidcollins_highvaluemale6585 Жыл бұрын
great video!
@codewithsusan
@codewithsusan Жыл бұрын
Appreciate it.
@peerajosvitayanon6518
@peerajosvitayanon6518 Жыл бұрын
Great tutorial
@codewithsusan
@codewithsusan Жыл бұрын
Thank you!
@joshuarileymagic
@joshuarileymagic Жыл бұрын
will test this out
@codewithsusan
@codewithsusan Жыл бұрын
Let me know if you run into any road blocks.
@uxnitro
@uxnitro Жыл бұрын
Thanks for the great tutorial. Please make a tutorial on ssh and ftp root and sudo proper usage. All newbies struggle with file permissions. Thanks
@codewithsusan
@codewithsusan Жыл бұрын
Good suggestion. I have a video I want to make on increasing server security and this would be a good tie-in.
Speed Up Your SSH Sessions with These Seven Quick SSH Config Tricks
15:27
VSCode New Features Highlight
4:30
Susan B.
Рет қаралды 509
لقد سرقت حلوى القطن بشكل خفي لأصنع مصاصة🤫😎
00:33
Cool Tool SHORTS Arabic
Рет қаралды 28 МЛН
哈莉奎因以为小丑不爱她了#joker #cosplay #Harriet Quinn
00:22
佐助与鸣人
Рет қаралды 8 МЛН
Задержи дыхание дольше всех!
00:42
Аришнев
Рет қаралды 3,8 МЛН
How to use SSH Public Key authentication
8:26
Average Linux User
Рет қаралды 122 М.
Creating a DIGITALOCEAN Droplet and Connecting from Your Laptop
2:31
Surfing Through Life as a Postdoc
Рет қаралды 492
Permission Denied (Public key) Solved Alx
9:54
YpnConnect-Soft
Рет қаралды 3,5 М.
Creating a SSH key connection with a server
18:41
Susan B.
Рет қаралды 2,4 М.
لقد سرقت حلوى القطن بشكل خفي لأصنع مصاصة🤫😎
00:33
Cool Tool SHORTS Arabic
Рет қаралды 28 МЛН