X-Git-Url: https://git.martlubbers.net/?p=linuxnijmegen-ssh.git;a=blobdiff_plain;f=truuk.tex;fp=truuk.tex;h=d7e6f0732fba56e12e245c3e37a3b9d95747dc93;hp=37f6ea61e4c7ec7f182c1328be5640016e22d838;hb=e089f81414c5d661914480e8ec0de354b1b93b33;hpb=7e423d983e70ec02872335ef9a596e87879a789c diff --git a/truuk.tex b/truuk.tex index 37f6ea6..d7e6f07 100644 --- a/truuk.tex +++ b/truuk.tex @@ -6,7 +6,7 @@ \end{block} \pause \begin{block}{Command line vlag} - \lstinline{ssh -i ~/.ssh/keyfile user@server.nl} + \lstinline{ssh -i ~/.ssh/keyfile frobnicator@foobarbaz.com} \end{block} \pause \begin{block}{Config file} @@ -20,14 +20,14 @@ \begin{block}{\$ ssh-keygen} \begin{lstlisting} Generating public/private rsa key pair. -Enter file in which to save the key (/home/user/.ssh/id_rsa): - /home/user/.ssh/github +Enter file in which to save the key (/home/frobnicator/.ssh/id_rsa): + /home/frobnicator/.ssh/github Enter passphrase (empty for no passphrase): Enter same passphrase again: -Your identification has been saved in /home/user/.ssh/github. -Your public key has been saved in /home/user/.ssh/github.pub. +Your identification has been saved in /home/frobnicator/.ssh/github. +Your public key has been saved in /home/frobnicator/.ssh/github.pub. The key fingerprint is: -92:92:6e:b8:3f:d5:76:e8:1b:73:ed:97:c4:e5:87:ba user@system +92:92:6e:b8:3f:d5:76:e8:1b:73:ed:97:c4:e5:87:ba frobnicator@foobarbaz The key's randomart image is: +--[ RSA 2048]----+ | | @@ -54,8 +54,8 @@ suOAErDvInRDQbl2bjR0PGizL2t5lM9zE+mS0HHigteGLKma1NxVBBeam0CrodJN BcW55x3LR/2fLSujUqcloQNwLUpD5da6eGg9yPo1fEaAOK1ssHGA30o6nmDEZEHy PFgBtPwtDw5TPXPpzslaJx1u7CdeyzqpYsUycxzboy3GBcCsvG4nzD4C9vd0yk5o jlDeECul4mwyg7NuEjltaY89RzrSa8NtqtURyg/JFQW2IVGe+oBXeTL/eQRuo1Nj -GhYyPm1VMVM+NvaYQZXxGfLpoDoP2V+deD+gP5DuC8WW4LSGnkHKhDEin0Yl mar -t@valhalla +GhYyPm1VMVM+NvaYQZXxGfLpoDoP2V+deD+gP5DuC8WW4LSGnkHKhDEin0Yl foo +@foobarbaz \end{lstlisting} \end{block} \pause @@ -76,6 +76,20 @@ d5DgKnWxgJPHnDjmwqTeX3A5S34m/qJKK67IF9WqedeHxeMKzMZYcZpcsFxdvHk/ \end{block} \end{frame} +\begin{frame}[fragile] + \frametitle{Public key authentication} + \begin{block}{\textasciitilde/.ssh/authorized\_keys} + \begin{lstlisting} +option1="option1value",option2="option2value"...optionn="optionnvalue" ssh-rsa\ +AAAB4N..... + \end{lstlisting} + \end{block} + \begin{block}{Merk op} + alles in \textasciitilde/.ssh/ moet alleen leesbaar zijn voor de user. + \lstinline{chmod 600} dus + \end{block} +\end{frame} + \begin{frame}[fragile] \frametitle{X forwarding} \begin{block}{Nut} @@ -84,7 +98,7 @@ d5DgKnWxgJPHnDjmwqTeX3A5S34m/qJKK67IF9WqedeHxeMKzMZYcZpcsFxdvHk/ \end{block} \pause \begin{block}{Command line vlag} - \lstinline{ssh -X user@server.nl} + \lstinline{ssh -X frobnicator@foobarbaz.com} \end{block} \pause \begin{block}{Config file} @@ -103,8 +117,8 @@ d5DgKnWxgJPHnDjmwqTeX3A5S34m/qJKK67IF9WqedeHxeMKzMZYcZpcsFxdvHk/ \end{block} \pause \begin{block}{Command line vlag} - \lstinline{ssh -L port:host:hostport}\\ - \lstinline{ssh -R port:host:hostport} + \lstinline{ssh -L port:host:hostport frobnicator@foobarbaz.com}\\ + \lstinline{ssh -R port:host:hostport frobnicator@foobarbaz.com} \end{block} \pause \begin{block}{Config file} @@ -120,7 +134,7 @@ d5DgKnWxgJPHnDjmwqTeX3A5S34m/qJKK67IF9WqedeHxeMKzMZYcZpcsFxdvHk/ \end{block} \pause \begin{block}{Command line vlag} - \lstinline{ssh -A user@system} + \lstinline{ssh -A frobnicator@foobarbaz.com} \end{block} \pause \begin{block}{Config file} @@ -135,7 +149,7 @@ d5DgKnWxgJPHnDjmwqTeX3A5S34m/qJKK67IF9WqedeHxeMKzMZYcZpcsFxdvHk/ \end{block} \pause \begin{block}{Command line vlag} - \lstinline{ssh -D port} + \lstinline{ssh -D port frobnicator@foobarbaz.com} \end{block} \pause \begin{block}{Config file} @@ -152,3 +166,18 @@ d5DgKnWxgJPHnDjmwqTeX3A5S34m/qJKK67IF9WqedeHxeMKzMZYcZpcsFxdvHk/ Edit - Preferences - Advanced - Network - Settings \includegraphics[width=200px]{./img/firefox_socks.png} \end{frame} + +\begin{frame}[fragile] + \frametitle{Compression} + \begin{block}{Nut} + Snelheid + \end{block} + \pause + \begin{block}{Command line vlag} + \lstinline{ssh -C frobnicator@foobarbaz.com} + \end{block} + \pause + \begin{block}{Config file} + \lstinline{Compression yes} + \end{block} +\end{frame}