Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
en:linux:ssh [2023/10/18 22:41] – angelegt psycore | en:linux:ssh [2024/02/05 16:49] (current) – old revision restored (2024/01/24 11:23) psycore | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== | + | {{tag> |
+ | ====== | ||
- | The pre-installed SSH daemon (sshd) is insecure in the basic configuration. To ensure greater protection, it is necessary to integrate a [[wpde> | + | The pre-installed SSH daemon (sshd) is insecure in the basic configuration. To ensure greater protection, it is necessary to integrate a [[wpde> |
- | ===== Create | + | ===== Generate |
- | First, we create a key pair under Linux: | + | Firstly, we create a key pair under Linux: |
<code bash> | <code bash> | ||
Line 19: | Line 20: | ||
35: | 35: | ||
</ | </ | ||
- | **Be sure to enter a password, otherwise you can access the server | + | **Be sure to enter a password, otherwise you can access the server |
- | We rename id_rsa.pub to authorised_keys and download id_rsa locally to our computer. **It is important to delete id_rsa securely afterwards!** (if necessary install wipe with //apt-get install wipe//) | + | We rename id_rsa.pub to authorised_keys and download id_rsa locally to the computer. **It is important to delete id_rsa securely afterwards!** (If necessary, install wipe with //apt-get install wipe//) |
<code bash>$ wipe id_rsa | <code bash>$ wipe id_rsa | ||
Line 39: | Line 40: | ||
===== Putty Private Key ===== | ===== Putty Private Key ===== | ||
- | Now we download [[http:// | + | Now we download [[http:// |
- | Diesen Key mit der .ppk Endung brauchen wir zum späteren Login für putty. **Diesen Key niemals auf den Server laden!** | + | We will need this key with the .ppk extension to log in to putty later. **Never upload this key to the server!** |
- | ===== Login Test ===== | + | ===== Login test ===== |
- | Nun testen wir, ob die Verbindung mit dem erzeugten Schlüssel zustande kommt. Dazu öffnen wir putty.exe | + | Now we test whether the connection is established with the generated key. To do this, we open putty.exe |
- | ===== sshd Konfiguration | + | ===== sshd configuration |
- | Nun bearbeiten wir die sshd Konfigurationsdatei | + | Now we edit the sshd configuration file <code text>/ |
<code text> | <code text> | ||
Line 82: | Line 83: | ||
<code bash>/ | <code bash>/ | ||
- | ==== Note ==== | + | ==== Hint ==== |
- | The current SSH session is not closed. **To correct configuration errors, the current session should remain open until everything is working | + | The current SSH session is not closed. **To correct configuration errors, the current session should remain open until everything is working |
- | + | ||
- | ===== Copyright and notes ===== | + | |
- | + | ||
- | © by [[psycore]] 2020 | + | |
- | + | ||
- | The author accepts no liability for any damage resulting from the use of this tutorial. This tutorial is written to the best of my knowledge and belief. The distribution of this tutorial is only allowed if the original text including copyright remains untouched. | + |