Fix for SSH Permission Denied (Public Key)

  Рет қаралды 98,583

Susan B.

Susan B.

Күн бұрын

Пікірлер: 331
@codewithsusan
@codewithsusan 7 ай бұрын
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!
@ashwanimehta721
@ashwanimehta721 9 ай бұрын
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.
@HaykapSupays
@HaykapSupays 2 ай бұрын
Thank you Susan, I had checked 100 tutorials and your explanation was the only one that could finally help me solve my issue.
@adityapalwankar1386
@adityapalwankar1386 2 жыл бұрын
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 2 жыл бұрын
So happy it helped, @Aditya! 🙂
@jhbk5
@jhbk5 Ай бұрын
I was stuck on this issue for days. Thank you so much for not only creating a clear tutorial, but also explaining what was causing the error.
@FR-vr2hd
@FR-vr2hd 7 ай бұрын
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
@ChrisEj_The_Broly
@ChrisEj_The_Broly Ай бұрын
You are a true Pro Susan, i had two days of turmoil trying to hit my head on the wall to find this. New subscriber here 😊
@ankithshetty1153
@ankithshetty1153 4 ай бұрын
Thank you so much for your help with the authentication problem! I was stuck on this issue for a whole day, and your video provided the clear and effective solution I needed. I really appreciate your time and effort in making such valuable content. You’ve saved me a lot of frustration-thanks again! ❤
@jeffrisdon2803
@jeffrisdon2803 3 ай бұрын
Hi all I figured it out! for some reason I had to use this line to create the publiv and private IDs ssh-keygen -t ed25519 -C "your email addy goes here". That worked!
@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 Жыл бұрын
Losing my mind right now
@zacharymcneely6039
@zacharymcneely6039 Жыл бұрын
@@sheyig346mee too lol
@justiny.2515
@justiny.2515 Жыл бұрын
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 Жыл бұрын
Awesome :)
@912stable
@912stable 7 ай бұрын
I love this video. Thank you, Susan. You're more helpful than the folks at DO!
@tejasatyanarayana
@tejasatyanarayana 10 ай бұрын
I never thought it could be my cloud providers mistake I am finally able to connect to my VM Thank you
@codewithsusan
@codewithsusan 10 ай бұрын
Glad you got it sorted out!
@donlee9193
@donlee9193 Жыл бұрын
You know. I usually don't like videos much. But you solved a problem that was making me frustrate. Thank you
@KaWinchester
@KaWinchester Жыл бұрын
1 gün boyunca uğraşıyordum sayende halledebildim
@MercelSantos
@MercelSantos 9 ай бұрын
For sure, that is the best explanation about this subject ever. You saved hours of searching time. Thanks a lot. :)
@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!
@yutigi
@yutigi Жыл бұрын
Thank you for guiding us Susan.
@hiddenpcmaster
@hiddenpcmaster Жыл бұрын
Best clear, concise explanation on the internet! Thank you!
@codewithsusan
@codewithsusan Жыл бұрын
High praise - thank you!
@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.
@EsDlite
@EsDlite 2 ай бұрын
Finally a video with a voice over!
@_devdoug
@_devdoug 10 ай бұрын
Thanks Susan, you help me a lot your last method. Greetings from Brazil.
@codewithsusan
@codewithsusan 10 ай бұрын
Glad it helped!
@Raventice
@Raventice 3 ай бұрын
Thank you so much this tutorial helped me debug my project and with how long I've been stuck on it I was starting to lose it 😭❤
@sergiomancera9225
@sergiomancera9225 Жыл бұрын
Very helpful. Thank you for making these troubleshooting guides for servers. Greetings from México!!
@gwenaellebourhis976
@gwenaellebourhis976 Жыл бұрын
Thanks Susan for this really clear video !
@codewithsusan
@codewithsusan Жыл бұрын
Glad it was helpful!
@PKASIMARK
@PKASIMARK Жыл бұрын
Much love from Kenya. I found this so helpful!
@ahmeedev
@ahmeedev Жыл бұрын
A bundle of thanks, you saved my time. Carry on helping the community ma'am. Best of luck 🤞
@codewithsusan
@codewithsusan Жыл бұрын
Happy to help!
@ofabiosm
@ofabiosm Жыл бұрын
thats the best video on the entire internet, thank you!
@OrangeHat21
@OrangeHat21 Жыл бұрын
Wonderful job Susan! You just saved my life! Thank you!
@caesare1968
@caesare1968 2 ай бұрын
Excellent article, I had been looking for this for days, thanks a lot
@ghulamzilani237
@ghulamzilani237 Күн бұрын
It's a very useful vedio those who have facing permission denied error. Thank you very much Ma'am
@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🤟👏
@spot1401
@spot1401 Жыл бұрын
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 :)
@hemathkumar4040
@hemathkumar4040 3 ай бұрын
Susan its wonderfull explanation. My circleci CICD integration successfully done.
@mandeepmails
@mandeepmails Жыл бұрын
Very helpful video. Thanks Susan.
@codewithsusan
@codewithsusan Жыл бұрын
Glad it was helpful!
@mamotivated
@mamotivated 7 ай бұрын
This was a very useful video btw. Editing the config file helped me to solve my issue on runpod. Thanks
@evisiongroup24
@evisiongroup24 Жыл бұрын
Thank you. It helped a lot. It just worked as expected
@muzikmyke3008
@muzikmyke3008 2 жыл бұрын
Best video I've found. Thank you! Fixed my issue.
@codewithsusan
@codewithsusan 2 жыл бұрын
Glad it helped!
@fejiobbdo
@fejiobbdo 2 жыл бұрын
absolute lifesaver, thanks a lot
@codewithsusan
@codewithsusan 2 жыл бұрын
Glad it helped!
@shahidkhan-saladguy
@shahidkhan-saladguy 8 ай бұрын
Love you Susan.... I was struggling since 3 days thanks alot
@codewithsusan
@codewithsusan 8 ай бұрын
Glad the struggle is over :)
@laurelineparis5407
@laurelineparis5407 Жыл бұрын
Great video, explanation. Concise and accurate. Thanks for sharing such content🙌
@nilsongomez7827
@nilsongomez7827 2 ай бұрын
Hello, I have been trying to access the SSH through a VPS to configure wireguard but I am getting an error message, Permission denied (Publickey,password) I have checked if the keys are a match and they are. Don’t know what to do.
@vijetakumar7347
@vijetakumar7347 11 ай бұрын
Great explanation. Fixed my same issue with clear understanding.
@codewithsusan
@codewithsusan 11 ай бұрын
Glad it was helpful; thanks for watching.
@saviouressien1317
@saviouressien1317 Жыл бұрын
Awesome, clear and concise tutorial.
@diceman2k8
@diceman2k8 26 күн бұрын
Thanks Susan! This was very helpful
@gabrielpatrick6923
@gabrielpatrick6923 10 ай бұрын
This is very helpful, well articulated.
@MajesticaYEH
@MajesticaYEH Жыл бұрын
Thank you. Awesome Job 🎉
@alexyapyap74
@alexyapyap74 Жыл бұрын
thank you very much for a very good explanation!
@redneckcommie
@redneckcommie Ай бұрын
so what if there's just nothing listed in my authorized_keys directory?
@rothadapravith7657
@rothadapravith7657 Жыл бұрын
Glad I found this solution
@thegoodlifewatch
@thegoodlifewatch 20 күн бұрын
when i open the .ssh from the server, my public key is already there, but i still get access denied.
@Bobapartea
@Bobapartea Жыл бұрын
This was soooo helpful! Thank you so much!
@harikrishna3258
@harikrishna3258 Жыл бұрын
Thank You very much Susan! It helped me fix the issue
@codewithsusan
@codewithsusan Жыл бұрын
Glad it helped!
@greymatters2965
@greymatters2965 Жыл бұрын
Glad I found this
@delesoft
@delesoft Жыл бұрын
Thank you, great content.
@CaseyMcKean
@CaseyMcKean 2 жыл бұрын
My ssh folder on my vm doesn't contain "authorized_keys" file but a "known_hosts" file, do these represent the same use?
@codewithsusan
@codewithsusan 2 жыл бұрын
Hi Casey - If you don't see an authorized_keys file there you can create it. The known_hosts file is different - that keeps track of what external hosts that system has connected to so that when you go to connect to those hosts again, it won't prompt you to approve the connection.
@CaseyMcKean
@CaseyMcKean 2 жыл бұрын
@@codewithsusan Thanks so much, this worked!
@JobinAj-e7x
@JobinAj-e7x 2 ай бұрын
In EC2 Ubuntu Instance Create a new user and SSH Key pair with an authorized key how do i do that im a bit confused can you help
@SCSUSEGroupPizzaProject
@SCSUSEGroupPizzaProject Жыл бұрын
Perfect, great video!
@LumenVigil
@LumenVigil Жыл бұрын
Great Video thanks Susan
@lajeferrario
@lajeferrario Жыл бұрын
Great video! Thanks
@sinalisuvinya4330
@sinalisuvinya4330 7 ай бұрын
Thank you so much I owe you my degree!!!!much love
@bilalabbaszaidi
@bilalabbaszaidi Жыл бұрын
Very well explained. Thank you
@cassius.giorgio
@cassius.giorgio Жыл бұрын
Awesome and very clear, thanks for sharing your acknowledgement
@pablocosta7181
@pablocosta7181 Жыл бұрын
thanks sussan!!!
@acoustic7skate
@acoustic7skate Жыл бұрын
this was what I needed. thank you!
@datboyblu3
@datboyblu3 Жыл бұрын
Easy explanation, thank you!
@christiancornel4636
@christiancornel4636 Жыл бұрын
Thank you for this one. now i understand how SSH to be fixed
@tilltheend6634
@tilltheend6634 Жыл бұрын
Pls please i have two kali on vmware bridged mod i have the good pubkeys good permissions ssh is active i can ping ssh is up when nmap i use the right private key but the error message when I try ssh is showing me the wrong finger print and its always the i have the good sshd_config too pubkeyauth yes
@codewithsusan
@codewithsusan Жыл бұрын
Regarding the wrong fingerprint - is the issue described in this video what you're seeing: kzbin.info/www/bejne/f5LWYn6ooqijock ?
@am7-p
@am7-p Жыл бұрын
Thank you for the step by step guide
@TheNerdEngineer1
@TheNerdEngineer1 Жыл бұрын
Best! save my day. Thanks.
@ricocollina3549
@ricocollina3549 Жыл бұрын
I did follow almost everything but stuck with the step of having authorized_keys. This file is not on my server. So I tried creating one and adding the public key to it but to no avail.
@codewithsusan
@codewithsusan Жыл бұрын
If you email me the output of the command "ssh -v your-username@your-ip-address" I can take a look and help you debug. mail@codewithsusan.com.
Жыл бұрын
Hi Susan. I've got this working as you told connecting via console in my cloud. I put my public key in there but only my pc has access to that vm. How can I have this working for any other computers from my office?
@codewithsusan
@codewithsusan Жыл бұрын
For each computer you want to connect from, you want to generate a key pair and install the public key from that pair on the server. Here's my video on setting up keys: kzbin.info/www/bejne/oWi0XoScnrSDgs0
Жыл бұрын
@@codewithsusan Thank you!
@mariasolgonzalez4786
@mariasolgonzalez4786 Жыл бұрын
Thank u so much!!! It was very helpful ;)
@ElsiervoDePeFKNerre
@ElsiervoDePeFKNerre 8 ай бұрын
Y que pasa cuando la clave pública si está en el archivo y aún sigue dando el mismo error de denied permission (pubkey)?
@ElsiervoDePeFKNerre
@ElsiervoDePeFKNerre 8 ай бұрын
Y buen video,me encantó lo fácil que fue entenderlo saludos desde Puerto Rico 🇵🇷 aquí un nuevo sub
@codewithsusan
@codewithsusan 8 ай бұрын
In addition to checking that the public key is on the server in the correct location, were you able to confirm the other steps as well? This includes: 1. That the private and public key are a match 2. If the private key has a custom name that your SSH config is set to attempt to use that key If you've checked all of those things and it's still not working, run "ssh -v username@ip-address" and study the output for clues. If you want, you can email me the output (mail@codewithsusan.com) and I can help look it over for you.
@codewithsusan
@codewithsusan 8 ай бұрын
Gracias lo aprecio :)
@ElsiervoDePeFKNerre
@ElsiervoDePeFKNerre 8 ай бұрын
Muchas gracias por su amable respuesta y ofrecer de su tiempo para ayudarme, y pues le voy a contactar para darle los detalles de el comando -v. Otra ves me encantó el video y la forma sencilla y detallada que lo explicas que para alguien como yo que estoy dando pasos de baby en esto lo comprendí todo.
@RamakrishnaT-s3h
@RamakrishnaT-s3h Жыл бұрын
nice explanation
@mcfincher29
@mcfincher29 5 ай бұрын
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
@clippedbythesecond
@clippedbythesecond Жыл бұрын
hi im confused at 11:39 minutes where you got your username from?
@codewithsusan
@codewithsusan Жыл бұрын
It's the default user the server came set up with from my server provider. Many servers have a "root" admin user you can connect as. Sometimes though, you can't directly connect to a server as root for security purposes, but that's not the case on this server. When you set up a server, they should give you information on what default user it is set up with so you can connect as that user.
@mbodeomo
@mbodeomo Жыл бұрын
what if after checking the config file and the IdentityFile is pointing to the right key, but after running verbose you see that it is the default id_rsa key that is being picked up?
@codewithsusan
@codewithsusan Жыл бұрын
You can attempt the SSH connection by explicitly specifying which key to use. This will confirm/deny the key you are trying to use is functioning. The command to do that is: ssh -i ~/.ssh/your-key your-username@your-server-ip If that succeeds you know the key is not the problem, but there is some problem with your SSH config or how the key was added to the config. If it fails, you know it's a problem with the key. Feel free to follow-up with what you find and I can continue to help you troubleshoot.
@haitech1994
@haitech1994 4 ай бұрын
Thank you for the content, this has been a struggle to set the ssh with digital ocean and your content help a lot and I learnt new stuff about ssh. What about the add ssh key feature from the control panel of digital ocean why it doesn't work?
@codewithsusan
@codewithsusan 4 ай бұрын
It's possible you're using the DigitalOcean "add a SSH key" feature that simply allows you to store a key with your DigitalOcean account that can automatically be added to new servers whenever they're created. This is different than adding keys to existing servers.
@MarcosMGCN
@MarcosMGCN Жыл бұрын
Nice! Thanks for the help :)
@avaneeshthakurrana1264
@avaneeshthakurrana1264 Жыл бұрын
Thanks a ton for the detailed information ❤
@codewithsusan
@codewithsusan Жыл бұрын
No problem. Thanks for watching Avaneesh!
@2u841r
@2u841r 5 ай бұрын
very well explained. thank you so much
@gilbertintabo160
@gilbertintabo160 Жыл бұрын
this was a great explanation
@codewithsusan
@codewithsusan Жыл бұрын
Thanks!
@Spumilupi
@Spumilupi Жыл бұрын
Not sure if this is still being followed or not but here it goes…. Would this problem be the same if I am getting a message that says “permission denied (publickey,password)”? I am only getting the message after trying a password three times (but it’s the password I’ve used for the past four months). It just seems to have stop being recognized.
@codewithsusan
@codewithsusan Жыл бұрын
If you're using passwords to log in, the SSH keys should be irrelevant. Odd that it had been previously working and just stopped. Do you have some alternative way to log into your server to troubleshoot (E.g. another member on your team that has access or via a dashboard from your server provider) ?
@SanthoshHugar
@SanthoshHugar 11 ай бұрын
Very well explained. Thanks. It helped me.
@codewithsusan
@codewithsusan 11 ай бұрын
Glad it helped!
@stefwill
@stefwill 2 жыл бұрын
Interesting authorisation method for notes access :)
@codewithsusan
@codewithsusan 2 жыл бұрын
Seems like a fair exchange for free content, no? : )
@WoLFyy2009
@WoLFyy2009 Жыл бұрын
thanks susan that was helpful
@Eggsec
@Eggsec 2 жыл бұрын
question, I was giving the RSA private key to login from work, could I ask you how to go abouts to connect? i've been googling this all day. Do i need to override my private key to the key i was giving? thank you.
@codewithsusan
@codewithsusan 2 жыл бұрын
In your case, you're not generating the keys on your computer, you're working with an existing key. To set this up, place the key they gave you in your computer's ~/.ssh directory. You can name this file whatever you want, but let's say for example you call it "my-work-key" (because it's a private key, we won't use an extension). Then, edit your SSH config file (~/.ssh/config) like I showed in the video adding the line referencing this key (IdentityFile ~/.ssh/my-work-key). Now when you attempt to SSH into your work server, it should attempt to authenticate with that key. If that doesn't work, let me know and I can help debug further.
@SamanyuKaushik
@SamanyuKaushik Жыл бұрын
amazing video and notes
@muhamadridwanfirdaus2832
@muhamadridwanfirdaus2832 11 ай бұрын
Thanks its clear step and helpful to solve my issue
@SR-fi8ef
@SR-fi8ef Жыл бұрын
Thank you, great content and very helpful.
@ChastainSanchez
@ChastainSanchez Жыл бұрын
when checking the connection with ssh -v it shows that it is not using the correct key file. How do i fix. In terraform the path to key file is correct but it is still trying to find the pair in the wrong key file
@codewithsusan
@codewithsusan Жыл бұрын
Hi Chastain - If you want to share the output of `ssh -v` with me via email (mail@codewithsusan.com) I can help you troubleshoot further.
@mohamedsuliman1305
@mohamedsuliman1305 Жыл бұрын
What if I get this error and I don't see any files for the public key or the private key?
@codewithsusan
@codewithsusan Жыл бұрын
If you don't see a public or private key, you'll need to generate them. Instructions here: kzbin.info/www/bejne/oWi0XoScnrSDgs0
@mohamedsuliman1305
@mohamedsuliman1305 Жыл бұрын
@@codewithsusan Thanks Susan!
@marwaka
@marwaka Жыл бұрын
This is helped me a lot
@nicolascuestaquintero9708
@nicolascuestaquintero9708 Жыл бұрын
Outstanding video
@codewithsusan
@codewithsusan Жыл бұрын
Appreciate it!
@alvarorodriguezgomez8716
@alvarorodriguezgomez8716 8 ай бұрын
nice vid, what if the folder which point to the config is instead /etc/sshh and not ~/.ssh?
@codewithsusan
@codewithsusan 8 ай бұрын
Are you saying your config file is located in /etc/ssh or that the line within the config file that identifies the SSH key is pointing to /etc/ssh?
@ClashRoyale-pt9zj
@ClashRoyale-pt9zj Жыл бұрын
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
@mengxichen3444
@mengxichen3444 Жыл бұрын
try notes here?
@Burakdagl
@Burakdagl Жыл бұрын
very helpful , thank you so much
@sequelman8997
@sequelman8997 2 жыл бұрын
Subscribed, great channel
@codewithsusan
@codewithsusan Жыл бұрын
Thanks @sequelman
@ikhwanulabiyu6325
@ikhwanulabiyu6325 Жыл бұрын
nice explanation!
SSH Keys and Github
10:51
Susan B.
Рет қаралды 13 М.
My scorpion was taken away from me 😢
00:55
TyphoonFast 5
Рет қаралды 2,7 МЛН
Beat Ronaldo, Win $1,000,000
22:45
MrBeast
Рет қаралды 158 МЛН
We Attempted The Impossible 😱
00:54
Topper Guild
Рет қаралды 56 МЛН
VIP ACCESS
00:47
Natan por Aí
Рет қаралды 30 МЛН
SSH Keys
10:12
RobEdwards
Рет қаралды 128 М.
Privilege Escalation Maintain Access Clear Tracks
26:11
Shimaz Tech
Рет қаралды 254
SSH Crash Course | With Some DevOps
55:02
Traversy Media
Рет қаралды 556 М.
Google’s Quantum Chip: Did We Just Tap Into Parallel Universes?
9:34
SSH To Windows Using Public Key
13:40
William Campbell
Рет қаралды 79 М.
We’re running out of internet - Steam Game Caching Server
21:09
Linus Tech Tips
Рет қаралды 3 МЛН
My scorpion was taken away from me 😢
00:55
TyphoonFast 5
Рет қаралды 2,7 МЛН