TMUX Architecture

I’m developing more YouTube videos and one of them is: Introduction to TMUX

Here’s what I have so far:

A couple of things to note:

  1. Anything under the SSHD daemon (red dashed-square) is vulnerable to:
    • network interruptions and/or
    • session timeouts.
    • When this happens, ALL OF YOUR SHELLS and work are immediately terminated! โ˜ ๏ธ
  2. Anything under the TMUX Server (green dashed-square) is safe and will continue to run ๐Ÿ˜‰
    • And โ˜๏ธyou can reconnect to those shells and pick up like nothing ever happened.

How To Implement Keychain ๐Ÿ”

The Problem

If you are sick of re-entering your SSH passphrase per login shell ๐Ÿ˜’…

eval $(ssh-agent -s )
ssh-add /home/user1/.ssh/id_rsa

# View loaded keys
ssh-add -l

# Test "agent process"
ssh -i /home/user1/.ssh/id_rsa user1@remote1
SSH-Agent:

Keychain will allow you to enter your SSH passphrase per system reboot, ๐Ÿ˜ฒ

How???

Keychain will automatically re-use your pre-existing ssh-agent process and have instant access to any pre-loaded keys and passphrases.

Keychain:

Summary of Steps

Below are the steps I took in the Keychain playlist.

You may have to adjust some parameters for your environment but the Linux commands should be the same.

Generate Key Pair

# Generate your SSH keypair (Public/Private)
# Public Key ends with a *.pub
# Private Key has no extension
ssh-keygen

# Copy Public Key to host(s)
ssh-copy-id -i /home/user1/.ssh/id_rsas.pub user1@remote1

# Test Private Key
ssh -i /home/user1/.ssh/id_rsa user1@remote1

Keychain

# Install keychain
sudo apt-get install keychain

# Add the following to your  "~/.bashrc" 
eval `keychain --eval --agents ssh /home/user1/.ssh/id_rsa`

# Test keychain
ssh user1@remote1


Keychain Concepts

Here I explain the concepts that make up ssh key authentication and keychain:


Demonstration

Here, I show you how to actually implement keychain:

What IS Personal Responsibility?

If you read plenty of personal development literature, you always here the concept of Personal Responsibility.

But what does it REALLY MEAN and how do you practice this???


Here’s one way to ACTUALLY PRACTICE Personal Responsibility:

Don’t focus on resources, focus on resourcefulness

Can’t remember and too lazy to look up

If you focus on recourses, you’re likely to focus on what you DON’T HAVE. Essentially deferring the solution-seeking.

If you focus on resourcefulness, you’re looking at what you DO HAVE and making the most of that. And exercising your free agency.

This takes creativity and a little bit of courage.


Keep in mind though, that

Wisdom is the timely application of knowledge

@DandapaniLLC (Twitter)

Sometimes you DO need more resources; and sometimes resourcefulness is not enough.

But don’t ASSUME you always need more resources before you’ve had an honest look at yourself first.

Sometimes, just sometimes: Good enough is good enough.