The OpenSSH Client Config File: Simplify your SSH Connections

  Рет қаралды 30,885

Learn Linux TV

Learn Linux TV

Күн бұрын

The OpenSSH client config file is a very powerful feature, that too many people ignore. You can use the client config file to simplify your SSH connections, by including preset options per host. In this video, I'll go over the basics of this config file.
Brand LPI Linux Essentials Course Available
Check out the new course on Udemy! ➜ learnlinux.link/lpi-course
➜ learnlinux.link/lpi-course
Check out the Linux Shop
In the official shop, you'll find Shirts, hats, stickers, bags and more!
➜ merch.learnlinux.tv
5% discount on LPI exam vouchers
After you finish Jay's new course, get 5% off an LPI exam voucher here:
➜ learnlinux.link/lpi-voucher
Become a Patron
Show your support for Learn Linux TV on Patreon and get access to exclusive perks!
➜ learnlinux.link/patron
Become a Channel Member
Show your support for Learn Linux TV here on KZbin and get access to exclusive perks!
➜ learnlinux.link/member
Mastering Ubuntu Server: 4th Edition
Jay's latest book covers everything you need to know in order to master Ubuntu Server. It's available here:
➜ ubuntuserverbook.com
Linux Gear and Kits
Check out Jay's choice of hardware products, audio/video equipment, and more.
➜ learnlinux.link/amazon
Grab an awesome Pi-powered KVM
Support Learn Linux TV and grab yourself a TinyPilot KVM here:
➜ learnlinux.link/tinypilot
Note: Royalties and/or commission is earned from each of the above links
Time codes:
00:00 - Intro
02:14 - Scenario overview
07:18 - Building the OpenSSH client config file
Full Courses from Learn Linux TV
• Linux Essentials Certification Workshop ➜ learnlinux.link/lpi-course
• Linux Crash Course series ➜ linux.video/cc
• Learn how to use tmux ➜ linux.video/tmux
• Learn how to use vim ➜ linux.video/vim
• Bash Scripting Series ➜ linux.video/bash
• Proxmox VE Cluster Full Course ➜ linux.video/pve
• Learn Ansible ➜ linux.video/ansible
Linux-related Podcasts
• Enterprise Linux Security ➜ enterpriselinuxsecurity.show
• The Homelab Show ➜ thehomelab.show
Learn Linux TV on the Web
• Main site ➜ www.learnlinux.tv
• Community ➜ community.learnlinux.tv
• Enterprise Linux Security Podcast ➜ enterpriselinuxsecurity.show
• The Homelab Show Podcast ➜ thehomelab.show
• Content Ethics ➜ www.learnlinux.tv/content-ethics
• Request Assistance ➜ www.learnlinux.tv/request-ass...
Disclaimer
Learn Linux TV provides technical content that will hopefully be helpful to you and teach you something new. However, this content is provided without any warranty (expressed or implied). Learn Linux TV is not responsible for any damages that may arise from any use of this content. The person viewing Learn Linux TV's content is expected to follow their best judgement and to make their best decisions while working with any related technology. Always make sure you have written permission before working with any infrastructure. Also, be sure that you're compliant with all company rules, change control procedures, and local laws.
#SSH #OpenSSH #Linux

