The OpenSSH Client Config File: Simplify your SSH Connections

แชร์
ฝัง
  • เผยแพร่เมื่อ 18 มิ.ย. 2024
  • 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 TH-cam 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 ปีที่แล้ว +5

    Your videos are so much easy to follow and they are super organized. You are a legend.

  • @wmike145
    @wmike145 2 ปีที่แล้ว +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.

  • @amitzdullnicker2k
    @amitzdullnicker2k 2 ปีที่แล้ว +6

    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!

  • @TheLichKng64
    @TheLichKng64 2 ปีที่แล้ว +3

    This channel is just amazing! Thank you so much Jay for providing such great content! It's a life saver!

  • @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.

  • @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!

  • @whylde7834
    @whylde7834 2 ปีที่แล้ว

    Thanks for the video. Look forward to the next steps!

  • @jonnypeace2810
    @jonnypeace2810 2 ปีที่แล้ว +1

    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 :)

  • @princemarkied8071
    @princemarkied8071 5 หลายเดือนก่อน

    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!

  • @SwiatLinuksa
    @SwiatLinuksa 2 ปีที่แล้ว

    Very usefull tip! Thank you very much! Add to this ssh keys on server and here we go ;))

  • @RoborobsComputers
    @RoborobsComputers 2 ปีที่แล้ว

    Great information Jay. Thank you for all you do.

  • @KiranDevraaj
    @KiranDevraaj 2 ปีที่แล้ว

    Helpful video sir, this will definitely help in improve my productivity as a network quality engineer 👨‍💻

  • @venkatesh4760
    @venkatesh4760 2 ปีที่แล้ว

    Thanks Jay for the informative Video.

  • @darrylbaker8004
    @darrylbaker8004 2 ปีที่แล้ว

    Thanks really helped me very much

  • @murtadha96
    @murtadha96 ปีที่แล้ว

    Fantastic! Thank you

  • @mkintzel
    @mkintzel 2 ปีที่แล้ว

    Thank you - this is so helpful!!

  • @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

  • @glyakk
    @glyakk 2 ปีที่แล้ว

    Great video and well done. I started using ssh config last year to simplify my life lol.

  • @eramorn
    @eramorn 2 ปีที่แล้ว

    Like always this is the best channel when learned new things about Linux!. Ps. How is Mycroft doing controlling the world? 😉

  • @chrisumali9841
    @chrisumali9841 2 ปีที่แล้ว

    Thanks for this great tip and info, have a great day

  • @tigerfish66
    @tigerfish66 2 ปีที่แล้ว

    some great tips in here thank you.

  • @GorkemYildirim
    @GorkemYildirim 2 ปีที่แล้ว

    Good guide, thanks.

  • @FurikuriYugi
    @FurikuriYugi 2 ปีที่แล้ว

    Thank you sir, saved me some time.

  • @legooos
    @legooos 2 ปีที่แล้ว

    very useful, thanks

  • @whiskeylinux
    @whiskeylinux 2 ปีที่แล้ว

    Thanks Jay!

  • @olafhuerta2318
    @olafhuerta2318 2 ปีที่แล้ว +3

    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)

  • @aba-nascu
    @aba-nascu 2 ปีที่แล้ว

    Thank you!

  • @anon1div0
    @anon1div0 2 ปีที่แล้ว

    I normally use Fish aliases or Fish command history to simplify SSH commands but will now use this method instead. 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?

  • @rcdenis1
    @rcdenis1 2 ปีที่แล้ว

    Thank you Jay. Oh, skynet is from the terminator, acme I'm not sure but wiley coyote somehow comes to mind.

  • @brandon_wallace
    @brandon_wallace 2 ปีที่แล้ว

    Good information in this video.

  • @michalroesler
    @michalroesler ปีที่แล้ว

    Yes. Already subscribed.

  • @EUPescar
    @EUPescar 2 ปีที่แล้ว

    Great video!

  • @youtubeoneverything4581
    @youtubeoneverything4581 2 ปีที่แล้ว

    Loved it.

  • @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.

  • @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]

  • @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.

  • @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 :)

  • @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.

  • @greob
    @greob 2 ปีที่แล้ว +1

    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 ปีที่แล้ว +1

      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

  • @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.

  • @Ranblv
    @Ranblv 2 ปีที่แล้ว

    great video thanks. I would have used the username Johnconnor on the second server.

  • @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 ปีที่แล้ว +1

    IdentifyFile!!!

  • @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

  • @hexbinoban6170
    @hexbinoban6170 2 ปีที่แล้ว

    -----------------------------------------
    |. BLUE OYSTER CULT |
    |. 🎵 THEN CAME THE 🎵 |
    |. 🎵LAST DAYS OF 🎵 |
    |. 🎵MAY 🎵 I
    ------------------------------------------

  • @pylang3803
    @pylang3803 2 ปีที่แล้ว

    don't connect to skynet :D

  • @Shawshanck
    @Shawshanck 10 หลายเดือนก่อน

    Null