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

Minimal working presentation (login)

parent 16377360
Pipeline #23312 passed with stage
in 2 minutes and 17 seconds
......@@ -7,10 +7,10 @@
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
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
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)
......
# 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
* Download and install [MobaXterm][1]
* 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 @@
3. Server-side SSH port
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
2. Your username
3. 8022 (if we managed to change that :) )
4. Nothing yet
<!-- .element: class="fragment" data-fragment-index=2 -->
</div>
<div class="col" data-markdown>
......@@ -29,3 +32,4 @@
[sshwindow]: variae/figs/mxt_shots/mobaxterm_ssh_interactive.png "MobaXterm SSH setup"
......@@ -5,11 +5,10 @@
<!-- .element: class="fragment" -->
+ For Windows users
- [MobaXterm][1], big, bloated, and freeware (which means that
sooner, or later they'll ask for your money), but does many other
useful things besides SSH (and is _recommended by R3_)
- [MobaXterm][1] (_recommended by R3_)
- [PuTTY][2], simple, ugly, but efficient and open source and does only SSH
<!-- .element: class="fragment" -->
+ For Mac and GNU/Linux users, OpenSSH command line client
......
......@@ -10,7 +10,7 @@
+ Researcher on the [Environmental Cheminformatics][4] team
<!-- .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]
<!-- .element: class="fragment" -->
......
......@@ -11,6 +11,10 @@
{ "filename" : "ex_ssh_win/session_start_screen.md"},
{ "filename" : "ex_ssh_win/session_ssh.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_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" -->
Markdown is supported
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