refactor
This commit is contained in:
parent
3d14145ca1
commit
f703dd76cc
5 changed files with 100 additions and 7 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
@ -1,6 +1,6 @@
|
|||
# Ansible Modules
|
||||
|
||||
#wip #todo
|
||||
#wip #todo #notnow
|
||||
|
||||
#todo -> explain modules, sort modules by usage cat
|
||||
|
||||
|
|
|
@ -297,4 +297,80 @@ keys = our-website.dat
|
|||
```
|
||||
|
||||
## Tools
|
||||
#refactor -> i2p_tools (vanity, etc)
|
||||
There are several tools available [here](https://github.com/PurpleI2P/i2pd-tools).
|
||||
|
||||
### keygen
|
||||
Generate an I2P private key.
|
||||
|
||||
#### Usage
|
||||
Make a EDDSA-SHA512-ED25519 destination key
|
||||
```shell
|
||||
./keygen privkey.dat
|
||||
```
|
||||
|
||||
Make an destination key with a certain key type
|
||||
```shell
|
||||
./keygen privkey.dat <number>
|
||||
./keygen privkey.dat <key name>
|
||||
```
|
||||
|
||||
| key name | number |
|
||||
| ------------------------------------ | ------ |
|
||||
| DSA-SHA1 | 0 |
|
||||
| ECDSA-SHA256-P256 | 1 |
|
||||
| ECDSA-SHA384-P384 | 2 |
|
||||
| ECDSA-SHA512-P521 | 3 |
|
||||
| RSA-SHA256-2048 | 4 |
|
||||
| RSA-SHA384-3072 | 5 |
|
||||
| RSA-SHA512-4096 | 6 |
|
||||
| EDDSA-SHA512-ED25519 | 7 |
|
||||
| GOSTR3410_CRYPTO_PRO_A-GOSTR3411-256 | 9 |
|
||||
| GOSTR3410_TC26_A_512-GOSTR3411-512 | 10 |
|
||||
| RED25519-SHA512 | 11 |
|
||||
|
||||
### vain
|
||||
Vanity generation address.
|
||||
|
||||
Time to Generate on a 2.70GHz Processor:
|
||||
|
||||
| characters | time to generate (approx.) |
|
||||
| ---------- | -------------------------- |
|
||||
| 1 | ~0.082s |
|
||||
| 2 | ~0.075s |
|
||||
| 3 | ~0.100s |
|
||||
| 4 | ~0.394s |
|
||||
| 5 | ~6.343s |
|
||||
| 6 | ~1m-5m |
|
||||
| 7 | ~30m |
|
||||
|
||||
#### Usage
|
||||
```shell
|
||||
./vain pattern [options]
|
||||
```
|
||||
|
||||
## Options
|
||||
| Option | Description |
|
||||
| -------------------------- | ----------------------------------- |
|
||||
| `-r, --reg` | regex instead of text pattern |
|
||||
| `-t, --threads` | Use this many threads (default all) |
|
||||
| `-o, --output output_file` | Output file |
|
||||
| `-m, --multiplymode` | multiple addresses search |
|
||||
|
||||
### keyinfo
|
||||
Prints information about an I2P private key
|
||||
|
||||
#### Usage
|
||||
Print just the b32 address for this key
|
||||
```shell
|
||||
./keyinfo privatekey.dat
|
||||
```
|
||||
|
||||
... just the base64 address
|
||||
```shell
|
||||
./keyinfo -d privatekey.dat
|
||||
```
|
||||
|
||||
Print all info about the public key
|
||||
```shell
|
||||
./keyinfo -v privatekey.dat
|
||||
```
|
Loading…
Reference in a new issue