Linux Tutorial for Beginners - 15 - SSH Key Authentication

  Рет қаралды 336,137

thenewboston

thenewboston

Күн бұрын

Пікірлер: 115
@VANTYCSolutions
@VANTYCSolutions 3 жыл бұрын
I wish that everyone explained things like you.
@bmwd4000
@bmwd4000 7 жыл бұрын
I remember this channel. I previous had a Java class that I used this channel for and it honestly saved my *. It was extremely in-depth and VERY helpful.
@gnuPirate
@gnuPirate 5 жыл бұрын
Hey mate. Thank you for this awesome little series. I am getting a lot out of it. My only feedback with terminal commands, is : As you go along explaining a command, if you know what the letters happen to stand for or signify, I personally find it really helpful to know what words the letters or abbreviations stand for. It helps me remember. Like , ssh-keygen is easy for me to remember, because I know it stands for secure soft shell, which is the common type of secure connection -- and keygen is obvious and common, but what is -t , and rsa? Yes, I know I can look it up (and I will), but as long as you're explaining things if you continue in future, I would find that helpful along the way. Again, I really appreciate the vids. Cheers !
@motivees3934
@motivees3934 4 жыл бұрын
don't you know he don't make videos any more "thenewboston"😢 its been 4 years
@swimmingshi
@swimmingshi 3 жыл бұрын
-t means type I guess, rsa is an encryption algorithm. Always google things you do not understand before asking
@wizhaa
@wizhaa 3 жыл бұрын
@@swimmingshi he literally said “yes I know I can look it up and I will” but explaining that is still useful rather than heading to pause the video and Google
@draco5991rep
@draco5991rep 4 жыл бұрын
I still have to type in my passphrase for the keyfile, because I set one. Just to let everyone know that if you set a passphrase you will have to enter it before you can connect to the server. You won't have to type your password for the user on the server, you will have to type the *passphrase* for the key you created. I recommend to set a passphrase for keys you use on a client that is a laptop, smarphone or anything that can easily be stolen or lost. If you have a stationary workstation at home however, it is up to you if you think the extra bit of security is worth it or not. I always do protect my key files with a passphrase because I am a paranoid fecker and live in a shady neighbourhood where people get robbed all the time. Everyone should think about the appropiate threat model for their purpose, if you never have analysed it before sit down for a couple hours and think about it, it is worth it.
@jeremy_s
@jeremy_s 7 жыл бұрын
1.5M subs! Dude you need to start making some more videos, they are so good. And the potential you have with an audience this big!
@earnestredwood4694
@earnestredwood4694 6 ай бұрын
Thank you my friend this still works. This is why I love Linux.
@yaswanthreddyb3224
@yaswanthreddyb3224 6 жыл бұрын
Thanks Bro. Now I understood clearly, you made my life simple. :)
@crischl6814
@crischl6814 7 жыл бұрын
Men i really love your videos! Very short and concise. Greetings from Chile!
@lands1459
@lands1459 2 ай бұрын
i don't understand. so run ssh-keygen on the server, copy the public key into authorized keys and copy the private to my laptop? because i can't connect to my server like this, it says permission denied publickey.
@wallaguest1
@wallaguest1 4 жыл бұрын
not clear, what the ssh-copy-id is for? i dont get it, and where the private key is stored in your computer? i dont see it anywhere, i am confused,
@life_in_gen
@life_in_gen 6 жыл бұрын
Question! So you upload the key to the server?? What if anybody just did the same thing you did, because when you send it, it didnt even ask for a password first. Thats kind weird
@annalisetrite7281
@annalisetrite7281 6 жыл бұрын
It did ask him for a password and he says something about it at 2:44 "after you type in your password"
@draco5991rep
@draco5991rep 4 жыл бұрын
After you type the command ssh-copy-id the server will ask you to enter the correct password to access the server. After the public key is installed whenever you connect with the client that have the corresponding private key you will be loged in without being asked about the password. If you however set a passphrase for your key, the server will ask for the passphrase, because the key file will be encrypted. I do recommend to use a passphrase if you want to connect from a laptop to your server. Because if someone steals your Laptop and it isn't encrypted he can simply read or copy the private key file from it, but if you set a passphrase for the key, the private key file itself will be encrypted and only if you have the correct passphrase you will be able to read the real private key and access the server. The advantage is if you have a PC at home from which you want to connect to your server, then you not necessairly have to set a passphrase for your key because it is quite unlikely that someone happens to steal your PC. I always use a passphrase on my key files, because I am a paranoid fecker. It is unlikely that someone steals your PC because he first have to gain access into your home (a laptop can be quickly swiped from a table in a coffee shop or so) but it is not impossible. So if you have any compromising and important data on the server, you are perhaps the type of person who should still set a passphrase for your key to be on the safe side.
@sajadtorkamani9399
@sajadtorkamani9399 9 жыл бұрын
Awesome tutorial. You make learning so easy and fun!
@coolraspyhobbit4723
@coolraspyhobbit4723 4 жыл бұрын
I realize this is an old video, but i cant find where the public key on my server went, and i want to delete it and put a new one on there. Is that possible? Im sorry if this is such a stupid question but im just barely learning about ssh keys literally today so its all new to me
@lavredisgoume
@lavredisgoume 2 жыл бұрын
When creating the keys, what is the meaning of "The key fingerprint is: 16:3f:..... bucky@Ubuntu"?
@shaarifhamdulay2930
@shaarifhamdulay2930 5 жыл бұрын
What if I wanna add the private key to a USB stick, so i could give it to a friend to access my server? Also how to copy public key without ssh-copy-id if i have chosen non default location?
@lexolim5571
@lexolim5571 9 жыл бұрын
If I used this, I could theoretically use a script that downs servers not using DNS or HTTP loadbalancing in the SSH session, correct?
@pratibhakumari4870
@pratibhakumari4870 4 жыл бұрын
Sir my command is not runing after ...ssh-copy-id root@.ip add....n when entered Mein terminal screen is blank What should I do.. help me....??
@aishaali4550
@aishaali4550 3 жыл бұрын
Super Simple demonstration that really works!
@jheffmat3263
@jheffmat3263 4 жыл бұрын
thanks for this short explanation, very clear; :)
@cahelmsjr20008
@cahelmsjr20008 3 жыл бұрын
Clear and right to the point. Well done.
@MultiChinmay
@MultiChinmay 4 жыл бұрын
Hi.. Great work on the series. Loved it. should i have separate ssh key for every other service like (aws, github, other services) or should i use the same exact key id_rsa for all services? what is recommended ?
@lavredisgoume
@lavredisgoume 2 жыл бұрын
I have the same question, but I think one does the job since it's like a public lock you share to everyone, and you are the owner of the key that unlocks it. So by generating new ssh keys it would be like having a new (lock, key) pair for every connection.
@21metalGears
@21metalGears 3 жыл бұрын
Bro, I love you so much! ❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️ You saved my day!
@alexanderdelarosa8028
@alexanderdelarosa8028 4 жыл бұрын
so has the public key been added to server or the computer?
@ivanbarbot4
@ivanbarbot4 5 жыл бұрын
but when you enter a password, which password is that? you shuold mention that in the video
@devBuddy
@devBuddy 4 жыл бұрын
Nice tutorial man! thanks a lot it helped me so much. I would like to add something: sometimes when you want to connect to your server to add the RSA key, server will prompt an error SSH :connect to host 123.456.7.8 port 22: Connection refused sometimes this is due you must connect with a different port to your server, this article was very helpful for me to solve that: superuser.com/questions/977104/ssh-connect-to-host-localhost-port-22-connection-refused basically I had to add a parameter called -p which tells to the shell which port must be used to connect to the server for example: ssh -p 123456 root@123.456.7.8 -p 123456 -> port for ssh connection 123.456.7.8 -> ip of the server root -> user which is trying to connect so to add the key using a different port ssh-copy-id -p 123456 -i root@123.456.7.8 hope this helps Best regards
@wolfganggermain7175
@wolfganggermain7175 3 жыл бұрын
OOW, it's been awhile, thanks all the tuts men keep it up
@medagam5527
@medagam5527 8 жыл бұрын
sir, i am using ubuntu 16.04 on linux ,would you please help me i really stuck at this problem. And after i used "reboot" in terminal ,it began to shutdown. But it does not works fine. it says "your system is running in low graphics mode", and also it says "you need to reconfigure yourself". Please help me after this i am facing problem "please give me steps to fix this error"... Thankinking you sir.
@parasch699
@parasch699 6 жыл бұрын
what if some other people generate different rsa keys and copy to our server? Can rsa key be replaced with a new one without deleting it?
@kingjack8436
@kingjack8436 3 жыл бұрын
love it! simple easy to understand
@rj11wacat
@rj11wacat 8 жыл бұрын
Can you do this on multiple computers or only one (i.e. after you make a key with one computer no other computer will be able to connect to the server)?
@kornflakes107
@kornflakes107 7 жыл бұрын
George Foley In most cases, ssh-keygen should be run once per computer. Servers can store multiple public keys.
@amandaszampias5006
@amandaszampias5006 5 жыл бұрын
Awesome! I didn't know about ssh-copy-id
@R0N1N-TV
@R0N1N-TV 3 жыл бұрын
"Boom roasted."
@pacsam6369
@pacsam6369 4 жыл бұрын
Hi man, when I try to connect to the server it gaves me the error "Host verification failed.". What can I do? P.s i don't have the known_host file...idk why
@MrHaashimAlvi
@MrHaashimAlvi 3 жыл бұрын
I think you entered the wrong password to login to your server
@MrHaashimAlvi
@MrHaashimAlvi 3 жыл бұрын
make sure the sure the, username, ip and password are correct.
@ScreenPrintR
@ScreenPrintR 6 жыл бұрын
As always you're the best. Thanks Bucky!!!
@ardikasulistija6574
@ardikasulistija6574 5 жыл бұрын
After running 'ssh-copy-idea user@x.x.x.x', when I try to ssh into 'user@x.x.x.x' I get error: sign_and_send_pubkey: signing failed: agent refused operation... Anyone know how to fix this?
@ashwajitthukral9101
@ashwajitthukral9101 4 жыл бұрын
its ssh-copy-id not idea
@vromp5able
@vromp5able 5 жыл бұрын
Skip to 1:24 for the actual tutorial.
@bryansillman3240
@bryansillman3240 2 жыл бұрын
Hello New Boston... Reaching out... Hope all is well... Did you ever do a vid on RAID 1? I think you did once... Just wanted to check... Regards, Bryan
@davidmejia9601
@davidmejia9601 7 жыл бұрын
hi, can anybody help me... I followed all the steps but the terminal requer me for a password i don't know why?
@tenancingogarcia
@tenancingogarcia 3 жыл бұрын
Hey how can I solve this I have a ssh server I want to tunnel all my internet data from the server I have a ssh client I want the client to connect to the internet using the tunnel from the server I'm able to connect to the server using ssh server_username@server_ip_addres But client doesn't receive any internet from the server tunnel Can you help me figure out Is this possible
@LivinginSouthChina
@LivinginSouthChina 7 жыл бұрын
Frigging terrific! Hat's off and thank you!
@sumertheory
@sumertheory 3 жыл бұрын
awesome video. thank you.
@ranyoyb7738
@ranyoyb7738 9 жыл бұрын
hey thenewboston thank you for video ! i have traineeship in small company and they asked me to deny the root and allow five specific users! the situation is like this: there is 5 users: admin , B , C , D , E and all these five are enables to log in SSH , and each one have password, but the problem no one of them i can log in from the terminal ! only the root and the password for the root is soho'admin password' ! how can i change that to deny the root from log in and enable the rest 5 users ? * i tired all the ways that i find in google and forums ... with allowusers ... no-password .. change port to 7722 / 9922 / 2222/ 1234 ... Thanks again, rzoyb
@tenminutetokyo2643
@tenminutetokyo2643 3 жыл бұрын
What about adding ssh access for existing users.
@Xxracerx
@Xxracerx 8 жыл бұрын
i got this error "Agent Admitted Failure to sign using the key". Any help?
@JiSeongPlus
@JiSeongPlus 8 жыл бұрын
+vishawdeep pathania ssh-add help.github.com/articles/error-agent-admitted-failure-to-sign/
@TWOxGINGEZz
@TWOxGINGEZz 5 жыл бұрын
how do I do this with putty? pls help
@StreetSmartification
@StreetSmartification 3 жыл бұрын
I think its even riskier not having to authenticate and with just ssh and knowing the ip, you are in the server vs password. This scenario applies to, for example, leaving your computer unattended.
@GerardoBelot
@GerardoBelot 9 жыл бұрын
Nice to see Bucky on Linux force XD
@amitmandaviya
@amitmandaviya 3 жыл бұрын
Good tutorial.
@AdemolaAlabi
@AdemolaAlabi 7 жыл бұрын
This is Awesome and Simple.... Thank you
@MR-vj8dn
@MR-vj8dn 3 жыл бұрын
But what if the keys mismatch?
@Rumbus528
@Rumbus528 4 жыл бұрын
I don't know what the 57 degenerates that down-voted this are smoking, but this was perfectly explained. Thank you!
@ThePositiev3x
@ThePositiev3x 9 жыл бұрын
At 1:56. What password it is asking?
@andrearitavasko8626
@andrearitavasko8626 6 жыл бұрын
Kubilay Yazoğlu the password of the root user
@brookroger2180
@brookroger2180 5 жыл бұрын
thank you, you really help me at work :)
@srgk26
@srgk26 5 жыл бұрын
Very helpful! Thank you
@Justinsatiable
@Justinsatiable 6 жыл бұрын
ssh-copy-id command not found.....
@irajnorouzi3974
@irajnorouzi3974 7 жыл бұрын
greate man very very good toturial tanks
@inkball7558
@inkball7558 6 жыл бұрын
Hello thanks for making this, very helpful :-)
@AleksandarAleksiev_
@AleksandarAleksiev_ Жыл бұрын
We now know your password. It has leaked over the Internet ;) Aside from the joke - nice explanation. Thank you!
@poornisridhar270
@poornisridhar270 3 жыл бұрын
Hi thanks for the video. Getting permission denied public key password. While doing scp from jenkins to remote server
@glorytogod4372
@glorytogod4372 8 жыл бұрын
How do I find the correct ip address?
@cedchanseaulme1648
@cedchanseaulme1648 8 жыл бұрын
ifconfig
@zhag
@zhag 8 жыл бұрын
but if you use centos minimal you should install net-tools
@fernandoluis53
@fernandoluis53 8 жыл бұрын
how do u change username root?
@PeterMIcedVoltage
@PeterMIcedVoltage 8 жыл бұрын
+yashfernandojain you don't - just make another account with super user privileges.
@samerjameel95
@samerjameel95 3 жыл бұрын
thank you
@ragineetitar310
@ragineetitar310 6 жыл бұрын
Awesome vdo..thnx:)
@otoelpilot0
@otoelpilot0 4 жыл бұрын
Thanks Bro!
@medagam5527
@medagam5527 8 жыл бұрын
i watched ur video but would please provide me grep usage also ..thanking you.
@Ghostinyoutube99
@Ghostinyoutube99 5 жыл бұрын
very helpful
@juhimughal9469
@juhimughal9469 6 жыл бұрын
unable to copy ssh id
@bobfl42
@bobfl42 8 жыл бұрын
Great that was so easy..
@NoName-pz7mk
@NoName-pz7mk 6 жыл бұрын
Didn't explain what -t and rsa mean
@igorordecha
@igorordecha 3 жыл бұрын
Nooooow i finally understand it!
@deedeemegadoodoo8642
@deedeemegadoodoo8642 3 жыл бұрын
Sir your tutorials are really helpful but i hope you know the proper usage of "Boom! Roasted"
@isakneuman9995
@isakneuman9995 2 жыл бұрын
1:35 start
@isrj01
@isrj01 9 жыл бұрын
so cool
@leonardo5277
@leonardo5277 5 жыл бұрын
love u
@samanand3824
@samanand3824 7 жыл бұрын
Boom Thanks
@pappasmurff324
@pappasmurff324 5 жыл бұрын
anyone getting an error message should try cd /home//.ssh when in your home ssh folder do everything he said and it should work ssh-keygen -t rsa
@samuelwinkler545
@samuelwinkler545 3 жыл бұрын
should had shown the sshd_config settings..
@cenubit
@cenubit 6 жыл бұрын
From Windows10 BASH this not work
@kennethbass4755
@kennethbass4755 6 жыл бұрын
Try use the Secured Shell App for windows based o/s. It lets you use all Linux shell commands
@CassiusGiorgio
@CassiusGiorgio 5 жыл бұрын
Wowww, now use id_rsa make sense...thanks!!!
@epowouid6715
@epowouid6715 9 жыл бұрын
Thnx dude
@DarkWhisperer13
@DarkWhisperer13 8 жыл бұрын
that cool bro
@vvkgdm
@vvkgdm 6 жыл бұрын
kawai @ 2:52
@FreshMahogany
@FreshMahogany 2 жыл бұрын
Dash… it’s a dash.
@SaltVinegar2010
@SaltVinegar2010 9 жыл бұрын
TheMilkRoad? Is that a play off on the SilkRoad? LOL
@adkl
@adkl 9 жыл бұрын
+Highway Phantom cant believe how stupid u are
@SaltVinegar2010
@SaltVinegar2010 9 жыл бұрын
ADKL Me not stupid. Me understand everything. You idiot.
@adkl
@adkl 9 жыл бұрын
just kidding
@matttintoshplus5369
@matttintoshplus5369 7 жыл бұрын
1:21 AM gg
@bloodmasto123
@bloodmasto123 9 жыл бұрын
hey really nice vids! really helpfull but can you also make a video how tochange your IP from DHCP into a STATIC IP (because if i follow other tutorials they say you have to go to /etc/network/interfaces for static ip but for some reason i only have loopback network interface instead of the loopback + primary network interface. and if i type the primary network interface and restart my network then my vm has no internet acces anymore and its a mess :/ :) but still keep making the ubuntu vids !! realy helpfull
@bloodmasto123
@bloodmasto123 9 жыл бұрын
***** thx going to try this in a few minutes :)
@theeverythingyoucanimagine8123
@theeverythingyoucanimagine8123 5 жыл бұрын
ssh be verwe verwe quiet!
@goow4822
@goow4822 4 жыл бұрын
如果是中文字幕就更好了
@user-gx8pr4rb2m
@user-gx8pr4rb2m 9 жыл бұрын
Fist!
@RetardedGuyxD
@RetardedGuyxD 9 жыл бұрын
ROASTE D
@monkeykid66
@monkeykid66 9 жыл бұрын
NIGGA YOU JUST GOT ROASTED YOWWW YOWWWW
Linux Tutorial for Beginners - 16 - Disable Password Login
3:25
thenewboston
Рет қаралды 126 М.
SSH Keys
10:12
RobEdwards
Рет қаралды 118 М.
Flipping Robot vs Heavier And Heavier Objects
00:34
Mark Rober
Рет қаралды 59 МЛН
龟兔赛跑:好可爱的小乌龟#short #angel #clown
01:00
Super Beauty team
Рет қаралды 24 МЛН
SSH Key Authentication | How to Create SSH Key Pairs
18:46
Akamai Developer
Рет қаралды 123 М.
Become a shell wizard in ~12 mins
12:25
CODE IS EVERYTHING
Рет қаралды 253 М.
5 Awesome Linux Terminal Tools You Must Know
23:05
NeuralNine
Рет қаралды 295 М.
OpenSSH for Absolute Beginners
23:00
Veronica Explains
Рет қаралды 112 М.
How A Steam Bug Deleted Someone’s Entire PC
11:49
Kevin Fang
Рет қаралды 1 МЛН
SSH Key Authentication on Linux Server: Easy Setup Tutorial
8:43
How SSH key Works ?
7:31
Bitfumes - AI & LLMs
Рет қаралды 197 М.
Complete SSH Tutorial: All-in-One Guide for Secure Connections
1:28:00
Learn Linux TV
Рет қаралды 609 М.
Linux File System/Structure Explained!
15:59
DorianDotSlash
Рет қаралды 4,2 МЛН
Flipping Robot vs Heavier And Heavier Objects
00:34
Mark Rober
Рет қаралды 59 МЛН