From da485f97911c21f4f29b1f4be596408e5836fc78 Mon Sep 17 00:00:00 2001 From: Kan Date: Wed, 6 Apr 2022 17:41:24 +0300 Subject: [PATCH 1/2] Delete doc directory --- doc/cron.md | 8 -------- doc/gpg.md | 20 -------------------- doc/ssh.md | 25 ------------------------- 3 files changed, 53 deletions(-) delete mode 100644 doc/cron.md delete mode 100644 doc/gpg.md delete mode 100644 doc/ssh.md diff --git a/doc/cron.md b/doc/cron.md deleted file mode 100644 index dd30736..0000000 --- a/doc/cron.md +++ /dev/null @@ -1,8 +0,0 @@ -### Cron - -```crontab -e``` - -```0 0 1 1 * script.sh``` - Every year in 1 January 00:00:00 \ -```*/1 * * * * script.sh``` - Every minute\ -```0 */3 * * 2,5 script.sh``` - One time per 3 hours in Tue and Fri\ -```0 0,12 1 */2 * script.sh``` - At minute 0 past hour 0 and 12 on day-of-month 1 in every 2nd month diff --git a/doc/gpg.md b/doc/gpg.md deleted file mode 100644 index 42449f0..0000000 --- a/doc/gpg.md +++ /dev/null @@ -1,20 +0,0 @@ -## GPG - -### Encrypt -1. ```gpg --full-generate-key``` -2. ```gpg --export -a "thek4n" > public.key``` -a ASCII -3. ```gpg --fingerprint "thek4n"``` (send fingerprint IRL) -4. ```gpg -seaR "john" -u "thek4n" file``` -s sign, -e asymmetric, -a ASCII, -R ciphered receiver, -u secret key - -### Decrypt -1. ```gpg --import public.key``` -2. ```gpg --fingerprint "thek4n"``` (check fingerprint) -3. ```gpg -d --try-secret-key "john" file.asc > res.txt``` - -### Sign message (one file) -enc: ```gpg -u "thek4n" --clear-sign -s file``` -u secret key, --clear-sign ascii\ -dec: ```gpg -d file.asc``` - -### Sign binary (file and sign) -enc: ```gpg -u "thek4n" -b file``` -b detached sign\ -dec: ```gpg --verify file.sig file``` diff --git a/doc/ssh.md b/doc/ssh.md deleted file mode 100644 index d1e95b6..0000000 --- a/doc/ssh.md +++ /dev/null @@ -1,25 +0,0 @@ -`/etc/ssh/sshd_config` - - -* Access for VPS: - * ``` - PubkeyAuthentication yes - PasswordAuthentication no # only ssh-key - - Match User root - PasswordAuthentication yes - ``` - -* For local server: - * ``` - PermitRootLogin no # only sudo and su - PubkeyAuthentication yes - PasswordAuthentication no # only ssh-key - - Match Host 192.168.50.*,127.0.0.1 - PermitRootLogin yes # root only local - Match User root - PasswordAuthentication yes # root auth only password from local - ``` - -https://www.opennet.ru/base/sec/ssh_tips.txt.html From 225d0acc78f7ddc86f8da6618d13f1bb96e20011 Mon Sep 17 00:00:00 2001 From: Kan Date: Wed, 6 Apr 2022 17:41:38 +0300 Subject: [PATCH 2/2] Update README.md --- README.md | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/README.md b/README.md index 3f16b8b..905ddad 100644 --- a/README.md +++ b/README.md @@ -14,7 +14,6 @@ * [Project description](#chapter-0) * [Installation](#chapter-1) -* [Docs](#chapter-2) @@ -35,15 +34,6 @@ cd dotfiles make ``` - -## Docs - -* [Tips](doc/tips.md) -* [Cron](doc/cron.md) -* [GPG](doc/gpg.md) -* [SSH](doc/ssh.md) -* [Tar](doc/tar.md) -* [Vim](doc/vim.md)