This commit is contained in:
JMARyA 2023-12-05 15:49:42 +01:00
parent 3d14145ca1
commit f703dd76cc
Signed by: jmarya
GPG key ID: 901B2ADDF27C2263
5 changed files with 100 additions and 7 deletions

View file

@ -6,16 +6,19 @@ obj: application
repo: https://github.com/openssh/openssh-portable
---
# SSH
#refactor add ssh suite applications, etc
-> https://www.openssh.com/
Secure Shell (SSH) is a cryptographic network protocol for operating network services securely over an unsecured network. Typical applications include remote command-line login and remote command execution, but any network service can be secured with SSH.
Examples of services that can use SSH are [Git](../dev/Git.md), [rsync](rsync.md) and X11 forwarding. Services that always use SSH are SCP and SFTP.
An SSH server, by default, listens on the standard TCP port 22. An SSH client program is typically used for establishing connections to an sshd daemon accepting remote connections. Both are commonly present on most modern operating systems, including [macOS](../macos/macOS.md), GNU/[Linux](../linux/Linux.md), Solaris and OpenVMS. Proprietary, freeware and open source versions of various levels of complexity and completeness exist.
An SSH server, by default, listens on the standard [TCP](../internet/TCP.md) port 22. An SSH client program is typically used for establishing connections to an sshd daemon accepting remote connections. Both are commonly present on most modern operating systems, including [macOS](../macos/macOS.md), GNU/[Linux](../linux/Linux.md), Solaris and OpenVMS. Proprietary, freeware and open source versions of various levels of complexity and completeness exist.
## Client
### Usage
Creating a SSH key:
```shell
ssh-keygen
```
Connecting to a server
```shell
ssh -p port user@server-address
@ -70,7 +73,7 @@ With this configuration the client command can be redacted to
ssh myserver
```
Corkscrew is a additional programm to tunnel SSH through HTTP proxies:
Corkscrew is a additional programm to tunnel SSH through [HTTP](../internet/HTTP.md) proxies:
```shell
`ssh -o "ProxyCommand corkscrew <proxy-host> <proxy-port> %h %p" <ssh-username>@<ssh-server>`
```
@ -82,6 +85,12 @@ sshd -t
```
### Configuration
Set address and port:
```
ListenAddress 0.0.0.0
Port 22
```
Limit users:
```
AllowUsers user1 user2
@ -122,6 +131,11 @@ PermitListen host:port
PermitOpen host:port
```
Set [environment variables](../linux/Environment%20Variables.md) in the session:
```
SetEnv KEY=VALUE
```
User-based settings (everything here only applies to `user1`):
```
Match User user1

View file

@ -4,6 +4,7 @@ os: linux
repo: https://github.com/sharkdp/fd
---
# fd
#refactor
`fd` is a program to find entries in your filesystem. It is a simple, fast and user-friendly alternative to [`find`](https://www.gnu.org/software/findutils/). While it does not aim to support all of `find`'s powerful functionality, it provides sensible (opinionated) defaults for a majority of use cases.
## Usage

File diff suppressed because one or more lines are too long