Пікірлер: 63
@udayarpandey3937
@udayarpandey3937 2 жыл бұрын
Your videos are so much easy to follow and they are super organized. You are a legend.
@amitzdullnicker2k
@amitzdullnicker2k 2 жыл бұрын
Over 200,000 subscribers in the meantime! Congratulations! Wishing you even more to come, your content is so much worth it! Did the numbers explode in the last months/year? I remember subscribing somewhere around the 40,000 mark... However, all the best and thank you!
@wmike145
@wmike145 2 жыл бұрын
Jay, I truly appreciate these little tidbits of advice. They're great for new and novice Linux users. I've found that as I've gotten more comfortable with the command line, I notice that I've also formed some poor habits. These sorts of tips are a good reminder that almost everything has a better way to do it.
@TheLichKng64
@TheLichKng64 2 жыл бұрын
This channel is just amazing! Thank you so much Jay for providing such great content! It's a life saver!
@unstoppable-ar3292
@unstoppable-ar3292 2 жыл бұрын
You're great man..I'm glad you chose to do this full time.
@kirkhammett2107
@kirkhammett2107 2 жыл бұрын
this geezer is awesome, thank you! your content recently has been invaluable!
@michalroesler
@michalroesler Жыл бұрын
I'm watching this for the second time. And now I understand what this config file is used for. Thank you Jay. And this Ubuntu book of yours is so very, very good.
@RoborobsComputers
@RoborobsComputers 2 жыл бұрын
Great information Jay. Thank you for all you do.
@jonnypeace2810
@jonnypeace2810 2 жыл бұрын
7 years a linux user and i never knew about this - i wrote ssh scripts to simply, don't judge lol. Tested with scp and ssh-copy-id. perfect! Look forward to reading your book that i got for my birthday :)
@whylde7834
@whylde7834 2 жыл бұрын
Thanks for the video. Look forward to the next steps!
@SwiatLinuksa
@SwiatLinuksa 2 жыл бұрын
Very usefull tip! Thank you very much! Add to this ssh keys on server and here we go ;))
@KiranDevraaj
@KiranDevraaj 2 жыл бұрын
Helpful video sir, this will definitely help in improve my productivity as a network quality engineer 👨‍💻
@eramorn
@eramorn 2 жыл бұрын
Like always this is the best channel when learned new things about Linux!. Ps. How is Mycroft doing controlling the world? 😉
@princemarkied8071
@princemarkied8071 4 ай бұрын
Dude you are not only THE BEST linux learning source I have found, but you are a huge RPG fan clearly ,and I would love to speak with you one day! we have a ton in common! Thanks for what you do!
@venkatesh4760
@venkatesh4760 2 жыл бұрын
Thanks Jay for the informative Video.
@katnax3059
@katnax3059 5 ай бұрын
On the one hand, this video is extremely easy to follow, on the other hand, I was expecting more than Hostname, User and Port in the config.
@roylopez6673
@roylopez6673 2 жыл бұрын
This is great. Thanks Jay
@mkintzel
@mkintzel 2 жыл бұрын
Thank you - this is so helpful!!
@darrylbaker8004
@darrylbaker8004 2 жыл бұрын
Thanks really helped me very much
@chrisumali9841
@chrisumali9841 2 жыл бұрын
Thanks for this great tip and info, have a great day
@glyakk
@glyakk 2 жыл бұрын
Great video and well done. I started using ssh config last year to simplify my life lol.
@tigerfish66
@tigerfish66 2 жыл бұрын
some great tips in here thank you.
@murtadha96
@murtadha96 Жыл бұрын
Fantastic! Thank you
@GorkemYildirim
@GorkemYildirim 2 жыл бұрын
Good guide, thanks.
@olafhuerta2318
@olafhuerta2318 2 жыл бұрын
Love it! I already create my config file in my laptop to access my mpg in my home easier. Do you know if there is an option for tunneling port automatically with this commands? (-L port:localhost:port)
@FurikuriYugi
@FurikuriYugi 2 жыл бұрын
Thank you sir, saved me some time.
@whiskeylinux
@whiskeylinux 2 жыл бұрын
Thanks Jay!
@brandon_wallace
@brandon_wallace 2 жыл бұрын
Good information in this video.
@michalroesler
@michalroesler Жыл бұрын
Yes. Already subscribed.
@legooos
@legooos 2 жыл бұрын
very useful, thanks
@nandurx
@nandurx 2 жыл бұрын
I love your videos as they are more in deep and more knowledgeable than anywhere. I have watched mostly all OPENssh videos... I am going to set up jumpbox VM in proxmox. How do we move ssh key so I can use in other PC if I ever destroy that VM or change pc all together? How do we back up ssh key?
@EUPescar
@EUPescar 2 жыл бұрын
Great video!
@anon1div0
@anon1div0 2 жыл бұрын
I normally use Fish aliases or Fish command history to simplify SSH commands but will now use this method instead. Thanks.
@youtubeoneverything4581
@youtubeoneverything4581 2 жыл бұрын
Loved it.
@rcdenis1
@rcdenis1 2 жыл бұрын
Thank you Jay. Oh, skynet is from the terminator, acme I'm not sure but wiley coyote somehow comes to mind.
@markcain8029
@markcain8029 2 жыл бұрын
ssh command line auto completion works by reading from the config file. So getting into your acme server is as easy as: ssh a[tab]
@aba-nascu
@aba-nascu 2 жыл бұрын
Thank you!
@bobwong8268
@bobwong8268 2 жыл бұрын
👍👍👍👍👍Dear Jay, THANK YOU! Awesome! Use "server*" to match server1... how abt those different ip addresses? Perhaps we get to see them in the follow-up video.
@knowledgeispower17
@knowledgeispower17 2 жыл бұрын
Thank you. :D
@raul230285
@raul230285 2 жыл бұрын
Hi Jay, you think you can do a Nagios tutorial, thank you very much I have been following you for a long time. Greetings from Peru.
@greob
@greob 2 жыл бұрын
Shinra is not just the evil corporation in Final Fantasy VII, it's actually the name of an ancient kingdom of Korea: "Shilla".
@MrMackster01
@MrMackster01 2 жыл бұрын
This is great! Thanks for the video! I’m not seeing where you saved the config file? Or what the config file name is. Could you please clarify?
@richardmeyer418
@richardmeyer418 2 жыл бұрын
It's called config and it's in the .ssh folder off the /home/jay directory. The nano command (nano is the editor he uses) he gives shows this
@plazotronik
@plazotronik 2 жыл бұрын
the configuration file is very similar to the configuration of the redial application. I recommend it for ordering connections
@ibrahimamreya
@ibrahimamreya 2 жыл бұрын
Great video. thanks for your efforts. i use alot of your videos as a refrence when creating labs for my students. thanks again :)
@fredtheilig9636
@fredtheilig9636 2 жыл бұрын
I find that uppercase U and P for user and port is not required, at least in Ubuntu. I've always used lowercase without a problem. I just checked Host and Hostname and it's the same. Also, I use some end of life equipment that require the use of obsolete protocols that you will cover next. Very useful information, here.
@josh-rx6ly
@josh-rx6ly Жыл бұрын
Hi, am I correct in thinking that IdentityFile should point to your private key? Does this need to be an absolute path or is relative fine? I ask because my desktop doesn't seem to use the key when I use the alias. Help is appreciated.
@nandurx
@nandurx 2 жыл бұрын
Is there a way to apply ssh key when connecting because without it, it asks password all the time
@PaPaTheGMan1215
@PaPaTheGMan1215 Жыл бұрын
Just tumbled on this video and was excited to try it. Unfortunately, the 'config' file didn't work for me. I tried Arch Linux, Ubuntu, and Windows. None of them recognized any entries I added to $HOME/.ssh/config.
@jyvben1520
@jyvben1520 2 жыл бұрын
added l.sh (or lh.sh might be a more logical name) cat config | grep "Host " to only show the hosts
@kjn5991
@kjn5991 2 жыл бұрын
And what about the SSH connections to Github or other places? The known_hosts is filled with hashes and there's no way to recognize them (If I need to remove some connections from there).
@kjn5991
@kjn5991 2 жыл бұрын
@Terminalforlife (LL) That's what I meant. When I set up keys for the Github / Gitlab -connection, the corresponding host is added to known_hosts, but since it is hashed, I cannot recognize it from all the other hashed hosts. I know the hashes are an intended security feature, but it makes maintaining the known_hosts more difficult since I can't clearly see what hosts I have there. I have an old Linux installation on a laptop that I used for some dev stuff and there's no way I can remember all those hosts.
@shubashkamta1509
@shubashkamta1509 10 ай бұрын
Ya man. This does not work. Details are missing. Refuses connections have server install on one vm and client on another. Use syntax and conventions. Connection does not work at all. Docs on web detail same procedure but still fails to connect. What important details are you and all other resources omitting?
@Rickety3263
@Rickety3263 2 жыл бұрын
IdentifyFile!!!
@Ranblv
@Ranblv 2 жыл бұрын
great video thanks. I would have used the username Johnconnor on the second server.
@BDBD16
@BDBD16 2 жыл бұрын
I wonder how many networks/servers have a skynet name on them, then I wonder if they are all communicating...then I wonder....oh shit........
@praecorloth
@praecorloth 2 жыл бұрын
C'mon. We all know Shinra is from Chrono Trigger. ... :D
@d00dEEE
@d00dEEE 2 жыл бұрын
I'm too lazy to look, but I assume scp and friends pick this up, too?
@TheRubodj
@TheRubodj 3 ай бұрын
shinra FFVII
@rebycfa5673
@rebycfa5673 Ай бұрын
FFIV nerd ova here 2:29
@pylang3803
@pylang3803 2 жыл бұрын
don't connect to skynet :D
@Shawshanck
@Shawshanck 10 ай бұрын
Null
@hexbinoban6170
@hexbinoban6170 2 жыл бұрын
----------------------------------------- |. BLUE OYSTER CULT | |. 🎵 THEN CAME THE 🎵 | |. 🎵LAST DAYS OF 🎵 | |. 🎵MAY 🎵 I ------------------------------------------
Linux Crash Course - nano (command-line text editor)
12:46
Learn Linux TV
Рет қаралды 38 М.
SSH Full Course - EVERYTHING You Need to Know!
1:28:00
Learn Linux TV
Рет қаралды 561 М.
В ДЕТСТВЕ СТРОИШЬ ДОМ ПОД СТОЛОМ
00:17
SIDELNIKOVVV
Рет қаралды 3,8 МЛН
$10,000 Every Day You Survive In The Wilderness
26:44
MrBeast
Рет қаралды 130 МЛН
Resetting OpenSSH Host Keys (the easy method)
22:53
Learn Linux TV
Рет қаралды 11 М.
How to use the ssh config file ? - #SSH 05
12:40
xavki
Рет қаралды 5 М.
Modernize your Linux Storage with btrfs!
46:34
Learn Linux TV
Рет қаралды 141 М.
Linux Crash Course -  Managing Users
32:59
Learn Linux TV
Рет қаралды 96 М.
10 Tips for Hardening your Linux Servers
22:48
Learn Linux TV
Рет қаралды 62 М.
Turn VIM into a full featured IDE with only one command
11:55
Dreams of Code
Рет қаралды 615 М.
Top 5 Terminal Emulators
27:02
Learn Linux TV
Рет қаралды 83 М.
WWDC 2024 - June 10 | Apple
1:43:37
Apple
Рет қаралды 10 МЛН
wireless switch without wires part 6
0:49
DailyTech
Рет қаралды 3,4 МЛН
Купил этот ваш VR.
37:21
Ремонтяш
Рет қаралды 100 М.
Непробиваемый телевизор 🤯
0:23
FATA MORGANA
Рет қаралды 292 М.
Урна с айфонами!
0:30
По ту сторону Гугла
Рет қаралды 5 МЛН
ВЫ ЧЕ СДЕЛАЛИ С iOS 18?
22:40
Overtake lab
Рет қаралды 87 М.