Skip to content

Commit

Permalink
feat: chapter 31 - the secure shell (#187)
Browse files Browse the repository at this point in the history
  • Loading branch information
dwmkerr authored Apr 5, 2022
1 parent 0b31bca commit f188b2c
Show file tree
Hide file tree
Showing 20 changed files with 368 additions and 12 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<mxfile host="Electron" modified="2022-04-05T05:58:06.492Z" agent="5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) draw.io/15.4.0 Chrome/91.0.4472.164 Electron/13.5.0 Safari/537.36" etag="WB49tPhE24BtVEzryK7K" version="15.4.0" type="device"><diagram id="zMdPa7TFIofes7aEGqtK" name="Page-1">3VfbUtswEP2aPJKRrTikj+QC7RQGpulM26eOYiu2GtvryjKJ+fqubPmGk0A7gYHygnS02mjP2V1LAzqLdleSJcENeDwc2MTbDeh8YNuWRcb4TyN5iUzsSQn4UnjGqAGW4oEbkBg0Ex5PO4YKIFQi6YIuxDF3VQdjUsK2a7aGsPurCfN5D1i6LOyj34Sngiqu8Ydm4SMXfqCq+M7LhYhVxiaSNGAebFsQXQzoTAKochTtZjzU5FW8lPsuD6zWB5M8Vs/Z8EV+yleLW0c6V78p8ZQD/OeZieKehZkJ+E6Ke6b4wB6H6Ha6kjjy9egzz00gKq/YwZgSPYwBd9DpNhCKLxPmamyLCYFYoKIQZ5b2xdyNLyGLvdtMhSLmBveY3NziLqF0kpAhcRA0B+NS8d3BiK2aR0xADhFXEg9Jqg0jQ73JPWqNyvm2UXJiTIKWhhYxIDPJ49euG35xYCj+C7qdHoPcw3QzU5AqAB9iFi4adFoQxrVXgrPG5hogMQT+4krlpnZYpqBLO7Il8+9mfzH5UdDsVNP5rr04z82sPKs+4HH+MR7IpMuPxF1VLpM+V0fs6H49JQ+ZEvfdc5xcnHGvFpY89hBZxK7ME8X1+IanqW4Z+3S8Zivsfh3uWSj8GMcuUsYlAjqhBbaXC7MQCc8rZeapeGCrwp9mPwERqyJEZzpw5scqwvQ+s7npOG2lDqfjwfI5I0OLTGjp69kSGHd3+vitUqTdHbBep5gJjyWrD/HvKlo9FY18bfGwA2ADsEnd7Mi+7tatvCeaW6obWOx/LYqSNMA1X6suMgWlIOpiODtV07O7Tc+ummCr6dU27a43fqmmZ/cUweR3+yVUfUyyKLxwFbSrpaisO0iFEqCrZmUo7JWTgkeyQPmlmdXXA3IimsdOh2ZrD830NVmmPZbn/HDeZyuU4H9K+9HkraX9qCfIFFbvO+kd+40l/aTHcY/gFi1PEtv7WofaclpfW2cQaoXQLV0XfwfFSJWETf1isGuk5YGQCbksaqF6GJDiLpwGde1VyRHtfP26GgpIz4cCP/fpMAR3o+1Oc08edWSl1nlPVnvUl5W+lKzV46/9LDEd6/2/Shzyeq8SnDYPzPKG1TzT6eIP</diagram></mxfile>
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<mxfile host="Electron" modified="2022-04-05T05:34:51.826Z" agent="5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) draw.io/15.4.0 Chrome/91.0.4472.164 Electron/13.5.0 Safari/537.36" etag="Gj7hv2YH4L39SA0HAHA2" version="15.4.0" type="device"><diagram id="zMdPa7TFIofes7aEGqtK" name="Page-1">7VbbbptAEP0aHhNxMa77GF+aVnLUqK7U5qlawxi2AoYsgzH5+u7CYthgW2nVRq3UJ3bOzA6zc+YsWN4iPdwKlsd3GEJiuXZ4sLyl5bqOY0/lQyF1i8zcWQtEgoc6qAc2/Ak0aGu05CEURiAhJsRzEwwwyyAgA2NCYGWG7TAx35qzCEbAJmDJGP3CQ4q7c03f9o73wKOYuvO9aR0p64L1SYqYhVgNIG9leQuBSO0qPSwgUc3r+tLue3fGeyxMQEYv2fBJfKi3q4++8G8fPTskH+Hbla9ro7o7MITy/NpEQTFGmLFk1aNzgWUWgspqS6uPWSPmEnQk+B2Iak0mKwklFFOaaK8sWNRf9f7GeFDGtd+Zy8PQuay11daqCjzbAg0VWIoALpy7GyUmIqALcd6RKDnhgCnIeuQ+AQkjvjfrYHrUomNcz4ZcaEJ+ghwtnT1LSv2mDWShRFZZIOqcQK3voCjUDJ/icc22Uo5G71nCo0yuA9kyEBLYgyAu5/1GO1Iehi3NUPAntm3yqe7nyDNqjujPLX955EMlgIN1Qox6cy+BIVPnx3Hcbp39yr527JnX5noxBTrdvSq/z+V45g7c7Qo5Cc8pOxbx6yw6IxY1fUPy7IrL60J1qCgqFIpYy50+lupymG8gEECO6/XQiG5TlFXMCTY5azRQyZvZHIJCengWfW70avfAGnZkInMkwtTEpOVfYn+kx7OEOt1g6I+DO9F2Nbhqu5h4cMtO7T8kOXdEltRFMFaXvMxztSzT5CYgHAqpEd09Fpw4KkFtdQtHSiN8RguWlPAMFsdPmf2b2jz1jTY7J9rsvWaXvVGXl/BfEo13MvvbJDEZkTXH7b8tCN99NUFIs//Faz8p/Y+yt/oB</diagram></mxfile>
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
324 changes: 324 additions & 0 deletions docs/06-advanced-techniques/31-the-secure-shell/index.mdx

Large diffs are not rendered by default.

16 changes: 13 additions & 3 deletions docs/06-advanced-techniques/33-master-the-multiplexer/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -349,6 +349,7 @@ A quick reference of command commands below:

| Command | Description |
|-------------------------------|------------------------------------------------------------------------------------|
| **Essential Tmux Commands** | |
| `tmux ls` | List sessions |
| `tmux new [-s name]` | Start a new `tmux` (optionally with a session name) |
| `tmux attach [-t name]` | Attach to the last used session, or the target session with `-t` |
Expand All @@ -357,21 +358,21 @@ A quick reference of command commands below:
| `^b d` | Detach from the current session |
| `^b : new -s another-name` | Enter command mode, start session named `another-name` |
| `^b ?` | Show command help |
|-------------------------------|------------------------------------------------------------------------------------|
| **Sessions* | |
| `^b $` | Rename the current session |
| `^b s` | Show the session list. Close the selected session with `x` |
| `^b )` | Move to next session |
| `^b (` | Move to the previous session |
| `^b w` | Show all windows - this command also shows all sessions! |
|-------------------------------|------------------------------------------------------------------------------------|
| **Windows** | |
| `^b n` | Move to the next window |
| `^b p` | Move to the previous window |
| `^b 0` | Select the window numbered '0' - use the number of any window from the status pane |
| `^b &` | Close the current window |
| `^b ,` | Rename the current window |
| `^b w` | Show the window navigator |
| `^b $` | Kill the current window |
|-------------------------------|------------------------------------------------------------------------------------|
| **Splits and Panes** | | |
| `^b %` | Create a horizontal split |
| `^b "` | Create a vertical split |
| `^b <arrow>` | Move to the pane in the direction of an arrow key |
Expand All @@ -383,3 +384,12 @@ A quick reference of command commands below:
In this chapter we introduced the concept of Terminal Multiplexers, in particular GNU screen and Tmux. We saw how to manage windows, panes and sessions. We learned how to configure Tmux to suit your personal working style. We also looked at how we can use Tmux to manage sessions on remote machines and even collaborate real time with other users.

[^1]: You can find my complete set of dotfiles at [github.com/dwmkerr/dofiles](https://github.com/dwmkerr/dotfiles) if you would like to see how I configure other programs.

## TODO

```
RequestTTY yes
RemoteCommand screen -UDr
```

TODO update tmux info, so that we always open tmux in our ssh client
6 changes: 6 additions & 0 deletions docs/xx-appendices/reading-list.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,12 @@ Absolutely the best book I've read on Vim, perfect for users of all levels. Writ

This is a wonderful repository, which aims to help you "Master the command line, in one page". This page is full of useful resources and is a superb reference for users from novice all the way to advanced!

### Security

**Applied Cryptography: Protocols, Algorithms, and Source Code in C - Bruce Schneier**

This is the absolute best book around on cryptography - from concepts, protocols all the way to advanced topics. There are code examples in C that allow you to really see how these concepts work in practice. This is an excellent book for someone who wants to learn about cryptography but also have the option to go deep into the topics that interest them.

## Great Videos

### The UNIX Operating System
Expand Down
9 changes: 0 additions & 9 deletions docs/xx-appendices/setting-up-a-linux-virtual-machine.md

This file was deleted.

4 changes: 4 additions & 0 deletions docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,10 @@ const config = {
indexBlog: false, // we are not using the blog features.
},
],
[
require.resolve('docusaurus-plugin-drawio'),
{}
],
],
};

Expand Down
17 changes: 17 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
"@types/react": "^17.0.43",
"asciinema-player": "^3.0.0-rc.1",
"clsx": "^1.1.1",
"docusaurus-plugin-drawio": "^0.1.7",
"prism-react-renderer": "^1.2.1",
"react": "^17.0.1",
"react-dom": "^17.0.1",
Expand Down
1 change: 1 addition & 0 deletions sidebars.js
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ const sidebars = {
items: [
'advanced-techniques/understanding-shell-expansion/index',
'advanced-techniques/how-to-avoid-scripting/index',
'advanced-techniques/the-secure-shell/index',
'advanced-techniques/master-the-multiplexer/index',
]
},
Expand Down

0 comments on commit f188b2c

Please sign in to comment.