wiki:ssh
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revision | |||
| wiki:ssh [August 19, 2026 at 17:26] – Ivan Janevski | wiki:ssh [August 19, 2026 at 17:26] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | # ssh | + | # SSH |
| - | ## What is ssh? | + | |
| - | **SSH (Secure shell)** is a tool that allows you to remotely control another computer from your own. | + | |
| + | **SSH (Secure Shell)** lets you securely connect to remote computers and run commands. Authentication uses passwords or public-key cryptography. Transfer files securely with `scp` or `rsync`. Tunnel arbitrary traffic through SSH connections for security and access through firewalls. | ||
| - | ## Login without password | + | SSH is the standard for remote system administration, development on servers, and secure file transfer. Every modern system runs an SSH server. Client tools: `ssh` (connect), `scp` (copy files), |
| - | On the client, you should run the following command: | + | |
| - | ``` | + | |
| - | ssh-keyring | + | |
| - | ``` | + | |
| - | This command is going to generate two files in your `~/.ssh` directory: | + | ```bash |
| - | ``` | + | $ ssh user@host |
| - | Generating public/private | + | $ ssh -i key.pem user@host |
| - | Enter file in which to save the key (/home/user/.ssh/ | + | $ scp file user@host:/path # copy file to remote |
| - | Enter passphrase for " | + | $ ssh-keygen -t ed25519 |
| - | Enter same passphrase again: | + | |
| ``` | ``` | ||
| - | After it's done, you should see something like this: | + | Public-key authentication is more secure than passwords. Generate a key pair, copy the public |
| - | ``` | + | |
| - | Your identification has been saved in id_ed25519 | + | ## Concepts |
| - | Your public | + | |
| - | The key fingerprint is: | + | |
| - | SHA256: | + | |
| - | The key's randomart image is: | + | |
| - | +--[ED25519 256]--+ | + | |
| - | |.. | + | |
| - | |o. .. * . | | + | |
| - | |+o o.oo o | | + | |
| - | |.B=+=. + . | | + | |
| - | |B.O=o.. S o | | + | |
| - | |oo +.oEo B | | + | |
| - | | o = = . | | + | |
| - | | o . o + | | + | |
| - | | . . . | | + | |
| - | +----[SHA256]-----+ | + | |
| - | ``` | + | |
| - | ### Server: Append the public key to authorized_keys | + | |
| + | 1. [[ssh-basics|Basics]] | ||
| + | 2. [[ssh-key-generation|Key generation]] | ||
| + | 3. [[ssh-configuration|Configuration]] | ||
| + | 4. [[ssh-authentication|Authentication]] | ||
| + | 5. [[ssh-port-forwarding|Port forwarding]] | ||
| + | 6. [[ssh-copy-and-sync|Copy and sync]] | ||
| + | 7. [[ssh-jump-hosts|Jump hosts]] | ||
| + | 8. [[ssh-multiplexing|Multiplexing]] | ||
| + | 9. [[ssh-agents|Agents]] | ||
| + | 10. [[ssh-security|Security]] | ||
| + | 11. [[ssh-server-configuration|Server configuration]] | ||
| + | 12. [[ssh-troubleshooting|Troubleshooting]] | ||
wiki/ssh.md · Last modified: by 127.0.0.1
