Unverified Commit d208c4ed authored by Todor Kondic's avatar Todor Kondic
Browse files

Minimal working presentation (login)

parent 16377360
...@@ -7,10 +7,10 @@ ...@@ -7,10 +7,10 @@
A text with misleading title, it is neither only meant for _Advanced_ A text with misleading title, it is neither only meant for _Advanced_
users as it assumes no previous exposure to the Unix shell, nor covers users as it assumes no previous exposure to the Unix shell, nor covers
only _Bash_, taking instead an integrative approach which reflects a only _Bash_, taking instead an integrative approach which reflects a
natural interaction with a GNU\Linux system on a day-to-day basis. It natural interaction with a GNU/Linux system on a day-to-day basis. It
can also serve as a reference. While outdated in the sense that that can also serve as a reference. While outdated in the sense that that
last revision is from 2014, it still covers the vast majority of last revision is from 2014, it still covers the vast majority of
interactions one has with a GNU\Linux system through the shell. interactions one has with a GNU/Linux system through the shell.
* [Software Carpentry Courses](https://v4.software-carpentry.org/shell/index.html) * [Software Carpentry Courses](https://v4.software-carpentry.org/shell/index.html)
......
# Creating a SSH session from a Linux Terminal
* Windows users can skip this ...
# SSH Session From a Terminal
```shell
# Connect to a host, on a particular port with a particular address
# with a given username.
# If password-based authentication is enabled, you will be presented
# with a password prompt.
ssh -p 8022 tk2020@10.240.16.69
# A much more secure approach (sometimes the only option, if other
# forms of authentication are disabled on the server) is use key based
# authentication.
```
# SSH Session From a Terminal: Key Based Authentication
```shell
# First, generate the key if you do not have it (if you do, it will be
# present in ~/.ssh directory). You will be presented by a series of
# dialogues for which defaults are ok. Please choose a strong
# passphrase when prompted.
ssh-keygen -b 4096
# Next, add the key to your ssh-agent. This prevents you from having
# to type the passphrase each time you want to log in. Accept the
# default suggestion.
ssh-add
# No ssh agent present? Then run
#
# ssh-agent > agent.env.out
# source agent.env.out
#
# Try to connect again.
ssh -p 8022 tk2020@10.240.16.69
```
# Prerequisites # Prerequisites
* Download and install [MobaXterm][1] * Download and install [MobaXterm][1]
* Connect to the UL VPN * Connect to the UL VPN
[1]: https://mobaxterm.mobatek.net/download-home-edition.html
# SSH Tunnel Setup
<div class="multicol">
<div class="col" data-markdown>
* A tunnel will relay information from a port on your computer to
another port on a remote computer
</div>
</div>
# Create a SSH Tunnel
![][tunnelcirc]
[tunnelcirc]: variae/figs/mxt_shots/mobaxterm_tunnel_circ.png "Tunnel Menu"
...@@ -10,12 +10,15 @@ ...@@ -10,12 +10,15 @@
3. Server-side SSH port 3. Server-side SSH port
4. If key-based authentication, provide your private key here 4. If key-based authentication, provide your private key here
<!-- .element: class="fragment" --> <!-- .element: class="fragment" data-fragment-index=1 -->
1. `linuxcourse-test.lcsb.uni.lu`, or 10.240.16.69 1. `linuxcourse-test.lcsb.uni.lu`, or 10.240.16.69
2. Your username 2. Your username
3. 8022 (if we managed to change that :) ) 3. 8022 (if we managed to change that :) )
4. Nothing yet 4. Nothing yet
<!-- .element: class="fragment" data-fragment-index=2 -->
</div> </div>
<div class="col" data-markdown> <div class="col" data-markdown>
...@@ -29,3 +32,4 @@ ...@@ -29,3 +32,4 @@
[sshwindow]: variae/figs/mxt_shots/mobaxterm_ssh_interactive.png "MobaXterm SSH setup" [sshwindow]: variae/figs/mxt_shots/mobaxterm_ssh_interactive.png "MobaXterm SSH setup"
...@@ -5,11 +5,10 @@ ...@@ -5,11 +5,10 @@
<!-- .element: class="fragment" --> <!-- .element: class="fragment" -->
+ For Windows users + For Windows users
- [MobaXterm][1], big, bloated, and freeware (which means that - [MobaXterm][1] (_recommended by R3_)
sooner, or later they'll ask for your money), but does many other
useful things besides SSH (and is _recommended by R3_)
- [PuTTY][2], simple, ugly, but efficient and open source and does only SSH - [PuTTY][2], simple, ugly, but efficient and open source and does only SSH
<!-- .element: class="fragment" --> <!-- .element: class="fragment" -->
+ For Mac and GNU/Linux users, OpenSSH command line client + For Mac and GNU/Linux users, OpenSSH command line client
......
...@@ -10,7 +10,7 @@ ...@@ -10,7 +10,7 @@
+ Researcher on the [Environmental Cheminformatics][4] team + Researcher on the [Environmental Cheminformatics][4] team
<!-- .element: class="fragment" --> <!-- .element: class="fragment" -->
+ GNU\Linux user since [Debian Woody][5] (ca 2002) + GNU/Linux user since [Debian Woody][5] (ca 2002)
+ Arrived as a seven CD set from a small computer shop from the [Getting Debian][6] + Arrived as a seven CD set from a small computer shop from the [Getting Debian][6]
<!-- .element: class="fragment" --> <!-- .element: class="fragment" -->
......
...@@ -11,6 +11,10 @@ ...@@ -11,6 +11,10 @@
{ "filename" : "ex_ssh_win/session_start_screen.md"}, { "filename" : "ex_ssh_win/session_start_screen.md"},
{ "filename" : "ex_ssh_win/session_ssh.md"}, { "filename" : "ex_ssh_win/session_ssh.md"},
{ "filename" : "ex_ssh_win/ssh_window.md"}, { "filename" : "ex_ssh_win/ssh_window.md"},
{ "filename" : "ex_ssh_win/ssh_window_filled.md"},
{ "filename" : "ex_ssh_win/ssh_shell.md"}, { "filename" : "ex_ssh_win/ssh_shell.md"},
{ "filename" : "ex_ssh_win/ssh_keygen.md"} { "filename" : "ex_ssh_win/ssh_keygen.md"},
{ "filename" : "ex_ssh_lin/intro.md"},
{ "filename" : "ex_ssh_lin/session_shell.md"},
{ "filename" : "ex_ssh_lin/session_shell_2.md"}
] ]
# SSH Exercise Outline
* Create an interactive SSH session
<!-- .element: class="fragment" -->
* Generate SSH key
<!-- .element: class="fragment" -->
* Use SSH key to log into the system
<!-- .element: class="fragment" -->
* Create a SSH tunnel
<!-- .element: class="fragment" -->
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment