Setting Up SSH Keys

preview_player
Показать описание
Are you still using passwords for your SSH sessions? Here's a quick tutorial for increasing your security by setting up key-based authentication instead.
---
Рекомендации по теме
Комментарии
Автор

This is great, thanks for sharing Jacob. I`ve actually been using key authentication for quite a while now since its required for rsync automated backup. For any of you guys watching, key based authentication not only let you secure your server at a higher level, but it is also necessary if you want to run a scheduled cronjob with backup using rsync. It allows for a fully encrypted, very robust backup over the network/internet. Maybe that would be a great follow up video for you, Jacob? And btw, 3:12 is one of the reasons I love this channel.

Borsting
Автор

Thank you.
For new users like me: when trying to login after the key setup is complete, make sure to login as the same user you setup the keys with. He mentions this, but I was an idiot and tried to login as root.
Explanation: SSH looks for the key in the users directory /home/USER/.ssh/. When you are root, you use a different home directory, and therefore a different path to ~/.ssh, because roots home is /root/.ssh/

TheKeule
Автор

Great video! Out of all the videos on the internet, this one helped the most with setting up keys and understanding the finer details. I really appreciate you taking the time to make this video. Thanks Jacob!

davids
Автор

Dude this was perfect! Thanks for going through all of the details. It finally clicked for me thanks for your talking through the thought process as well as each step. Thanks for putting this together! Keep it up!

paulcodes
Автор

Thank you for finally explaining what a key is. I literally watched several videos and nobody actually explains the difference between this and a password the way you did.

deannalipowicz
Автор

Thanks for doing that extra step and configuring access from a second client. That cleared up something for me that I was just trying to work through last night. 👍

merkink
Автор

Glad to see you using ssh keys now. Keys can also be assigned commands on remote sever, and not just the bash shell. I use this so my admins can see results of a command.
Of couse sshfs is another magical tool to use with ssh to mount a share over ssh.
There is lots of magic that can be done with ssh.

martymccafferty
Автор

Your videos are very informative and easy to understand for linux noobs like myself thanks for posting this.

vincentlaw
Автор

thank you very much, finally after so many years, ssh concept has been made clear!

mrherpes
Автор

This is important and useful if you have to do it a lot, in general it's a good practice to use ssh

ProgrammingwithPeter
Автор

Public/private keys made sense to me when someone suggested I think of a lock and its key. The public key is the lock on the server's gate and the private key is my key to open the lock so i can get in. Simple concept. Thanks for the video.

rcdenis
Автор

With Ssh-agent you will only have to type your passphrase once and you will not get prompted again for that key when you ssh again, until you logout of your desktop session, which would end the ssh-agent session.

martymccafferty
Автор

Excellent tutorial, thank you so much!

EnglishRain
Автор

Incredibly well explained, thank you very much.

hakkadesu
Автор

What if my server is not configured for password authentication and only requires an ssh key authentication? How would I be able to ssh copy the key from my local machine to the remote server without doing the manual copy paste format?

jayleeh
Автор

om on a rpi4 running raspbian os for arm and 3cx is onit all working, now i want to put that all as is onto a vmware, the stand alone refuses to connect i tried all kinds root account normal account thats added to sudoers file tried all kinds of ssh keys and nothing connects any ideas? can i just image the sd card and give that img file to vmware and it just work? i thought i could just add the public ssh key from w.e the vmware stand alone crap uses to auth hosts file but i dont know where to find the pubolic key for my windows i can generate 1 but not sure if that works i did try but it failed!

JNET_Reloaded
Автор

Hello, I generated ssh key but I cant find where it is saved, thus unable to log in to the server

mariadeclaret
Автор

ssh not working, pleaase help me ..

/root/.ssh/config: line 2: Bad configuration option: username

kvntfcs
Автор

a mathematical question: can i change the private key and the public key before first usage by changing the filenames? result is that i spread my "private key" and save my "public key".

the function and security should be the same! or not?

wolfganggosejacob
Автор

I want to translate your video, enable the translator option in the video

eliashckr