starts ssh doc

This commit is contained in:
waldek 2021-07-13 11:20:49 +02:00
parent 28a9c2483d
commit 5d0898d5e8
2 changed files with 426 additions and 0 deletions

View File

@ -0,0 +1,351 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!-- Created with Inkscape (http://www.inkscape.org/) -->
<svg
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:cc="http://creativecommons.org/ns#"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:svg="http://www.w3.org/2000/svg"
xmlns="http://www.w3.org/2000/svg"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
version="1.0"
x="0.00000000"
y="0.00000000"
width="525.00000px"
height="512.50000px"
id="svg2"
sodipodi:version="0.32"
inkscape:version="0.92.3 (2405546, 2018-03-11)"
sodipodi:docname="Public_key_encryption.svg">
<metadata
id="metadata55">
<rdf:RDF>
<cc:Work
rdf:about="">
<dc:format>image/svg+xml</dc:format>
<dc:type
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
<dc:title></dc:title>
</cc:Work>
</rdf:RDF>
</metadata>
<sodipodi:namedview
inkscape:window-height="1699"
inkscape:window-width="2736"
inkscape:pageshadow="2"
inkscape:pageopacity="0.0"
borderopacity="1.0"
bordercolor="#666666"
pagecolor="#ffffff"
id="base"
inkscape:zoom="1.5063415"
inkscape:cx="262.5"
inkscape:cy="256.25"
inkscape:window-x="-13"
inkscape:window-y="-13"
inkscape:current-layer="svg2"
showgrid="false"
inkscape:window-maximized="1" />
<defs
id="defs4">
<marker
refX="0.00000000"
refY="0.00000000"
orient="auto"
style="overflow:visible"
id="Arrow2Lend">
<path
d="M 8.7185878,4.0337352 L -2.2072895,0.016013256 L 8.7185884,-4.0017078 C 6.9730900,-1.6296469 6.9831476,1.6157441 8.7185878,4.0337352 z "
transform="matrix(-1.100000,0.000000,0.000000,-1.100000,5.500000,0.000000)"
style="font-size:12.000000px;fill-rule:evenodd;stroke-width:0.62500000;stroke-linejoin:round"
id="path7487" />
</marker>
<marker
id="marker1456"
style="overflow:visible"
orient="auto"
refY="0.00000000"
refX="0.00000000">
<path
id="path1458"
style="font-size:12.000000px;fill-rule:evenodd;stroke-width:0.62500000;stroke-linejoin:round"
transform="matrix(-1.100000,0.000000,0.000000,-1.100000,5.500000,0.000000)"
d="M 8.7185878,4.0337352 L -2.2072895,0.016013256 L 8.7185884,-4.0017078 C 6.9730900,-1.6296469 6.9831476,1.6157441 8.7185878,4.0337352 z " />
</marker>
</defs>
<path
d="M 349.94220,396.95514 L 311.46712,413.13812"
style="fill:none;fill-opacity:0.75000000;fill-rule:evenodd;stroke:#000000;stroke-width:3.0000000;stroke-linecap:butt;stroke-linejoin:miter;marker-start:none;marker-end:none;stroke-miterlimit:4.0000000;stroke-dasharray:none;stroke-opacity:1.0000000"
id="path2937" />
<path
d="M 353.86966,101.12095 L 311.24950,111.08631"
style="fill:none;fill-opacity:0.75000000;fill-rule:evenodd;stroke:#000000;stroke-width:3.0000000;stroke-linecap:butt;stroke-linejoin:miter;marker-start:none;marker-end:none;stroke-miterlimit:4.0000000;stroke-dasharray:none;stroke-opacity:1.0000000"
id="path2935" />
<path
d="M 236.12824,272.73302 L 237.37018,371.42135"
style="fill:none;fill-opacity:0.75000000;fill-rule:evenodd;stroke:#000000;stroke-width:3.0000000;stroke-linecap:butt;stroke-linejoin:miter;marker-start:none;marker-end:none;stroke-miterlimit:4.0000000;stroke-dasharray:none;stroke-opacity:1.0000000"
id="path2917" />
<path
d="M 236.12824,125.59671 L 237.37018,173.50784"
style="fill:none;fill-opacity:0.75000000;fill-rule:evenodd;stroke:#000000;stroke-width:3.0000000;stroke-linecap:butt;stroke-linejoin:miter;marker-start:none;marker-end:none;stroke-miterlimit:4.0000000;stroke-dasharray:none;stroke-opacity:1.0000000"
id="path12787" />
<path
d="M 91.840230,114.96672 L 160.92992,115.39841"
style="fill:none;fill-opacity:0.75000000;fill-rule:evenodd;stroke:#000000;stroke-width:3.0000000;stroke-linecap:butt;stroke-linejoin:miter;marker-start:none;marker-end:none;stroke-miterlimit:4.0000000;stroke-dasharray:none;stroke-opacity:1.0000000"
id="path12783" />
<rect
width="99.449097"
height="79.464615"
x="29.548828"
y="75.450256"
style="opacity:1.0000000;fill:#00fbfe;fill-opacity:1.0000000;fill-rule:evenodd;stroke:#000000;stroke-width:0.99999976;stroke-linecap:square;stroke-linejoin:miter;stroke-miterlimit:4.0000000;stroke-dasharray:none;stroke-dashoffset:10.000000;stroke-opacity:1.0000000"
id="rect9051" />
<text
x="53.870625"
y="100.10528"
transform="scale(0.921745,1.084899)"
style="font-style:normal;font-variant:normal;font-weight:bold;font-stretch:normal;font-size:24.00016975px;line-height:0%;font-family:Tahoma;text-align:start;writing-mode:lr-tb;text-anchor:start;fill:#000000;fill-opacity:1;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
id="text6642"
xml:space="preserve"><tspan
x="53.870625"
y="100.10528"
id="tspan11289">Hello </tspan><tspan
x="53.870625"
y="130.10544"
id="tspan2167">Alice!</tspan></text>
<path
d="M 368.29004,364.25146 C 357.00240,364.25146 347.84129,376.85844 347.84129,392.38524 C 347.84129,407.91204 357.00240,420.50744 368.29004,420.50744 C 377.68345,420.50744 385.59183,411.77419 387.98569,399.89686 L 450.21289,399.89686 L 450.21289,410.74725 L 460.74363,410.74725 L 460.74363,418.99219 L 469.47455,418.99219 L 469.47455,410.74725 L 479.27770,410.74725 L 479.27770,399.89686 L 491.69758,399.89686 L 491.69758,386.31104 L 388.25375,386.31104 C 386.23190,373.70358 378.06032,364.25146 368.29004,364.25146 z M 363.17148,382.01040 C 366.86596,382.01040 369.87285,386.33783 369.87285,391.66654 C 369.87285,396.99525 366.86596,401.32268 363.17148,401.32268 C 359.47699,401.32268 356.48287,396.99525 356.48287,391.66654 C 356.48287,386.33782 359.47699,382.01040 363.17148,382.01040 z "
style="opacity:1.0000000;fill:#ff0000;fill-opacity:1.0000000;fill-rule:evenodd;stroke:#000000;stroke-width:2.0000005;stroke-linecap:square;stroke-linejoin:miter;stroke-miterlimit:4.0000000;stroke-dasharray:none;stroke-dashoffset:10.000000;stroke-opacity:1.0000000"
id="path1306" />
<text
x="333.31406"
y="474.3338"
transform="scale(1.038686,0.962755)"
style="font-style:normal;font-variant:normal;font-weight:bold;font-stretch:normal;font-size:24.0003376px;line-height:0%;font-family:Tahoma;text-align:start;writing-mode:lr-tb;text-anchor:start;fill:#000000;fill-opacity:1;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
id="text8995"
xml:space="preserve"><tspan
x="333.31406"
y="474.3338"
id="tspan8997">Alice's</tspan><tspan
x="333.31406"
y="504.33386"
id="tspan9043">private key</tspan></text>
<rect
width="112.12913"
height="60.939266"
x="180.68465"
y="84.712936"
style="opacity:1.0000000;fill:#ffff91;fill-opacity:1.0000000;fill-rule:evenodd;stroke:#000000;stroke-width:1.0000001;stroke-linecap:square;stroke-linejoin:miter;stroke-miterlimit:4.0000000;stroke-dasharray:none;stroke-dashoffset:10.000000;stroke-opacity:1.0000000"
id="rect10547" />
<text
x="209.95047"
y="112.48004"
transform="scale(0.921745,1.084899)"
style="font-style:normal;font-variant:normal;font-weight:bold;font-stretch:normal;font-size:24.00015259px;line-height:0%;font-family:Tahoma;text-align:start;writing-mode:lr-tb;text-anchor:start;fill:#000000;fill-opacity:1;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
id="text11291"
xml:space="preserve"><tspan
x="209.95047"
y="112.48004"
id="tspan11295">Encrypt</tspan></text>
<rect
width="137.04561"
height="79.464615"
x="168.22641"
y="193.16718"
style="opacity:1.0000000;fill:#20dddd;fill-opacity:1.0000000;fill-rule:evenodd;stroke:#000000;stroke-width:0.99999988;stroke-linecap:square;stroke-linejoin:miter;stroke-miterlimit:4.0000000;stroke-dasharray:none;stroke-dashoffset:10.000000;stroke-opacity:1.0000000"
id="rect2159" />
<text
x="195.39571"
y="208.4174"
transform="scale(0.921745,1.084899)"
style="font-style:normal;font-variant:normal;font-weight:bold;font-stretch:normal;font-size:24.00014877px;line-height:0%;font-family:Tahoma;text-align:start;writing-mode:lr-tb;text-anchor:start;fill:#000000;fill-opacity:1;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
id="text2161"
xml:space="preserve"><tspan
x="195.39571"
y="208.4174"
id="tspan2163">6EB69570</tspan><tspan
x="195.39571"
y="238.41776"
id="tspan2165">08E03CE4</tspan></text>
<path
d="M 224.35180,421.31549 L 147.53475,420.91816"
style="fill:none;fill-opacity:0.75000000;fill-rule:evenodd;stroke:#000000;stroke-width:3.0000000;stroke-linecap:butt;stroke-linejoin:miter;marker-start:none;marker-end:none;stroke-miterlimit:4.0000000;stroke-dasharray:none;stroke-opacity:1.0000000"
id="path2919" />
<rect
width="96.798950"
height="79.464615"
x="30.873901"
y="381.38452"
style="opacity:1.0000000;fill:#00fbfe;fill-opacity:1.0000000;fill-rule:evenodd;stroke:#000000;stroke-width:0.99999976;stroke-linecap:square;stroke-linejoin:miter;stroke-miterlimit:4.0000000;stroke-dasharray:none;stroke-dashoffset:10.000000;stroke-opacity:1.0000000"
id="rect2921" />
<text
x="53.870205"
y="382.10736"
transform="scale(0.921745,1.084899)"
style="font-style:normal;font-variant:normal;font-weight:bold;font-stretch:normal;font-size:24.00048065px;line-height:0%;font-family:Tahoma;text-align:start;writing-mode:lr-tb;text-anchor:start;fill:#000000;fill-opacity:1;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
id="text2923"
xml:space="preserve"><tspan
x="53.870205"
y="382.10736"
id="tspan2925">Hello </tspan><tspan
x="53.870205"
y="412.10837"
id="tspan2927">Alice!</tspan></text>
<rect
width="112.12913"
height="60.939266"
x="180.68465"
y="390.64719"
style="opacity:1.0000000;fill:#ffff91;fill-opacity:1.0000000;fill-rule:evenodd;stroke:#000000;stroke-width:1.0000001;stroke-linecap:square;stroke-linejoin:miter;stroke-miterlimit:4.0000000;stroke-dasharray:none;stroke-dashoffset:10.000000;stroke-opacity:1.0000000"
id="rect2929" />
<text
x="208.80138"
y="394.4823"
transform="scale(0.921745,1.084899)"
style="font-style:normal;font-variant:normal;font-weight:bold;font-stretch:normal;font-size:24.00047684px;line-height:0%;font-family:Tahoma;text-align:start;writing-mode:lr-tb;text-anchor:start;fill:#000000;fill-opacity:1;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
id="text2931"
xml:space="preserve"><tspan
x="208.80138"
y="394.4823"
id="tspan2933">Decrypt</tspan></text>
<path
d="M 368.29006,70.471520 C 357.00241,70.471520 347.84130,83.078500 347.84130,98.605300 C 347.84130,114.13210 357.00241,126.72750 368.29006,126.72750 C 377.68346,126.72750 385.59184,117.99425 387.98570,106.11692 L 450.21291,106.11692 L 450.21291,124.96731 L 460.74364,124.96731 L 460.74364,117.21225 L 469.47457,117.21225 L 469.47457,124.96731 L 479.27772,124.96731 L 479.27772,106.11692 L 491.69759,106.11692 L 491.69759,92.531100 L 388.25376,92.531100 C 386.23191,79.923640 378.06033,70.471520 368.29006,70.471520 z M 363.17149,88.230460 C 366.86597,88.230460 369.87286,92.557890 369.87286,97.886600 C 369.87286,103.21531 366.86597,107.54274 363.17149,107.54274 C 359.47701,107.54274 356.48288,103.21531 356.48288,97.886600 C 356.48288,92.557880 359.47701,88.230460 363.17149,88.230460 z "
style="opacity:1.0000000;fill:#00ff00;fill-opacity:1.0000000;fill-rule:evenodd;stroke:#000000;stroke-width:2.0000005;stroke-linecap:square;stroke-linejoin:miter;stroke-miterlimit:4.0000000;stroke-dasharray:none;stroke-dashoffset:10.000000;stroke-opacity:1.0000000"
id="path5914" />
<text
x="333.31406"
y="169.18408"
transform="scale(1.038686,0.962755)"
style="font-style:normal;font-variant:normal;font-weight:bold;font-stretch:normal;font-size:24.00006676px;line-height:0%;font-family:Tahoma;text-align:start;writing-mode:lr-tb;text-anchor:start;fill:#000000;fill-opacity:1;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
id="text9045"
xml:space="preserve"><tspan
x="333.31406"
y="169.18408"
id="tspan9047">Alice's</tspan><tspan
x="333.31406"
y="199.18416"
id="tspan9049">public key</tspan></text>
<path
d="M 23.707951,306.44560 L 498.73449,306.44560"
style="fill:none;fill-opacity:0.75000000;fill-rule:evenodd;stroke:#000000;stroke-width:2.0000002;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4.0000000;stroke-dasharray:none;stroke-opacity:1.0000000"
id="path1378" />
<text
x="33.939548"
y="321.85117"
transform="scale(0.921745,1.084899)"
style="font-style:normal;font-variant:normal;font-weight:bold;font-stretch:normal;font-size:32.00062943px;line-height:0%;font-family:Tahoma;text-align:start;writing-mode:lr-tb;text-anchor:start;fill:#000000;fill-opacity:1;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
id="text2135"
xml:space="preserve"><tspan
x="33.939548"
y="321.85117"
style="font-style:normal;font-variant:normal;font-weight:bold;font-stretch:normal;font-size:32.00062943px;line-height:124.99998808%;font-family:Tahoma;text-align:start;writing-mode:lr-tb;text-anchor:start"
id="tspan2137">Alice</tspan></text>
<path
sodipodi:type="star"
style="opacity:1.0000000;fill:#000000;fill-opacity:1.0000000;fill-rule:evenodd;stroke:#000000;stroke-width:7.2825398;stroke-linecap:square;stroke-linejoin:miter;stroke-miterlimit:4.0000000;stroke-dasharray:none;stroke-opacity:1.0000000;display:inline"
id="path13515"
sodipodi:sides="3"
sodipodi:cx="58.031090"
sodipodi:cy="313.98965"
sodipodi:r1="24.870466"
sodipodi:r2="12.435234"
sodipodi:arg1="0.00000000"
sodipodi:arg2="1.0471976"
inkscape:flatsided="false"
inkscape:rounded="0.00000000"
inkscape:randomized="0.00000000"
d="M 82.901556,313.98965 L 64.248706,324.75888 L 45.595857,335.52811 L 45.595856,313.98965 L 45.595857,292.45120 L 64.248707,303.22043 L 82.901556,313.98965 z "
transform="matrix(-3.040663e-4,0.536912,-0.316064,-1.599964e-4,336.0039,341.7284)" />
<path
sodipodi:type="star"
style="opacity:1.0000000;fill:#000000;fill-opacity:1.0000000;fill-rule:evenodd;stroke:#000000;stroke-width:7.2825398;stroke-linecap:square;stroke-linejoin:miter;stroke-miterlimit:4.0000000;stroke-dasharray:none;stroke-opacity:1.0000000;display:inline"
id="path5890"
sodipodi:sides="3"
sodipodi:cx="58.031090"
sodipodi:cy="313.98965"
sodipodi:r1="24.870466"
sodipodi:r2="12.435234"
sodipodi:arg1="0.00000000"
sodipodi:arg2="1.0471976"
inkscape:flatsided="false"
inkscape:rounded="0.00000000"
inkscape:randomized="0.00000000"
d="M 82.901556,313.98965 L 64.248706,324.75888 L 45.595857,335.52811 L 45.595856,313.98965 L 45.595857,292.45120 L 64.248707,303.22043 L 82.901556,313.98965 z "
transform="matrix(-0.496084,0.205365,-0.120910,-0.292022,376.0725,492.9744)" />
<path
sodipodi:type="star"
style="opacity:1.0000000;fill:#000000;fill-opacity:1.0000000;fill-rule:evenodd;stroke:#000000;stroke-width:7.2825398;stroke-linecap:square;stroke-linejoin:miter;stroke-miterlimit:4.0000000;stroke-dasharray:none;stroke-opacity:1.0000000;display:inline"
id="path5892"
sodipodi:sides="3"
sodipodi:cx="58.031090"
sodipodi:cy="313.98965"
sodipodi:r1="24.870466"
sodipodi:r2="12.435234"
sodipodi:arg1="0.00000000"
sodipodi:arg2="1.0471976"
inkscape:flatsided="false"
inkscape:rounded="0.00000000"
inkscape:randomized="0.00000000"
d="M 82.901556,313.98965 L 64.248706,324.75888 L 45.595857,335.52811 L 45.595856,313.98965 L 45.595857,292.45120 L 64.248707,303.22043 L 82.901556,313.98965 z "
transform="matrix(0.536905,-2.831340e-3,1.685723e-3,0.316060,130.9598,16.20191)" />
<path
sodipodi:type="star"
style="opacity:1.0000000;fill:#000000;fill-opacity:1.0000000;fill-rule:evenodd;stroke:#000000;stroke-width:7.2825398;stroke-linecap:square;stroke-linejoin:miter;stroke-miterlimit:4.0000000;stroke-dasharray:none;stroke-opacity:1.0000000;display:inline"
id="path3014"
sodipodi:sides="3"
sodipodi:cx="58.031090"
sodipodi:cy="313.98965"
sodipodi:r1="24.870466"
sodipodi:r2="12.435234"
sodipodi:arg1="0.00000000"
sodipodi:arg2="1.0471976"
inkscape:flatsided="false"
inkscape:rounded="0.00000000"
inkscape:randomized="0.00000000"
d="M 82.901556,313.98965 L 64.248706,324.75888 L 45.595857,335.52811 L 45.595856,313.98965 L 45.595857,292.45120 L 64.248707,303.22043 L 82.901556,313.98965 z "
transform="matrix(-0.536905,-2.831340e-3,-1.685723e-3,0.316060,177.0222,322.1088)" />
<path
sodipodi:type="star"
style="opacity:1.0000000;fill:#000000;fill-opacity:1.0000000;fill-rule:evenodd;stroke:#000000;stroke-width:7.2825398;stroke-linecap:square;stroke-linejoin:miter;stroke-miterlimit:4.0000000;stroke-dasharray:none;stroke-opacity:1.0000000;display:inline"
id="path3016"
sodipodi:sides="3"
sodipodi:cx="58.031090"
sodipodi:cy="313.98965"
sodipodi:r1="24.870466"
sodipodi:r2="12.435234"
sodipodi:arg1="0.00000000"
sodipodi:arg2="1.0471976"
inkscape:flatsided="false"
inkscape:rounded="0.00000000"
inkscape:randomized="0.00000000"
d="M 82.901556,313.98965 L 64.248706,324.75888 L 45.595857,335.52811 L 45.595856,313.98965 L 45.595857,292.45120 L 64.248707,303.22043 L 82.901556,313.98965 z "
transform="matrix(-3.040663e-4,0.536912,-0.316064,-1.599964e-4,336.0039,144.1345)" />
<path
sodipodi:type="star"
style="opacity:1.0000000;fill:#000000;fill-opacity:1.0000000;fill-rule:evenodd;stroke:#000000;stroke-width:7.2825398;stroke-linecap:square;stroke-linejoin:miter;stroke-miterlimit:4.0000000;stroke-dasharray:none;stroke-opacity:1.0000000;display:inline"
id="path3018"
sodipodi:sides="3"
sodipodi:cx="58.031090"
sodipodi:cy="313.98965"
sodipodi:r1="24.870466"
sodipodi:r2="12.435234"
sodipodi:arg1="0.00000000"
sodipodi:arg2="1.0471976"
inkscape:flatsided="false"
inkscape:rounded="0.00000000"
inkscape:randomized="0.00000000"
d="M 82.901556,313.98965 L 64.248706,324.75888 L 45.595857,335.52811 L 45.595856,313.98965 L 45.595857,292.45120 L 64.248707,303.22043 L 82.901556,313.98965 z "
transform="matrix(-0.522749,0.122507,-7.213487e-2,-0.307722,363.3824,200.5708)" />
<text
x="32.403893"
y="43.090385"
transform="scale(0.92174488,1.0848989)"
style="font-style:normal;font-variant:normal;font-weight:bold;font-stretch:normal;font-size:32.00050354px;line-height:0%;font-family:Tahoma;text-align:start;writing-mode:lr-tb;text-anchor:start;fill:#000000;fill-opacity:1;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
id="text1354"
xml:space="preserve"><tspan
x="32.403893"
y="43.090385"
style="font-style:normal;font-variant:normal;font-weight:bold;font-stretch:normal;font-size:32.00050354px;line-height:124.99998808%;font-family:Tahoma;text-align:start;writing-mode:lr-tb;text-anchor:start"
id="tspan1356">Bob</tspan></text>
</svg>

After

Width:  |  Height:  |  Size: 20 KiB

View File

@ -0,0 +1,75 @@
# Pushing SSH a bit further
## What is SSH
### Origins
SSH is *the* current standard for remote logins but you might want to read up a bit on what was used before SSH existed.
[This](https://www.jeffgeerling.com/blog/brief-history-ssh-and-remote-access) is a pretty good blog post on the history of SSH.
You should never use the following the following programs anymore but it's good to be aware of their historic existance.
* rlogin
* rsh
* rcp
* telnet (still has some legitimate usage such as with munin)
The main advantage of SSH is it's encryption.
It works similarly to SSL which you use all the time to do most of your web browsing.
When using encryption it becomes **very** hard to sniff the data traveling between the client and the server.
There are two versions of SSH, version 1 and version 2, and you should only use version 2 as the former is not considered [secure]() anymore.
The recommended encryption used by most SSH servers is [AES](https://en.wikipedia.org/wiki/Advanced_Encryption_Standard).
If you're interested in understanding the mathematics behind AES, [this](https://www.youtube.com/channel/UC1usFRN4LCMcfIV7UjHNuQg) class is exceptionally good but not for the faint of heart.
It's not mandatory to fully understand the math behind encryption to use it though.
The main takeaway would be the number of **bit's used** where **higher** is **better**.
By default ssh uses a very secure cipher but you can specify which one you want with the `-c` flag to `ssh`.
Do keep in mind that the server needs to support the cipher you're requesting.
## SSH keys
SSH encryption and SSH keys are not the same thing.
**Keys** are used for **authentication** with a server.
Once the client is authenticated and granted access to the server, the encryption is set to **encrypt** the **traffic** from client to server and visa versa.
SSH keys are [asymmetric](https://en.wikipedia.org/wiki/Public-key_cryptography) key pairs where you have two simple text files.
One with the **private** part, which is used for **decrypting**, and one **public** part which is used for **encrypting**.
Both parts together form one **key pair**.
If you're interested in the maths behind key pairs, have a look at this 15min [video](https://www.youtube.com/watch?v=4zahvcJ9glg&t=1s), it's a lot easier than you expect!
![key pairs](./assets/key_encryption.svg)
### Generating keys
### Deploying keys
## Standard usage
## Tweaking the sshd configuration file
All server configuration is done in the `/etc/ssh/sshd_config` file.
Starting version TO_CHECK you can use the modern `/etc/ssh/sshd_config.d/` folder system to override default system configuration.
This way any changes to the standard configuration made by the package maintainers won't mess with your custom preferences and tweaks.
### Version
A modern sshd configuration will only allow version 2 but you can check or specify this in the configuration file.
You'll probably never have to set this yourself but do keep it in mind when you're confronted with old installations.
```
Protocol
Specifies the protocol versions sshd(8) supports. The possible values are 1 and
2. Multiple versions must be comma-separated. The default is 2. Protocol 1
suffers from a number of cryptographic weaknesses and should not be used. It is
only offered to support legacy devices.
Note that the order of the protocol list does not indicate preference, because the
client selects among multiple protocol versions offered by the server. Specifying
“2,1” is identical to “1,2”.
```
## Tunnels
## SFTP
## SSHFS
## SSHuttle