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!
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
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! ❤
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!
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
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.
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
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.
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
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!
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?
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.
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
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.
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.
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?
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.
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
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.
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) ?
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?
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: czcams.com/video/k7Q-QfiOPLk/video.html
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!
Best clear, concise explanation on the internet! Thank you!
thats a lie
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
So happy it helped, @Aditya! 🙂
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! ❤
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!
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
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.
I never thought it could be my cloud providers mistake
I am finally able to connect to my VM Thank you
Glad you got it sorted out!
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.
I was starting to lose my mind trying to figure this out! You are a life saver, thank you!
You're welcome, glad it helped!
Losing my mind right now
@@sheyig346mee too lol
Susan its wonderfull explanation.
My circleci CICD integration successfully done.
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 :)
Awesome :)
I love this video. Thank you, Susan. You're more helpful than the folks at DO!
Only God can bless you me😭I was half fustrated😭❤
You know. I usually don't like videos much. But you solved a problem that was making me frustrate. Thank you
This was a very useful video btw. Editing the config file helped me to solve my issue on runpod. Thanks
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
1 gün boyunca uğraşıyordum sayende halledebildim
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 :)
For sure, that is the best explanation about this subject ever. You saved hours of searching time. Thanks a lot. :)
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.
You're welcome - glad you found it helpful!
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🤟👏
Love you Susan.... I was struggling since 3 days thanks alot
Glad the struggle is over :)
Thanks Susan, you help me a lot your last method. Greetings from Brazil.
Glad it helped!
Very helpful. Thank you for making these troubleshooting guides for servers. Greetings from México!!
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
Thank you so much I owe you my degree!!!!much love
thanks sussan!!!
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!
Thanks its clear step and helpful to solve my issue
Thank you for guiding us Susan.
nice explanation
A bundle of thanks, you saved my time. Carry on helping the community ma'am. Best of luck 🤞
Happy to help!
Thanks Susan for this really clear video !
Glad it was helpful!
Very helpful video. Thanks Susan.
Glad it was helpful!
Wonderful job Susan! You just saved my life! Thank you!
Thank you for this one. now i understand how SSH to be fixed
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?
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.
very well explained. thank you so much
thank you very much for a very good explanation!
absolute lifesaver, thanks a lot
Glad it helped!
Much love from Kenya. I found this so helpful!
just 1 config file..... Thanks a billion
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
Regarding the wrong fingerprint - is the issue described in this video what you're seeing: czcams.com/video/Ias1KrmCpkg/video.html ?
Great video, explanation.
Concise and accurate.
Thanks for sharing such content🙌
Glad I found this solution
Glad I found this
Great explanation. Fixed my same issue with clear understanding.
Glad it was helpful; thanks for watching.
This is helped me a lot
Thank you!
Very well explained. Thanks. It helped me.
Glad it helped!
Thank you. It helped a lot. It just worked as expected
nice explanation. Thanks
Thank you. Awesome Job 🎉
thats the best video on the entire internet, thank you!
Thank you, great content.
thanks susan, this was a massive help !!
This was soooo helpful! Thank you so much!
Best video I've found. Thank you! Fixed my issue.
Glad it helped!
Interesting authorisation method for notes access :)
Seems like a fair exchange for free content, no? : )
Best! save my day. Thanks.
Thank You very much Susan! It helped me fix the issue
Glad it helped!
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
Good suggestion. I have a video I want to make on increasing server security and this would be a good tie-in.
This is very helpful, well articulated.
great job
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.
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.
Awesome and very clear, thanks for sharing your acknowledgement
Awesome, clear and concise tutorial.
Thank you for the step by step guide
Great video! Thanks
big thanks to you , You relay helped me
My ssh folder on my vm doesn't contain "authorized_keys" file but a "known_hosts" file, do these represent the same use?
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.
@@codewithsusan Thanks so much, this worked!
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?
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.
Subscribed!
nice explanation!
Very well explained. Thank you
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
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.
Easy explanation, thank you!
hopefully this save my live
thank you
thank you this is so helpful
Thanks - finally managed to sorted
Glad you got it sorted!
Thank u so much!!! It was very helpful ;)
that was really really really helpful
Outstanding video
Appreciate it!
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.
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) ?
Thank you, great content and very helpful.
thanks susan that was helpful
Okay I’m gon try this now
Hey Susan thank you
very helpful , thank you so much
but I haven't access to the server..what I should I do except I contact to the admin :(
If you don't have access, yes you will have to contact the admin.
wonderful video
Thank You maam your solution worked
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?
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: czcams.com/video/k7Q-QfiOPLk/video.html
@@codewithsusan Thank you!
thanks a lot !!!
Welcome!
Great Video thanks Susan
gracias pór su aporte
nice vid, what if the folder which point to the config is instead /etc/sshh and not ~/.ssh?
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?
Thanks a ton for the detailed information ❤
No problem. Thanks for watching Avaneesh!
What if I get this error and I don't see any files for the public key or the private key?
If you don't see a public or private key, you'll need to generate them. Instructions here: czcams.com/video/k7Q-QfiOPLk/video.html
@@codewithsusan Thanks Susan!