Setting Up an SSH Key

  Рет қаралды 139,364

Tuts+ Computer Skills

Tuts+ Computer Skills

Күн бұрын

Entering secure passwords each time you log in to a server can be slow and painful but there is a better way. It's time to jump in and set up an SSH handshake.
This screencast guides you through the setup process, explains how to link your git repository account and it has a cute robot.
Stop re-typing that 25 character password and let's get started.

Пікірлер: 64
@Neemulus
@Neemulus 10 жыл бұрын
I've spent a few hours trying to get this to work and you've explained it really simply and guided me through the process in less than 15 mins. If only all the interweb was as clear as you Dan. many thanks!
@lpfagundeseai
@lpfagundeseai 8 жыл бұрын
I was trying to access a beaglebone using ssh without password and it wasn't working. Following your video it worked. So thank you very much!!! You're awesome!! =D
@amitnehasharma
@amitnehasharma 8 жыл бұрын
Thanks! Was struggling for the last hour to do this!! Worked now.
@garygoodger
@garygoodger 8 жыл бұрын
Thanks mate, came here for a simple ssh key and learnt the alias trick on mac! Awesome :)
@no_more_free_nicks
@no_more_free_nicks 5 жыл бұрын
Hi, thanks for the video, I needed to remind how this works, it is so simple now. Great video.
@austinshea427
@austinshea427 9 жыл бұрын
Thanks, well put together and informative!
@AriunboldG
@AriunboldG 9 жыл бұрын
Very nice explanation using robot analogy.
@rahulgoyal3179
@rahulgoyal3179 7 жыл бұрын
This video is indeed very helpful to understand about ssh! Thank you :)
@Aiducateur
@Aiducateur 8 жыл бұрын
sublime tutorial! bravo!
@anton_maker
@anton_maker 5 жыл бұрын
Your video helps me a lot. Thank you so much!
@ShahnawazSayyad
@ShahnawazSayyad 7 жыл бұрын
Awesome ... explanation is also too good
@JeffLowy
@JeffLowy 7 жыл бұрын
Nice explanation. Thank you!
@burlacuvalentin4481
@burlacuvalentin4481 3 жыл бұрын
Everything was well explained. Thanks
@der0keks
@der0keks 7 жыл бұрын
awesome resource, thanks mate
@Anon-yy4ns
@Anon-yy4ns 9 жыл бұрын
Nice explanation!!
@kamal-ahmed
@kamal-ahmed 8 жыл бұрын
@Andy Neal: Open the terminal and type the following commands without quote 1. "cd ~" 2. "ls -la" if you do not see a ".ssh" directory in the list then use the following command to create one 3. "mkdir .ssh" now type again 4. "ls -la" and you should see .ssh folder is there and now you can store your ssh keys there following this video tutorial above :) I hope this helps you.
@karen3705
@karen3705 5 жыл бұрын
is it necessary to create .ssh directory
@Roman-kpax
@Roman-kpax 7 жыл бұрын
Great tutorial!
@thebrforest
@thebrforest 5 жыл бұрын
Great video, thank you!
@svrangarao819
@svrangarao819 4 жыл бұрын
Thanks. Good explanation.
@sureshk12888
@sureshk12888 3 жыл бұрын
it helped me a lot thank you
@aussiejobhunt
@aussiejobhunt 7 жыл бұрын
Very helpful!
@piotrk.5255
@piotrk.5255 6 жыл бұрын
Hi, Great video explains everything nice and clear. One thing wasn't sure about, why did you remove the passphrase from the Server, if the main intention was to put another layer of protection in case someone would gain access to id_rsa? Wouldn't it be better to keep the passphrase on?
@robertspencer3553
@robertspencer3553 5 жыл бұрын
Very good...TY... All the meat is there
@happylucky5609
@happylucky5609 7 жыл бұрын
WoW!!! Excelleny tutorial
@PETAJOULE543
@PETAJOULE543 5 жыл бұрын
More detailed explanation about ssh directories in local machine and remote machine (e.g., authorized_keys, sshd). Also, the fact that in linux everything would be simpler
@cristianomachado7129
@cristianomachado7129 4 жыл бұрын
Thanks a lot!!!
@TiagoBigodeTI
@TiagoBigodeTI 5 жыл бұрын
Muito bom, ótimo vídeo.
@miladiouss
@miladiouss 3 жыл бұрын
Here is the summary of steps: 1. local: `ssh-keygen -t rsa -b 2048` 2. local → host: copy `~/.ssh/id_rsa.pub` from local to `~/.ssh/authorized_keys` at host. 3. host: `chmod 644 ~/.ssh/authorized_keys` 4. host: `chmod 755 ~/.ssh` 5. host: `chmod go-w ~/` 6. local: `ssh @; cd ~; bash;`
@andyneal8271
@andyneal8271 8 жыл бұрын
I looked on my MAC OSX 10.6.8 & ssh is not listed.? Seen links to download but they no longer exist. Can it still be bone. Sorry i a bit slow watching & typing command lines.
@randyrandall1767
@randyrandall1767 3 жыл бұрын
Am I suppose to set up a web server before I do this? New at this. Thanks.
@uhN0id
@uhN0id 7 жыл бұрын
I followed this to the T and I still get prompted for a password. I ran the ssh command with -vv to see what was going on and it seems to try my RSA key but immediately continues on to try other keys and eventually falls back to asking for a password. What should I be looking into to correct this?
@arecode3588
@arecode3588 8 жыл бұрын
at around 5:40 when you set your ssh root@xxxx i did the same but when i wrote it gave me port:22 Connection timed out. What can i do to fix it? Also what username and host are you referring to if i may ask. Maybe that is also of relevance to my problem.Thank you in advance
@leeblack2103
@leeblack2103 8 жыл бұрын
NICE! Id be too nervous to disable "PasswordAuthentication". What about adding "AllowUsers" and change LogLevel to "VERBOSE" as a alternative?
@canadian_spaceman
@canadian_spaceman 8 жыл бұрын
How would I add a second certificate/login? to the authorized_keys list on a separate line? thanks
@siddharthabose7923
@siddharthabose7923 4 жыл бұрын
Connor Scott you can always edit the file and put in a new line, you can very well use this across your systems network
@pjmclenon
@pjmclenon 3 жыл бұрын
hello sir , just for testing purposes my software allows me to setup hosts on 1 server by using different hosts name and differnt ports and so what i mean is it would be as an example host0 on port 8000 and host1 on port 8001 and host2 on port8002 and host3 on port 8003 and so how do i insert the pub key to an auth key file on each host folder than are all on 1 server linux ununtu machine? or is it just done once on host0 machine in the home/user folder? i am not understandung this and if there is no solution then since my software does run ssh on actual differnet srvers with dirferent IP then i will follw your vid but for now since its in my docs that i can use diffenrt ports and host names and use only 1 server machine , thats what i am trying to do becuz my software has to use ssh passwrdless to function; Lisa
@samvadidar
@samvadidar 5 жыл бұрын
at 6:32 you write a password in which you can go to the home directory. I am trying to install linux code and I need to use ssh. I do not know which password do I need to type at this stage !
@mapesa1000
@mapesa1000 6 жыл бұрын
thanks
@pjmclenon
@pjmclenon 3 жыл бұрын
hello i am on an ubunut 18 on a vbox vm but when i do ls -la in my /home/myname directory i do NOT see a .ssh folder why? Lisa can anyone help me out or is it trivial and i just create it when i start the ssh process?
@tjf4283
@tjf4283 7 жыл бұрын
Props for using photoshop instead of a presentation software.
@LeonDavidz
@LeonDavidz 7 жыл бұрын
Whatever I tried, didn't work s ssh: Could not resolve hostname id_rsa.pub: nodename nor servname provided, or not known
@ranyoyb7738
@ranyoyb7738 9 жыл бұрын
hey Tuts+ Computer Skills 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
@DamienChan
@DamienChan 7 жыл бұрын
Connection trouble !!! Unable to negotiate with " Xxx.xxIP " port 22: no matching host key type found. Their offer: ssh-dss. How to solve this on MacTermial. However I can able to login to that server with Mac Putty! Thanks-----------update! Issue solved thanks
@Qwerty-qb7rz
@Qwerty-qb7rz 7 жыл бұрын
6:10 What if i don't know my password???? i thought i knew but nothing seems to work
@arvaneret_329
@arvaneret_329 2 жыл бұрын
4:47 They're slashes, not dots.
@hatrez907
@hatrez907 4 жыл бұрын
I still get Permission denied (publickey).
@nikethpatil7107
@nikethpatil7107 4 жыл бұрын
Failed to add identity(s), Please help fix this
@GameCenterUTube
@GameCenterUTube 8 жыл бұрын
says connection refused. lost connection when i get to the part of the video 5:37
@HECKAKYH-ADEKBATEH
@HECKAKYH-ADEKBATEH 8 жыл бұрын
+ScotTish ✯ CSGO ✯ is root authorization and password-based auth allowed on server?
@GameCenterUTube
@GameCenterUTube 8 жыл бұрын
+Majou Nexian should be...
@HECKAKYH-ADEKBATEH
@HECKAKYH-ADEKBATEH 8 жыл бұрын
ScotTish ✯ CSGO ✯ then "connection refused" basically means firewalling of your client by path to server. Check that port is open on server. Check that port is routed on router or create port forwarding. If you are on WAN check that your ISP is not blocking ssh - this causes "connection timed out" on server. Could also be incorrect port set on server (/etc/ssh/sshd_conf) or in case of systemd on server, check you are using daemon-activated startup and not socket activated (server is started after someone knocks on port), ie "sudo systemctl disable ssh.socket", "sudo systemctl enable ssh.service", "sudo systemctl daemon-reload". For socket activated, the port is specified in *ListenStream* (not ListenAddress) when you do "sudo systemctl edit ssh.socket" or "sudo cp /lib/systemd/system/ssh.socket /etc/systemd/system && sudo nano /etc/systemd/system/ssh.socket". The "ListenAddress" in sshd_conf is completely ignored, because its systemd listening to knocks then, not sshd. This info is all from ArchLinux wiki on sshd.
@GameCenterUTube
@GameCenterUTube 8 жыл бұрын
+Majou Nexian thanks!
@Omar-ml3lh
@Omar-ml3lh 7 жыл бұрын
@6:17 you were talking about a password. You didn't enter anything. I heard two clicks and then another line appeared. What happened here?
@MichaelYinger_Beginner
@MichaelYinger_Beginner 5 жыл бұрын
The password was taken but wasn't shown, and it was asked for twice to confirm that you didn't mistype it on the first input.
@subinshrestha739
@subinshrestha739 2 жыл бұрын
is this Photoshop tutorial??
@samk5316
@samk5316 8 жыл бұрын
When working with a scenario Computer A connecting to computer B. Case 1: COMPUTER B -----connecting--> to COMPUTER A So in computer A : User temp1 using ssh-keygen generated a key pair Id_rsa.pub and id_rsa . 1)So this id_ rsa.pub key pair permits to enter into Computer A using putty running on computer B. 2)Save *.pub copied on to your local computer B and giving to putty with IP address and key will gets connected to computer A. 3)using SSH you can connect from computer B into computer A using *.pub file with necessary” SSH temp1@ipofcomputerA” ----------------------------------------------------------------- correct me if i don't understand right : 4)The user temp1 on system COMPUTER A with UID and password when using SSH-KEYGEN it generates a key file and store it his home directory . 5)User temp1 is in computer A but not in computer B. In here you can browse the filesystem of computer A running ssh on computer B. But file system of computer B cannot be viewed from computer A(am i right?). --------------------------------------------------------------------------------------------------- CASE2: If temp2 user in COMPUTER B. We needs to browse the filesystem of COMPUTER B 6) In computer B User temp2 using ssh-keygen generated a key pair Id_rsa.pub and id_rsa . 7) Transfer the file Id_rsa.pub into computer A 8) Using ssh on COMPUTER A “ssh temp2@ipofcomputerB” connect to COMPUTER B and browse the file system 9)Without two sided authentication you cannot browse both ways. With single way authentication you can browse only the computer you are connecting (Am I Right?) 10)If temp3 user of COMPUTER A is using ssh-keygen and it’s generates certain keys in home directory of temp3 on computer A. So if there are “N” no of users does each “user-n” has to generate a ssh-keygen on their own and transfer the files to COMPUTER which he needs connection with ? 11) Or temp3 user generated id_rsa.pub in general takes care of all “N” users in the COMPUTER to login in using SSH? Please let me know, I am a junior so kindly answer the question?
@skumart6902
@skumart6902 8 жыл бұрын
hi
@kappy_prasad
@kappy_prasad 8 жыл бұрын
The .ssh directory should be 700 not 755
@Brootahlizer
@Brootahlizer 8 жыл бұрын
What would 0 stand for?
@kappy_prasad
@kappy_prasad 8 жыл бұрын
my bad. you are correct
How Secure Shell Works (SSH) - Computerphile
9:20
Computerphile
Рет қаралды 814 М.
Useful gadget for styling hair 🤩💖 #gadgets #hairstyle
00:20
FLIP FLOP Hacks
Рет қаралды 4,5 МЛН
100❤️
00:19
MY💝No War🤝
Рет қаралды 24 МЛН
Linux File System/Structure Explained!
15:59
DorianDotSlash
Рет қаралды 4 МЛН
SSH Tunneling Explained
6:37
Tinkernut
Рет қаралды 474 М.
How SSH key Works ?
7:31
Bitfumes
Рет қаралды 196 М.
Intro to SSH and SSH Keys
13:38
Paul Turner
Рет қаралды 135 М.
How To Access Any Forked GitHub Repositories Data
9:31
Mental Outlaw
Рет қаралды 42 М.
Git Tutorial: What is SSH?
2:42
GitKraken
Рет қаралды 72 М.
SSH Tutorial - Basic server administration with SSH
9:20
LearnCode.academy
Рет қаралды 197 М.
Easily setup PuTTY SSH keys for passwordless logins using Pageant
9:53
Brian Smith's Linux/AIX Videos
Рет қаралды 184 М.
Linux Tutorial for Beginners - 15 - SSH Key Authentication
3:54
thenewboston
Рет қаралды 334 М.
Это - iPhone 16 и вот что надо знать...
17:20
Overtake lab
Рет қаралды 129 М.
Как правильно выключать звук на телефоне?
0:17
Люди.Идеи, общественная организация
Рет қаралды 1,9 МЛН
Rate This Smartphone Cooler Set-up ⭐
0:10
Shakeuptech
Рет қаралды 3,8 МЛН