How To Setup an SSH Config File

preview_player
Показать описание
Connecting With Us
---------------------------------------------------

Lawrence Systems Shirts and Swag
---------------------------------------------------

AFFILIATES & REFERRAL LINKS
---------------------------------------------------
Amazon Affiliate Store

UniFi Affiliate Link

All Of Our Affiliates that help us out and can get you discounts!

Gear we use on Kit

Use OfferCode LTSERVICES to get 5% off your order at

Digital Ocean Offer Code

HostiFi UniFi Cloud Hosting Service

Protect you privacy with a VPN from Private Internet Access

Patreon

⏱️ Timestamps ⏱️
0:00 Why Use an SSH Config File
2:25 Where is the SSH Config Fiel
4:25 Sending Remote Commands With SSH Config
5:55 Using DynamicForward and Proxychains With SSH Config
8:46 Menu Drive SSH tool For Connecting to SSH Servers
14:03 Managing & Syncing SSH Config Between Systems

Linux Proxychains Using SSH & SOCKS Proxy For Easy Remote Management & Testing

How To Generate Ed25519 SSH Keys, Install Them, and Configure Secure Passwordless Authentication

SSH Jump Server Access and How To Pivot Using OpenVPN & Proxychains

Getting Started With TMUX

Getting Started With The Open Source & Free Diagram tool Diagrams.NET

Рекомендации по теме
Комментарии
Автор

I swear, Tom is reading my mind on things i want to learn. Woot !

kipronosoi
Автор

Now I have this added to my config file for various servers it's now easy to do quick updates:

Host plex-update
Hostname 10.12.15.23
user root
port 22
RemoteCommand apt update && apt upgrade -y

Love it!!

Darkk
Автор

Talk about timing! I'm reading up on how all this works right now! You are a God amongst Men.

Crystawth
Автор

This was very helpful - thank you! I have one pc still running Ubuntu 16.04 and learned that "RemoteCommand" (and probably a few others) don't work with ssh versions earlier than 7.6. My 16.04 is running OpenSSH_7.2p2.

jokinboken
Автор

This also works with Windows' new terminal :-) You can just create a .ssh folder in your %HOMEPATH% (C:\user\YourProfile), throw in your private key(s), and create your config file. Make sure the folder permission only has your user (remove inheritance).

heavymetal
Автор

Always great content. Even if I know some basic concepts, Tom always drops some great knowledge. Thanks!

rullywow
Автор

I was looking for something like this after watching your proxychains vid.

SB-qmwg
Автор

I’m still learning the basic CLI commands. Long way to go.

OrlandoQuiros
Автор

Thanx a lot Tom) I didn't even know that my prog supports emojis)))

vaniacer
Автор

There is a Debian system update script I have used for a while. It is called ucaresystem-core. It needs root privilege because it runs updates. I could see it run by a one shot ssh command, on one or more systems. It is designed for interactive, console, use. Getting it to run blind may be tricky, so it may be better to build something like it. I will setup a Alpine linux server. (ex-Vista, single core AMD tower.) My server-fu needs much work. Your help will be priceless. Thanks.

jeffreyplum
Автор

Hey Tom! Thanks for another very helpful video! Around the 14:15 mark you discuss the config file, and I have some questions about it:
1) What would happen if you forget to close the Vi editor that holds a copy of the file you edit on one of your machines, and then attempt to rsync from another? It is somewhat likely that the remote file will sync eventually (when you get to the other machine and :q out of it) but this could come at the expense of losing the data on that second machine (because the rsync'ed copy will have been based on older content). Is there a simple way to prevent this from happening?
2) Why the 777 permissions? :)

drkskwlkr
Автор

MacOS users should install the dialog package before running sshto.

brew install dialog

Or

port install dialog

Then copy sshto into usr/local/bin to get around the issue with SIP preventing use of usr/bin

cp sshto /usr/local/bin

blackrockcity
Автор

Thanks for all you informative videos! What terminal application are you using? There's a tiny menu widget at the upper right corner than I don't recognize. And... are you still using BASH? (Just because the prompt resembles some I've seen for zsh).

captainlightbeam
Автор

Thanks Tom, great video, this was exactly what I needed. Implementing in 3.. 2... 1... :D

terjemoen
Автор

Good content Tom! It might be a basic question but how do you install sshto correct? Im use to just git clone and make install-ish but not for this one.. I cloned the repo and made an alias sshto='path/to/sshto', is there a better/more correct way?

kalleanka
Автор

sshto thank you will save me much time

garyadams
Автор

I’m surprised at how so many people don’t understand how SSH works. I even see private keys stuck in the authorized_keys file. 🤦‍♂️

lordgarth
Автор

3:50
I think you mean "explicitly" here.
Implicit = Implied
Explicit = Stated

WarpedFlayme
Автор

Is there a good document listing all of the option available in the ssh config file?

jonirish
Автор

tmux or screen, which do you prefer and why?

andarvidavohits