brain initiation

This commit is contained in:
2025-11-05 09:18:11 +01:00
commit 933aa8a985
191 changed files with 6203 additions and 0 deletions

28
20230515104228-ssh.org Normal file
View File

@@ -0,0 +1,28 @@
:PROPERTIES:
:ID: 422e07f8-c888-460f-849e-76d451946045
:END:
#+title: ssh
#+filetags: :basics:
OpenSSH (OpenBSD Secure Shell) is a set of computer programs providing encrypted communication sessions over a computer network using the Secure Shell (SSH) [[id:bd5b34ba-aa98-4808-b97b-2376aa7b8866][protocol]]. It was created as an open source alternative to the proprietary Secure Shell software suite offered by SSH Communications Security. OpenSSH is developed as part of the OpenBSD project, which is led by Theo de Raadt. OpenSSH is occasionally confused with the similarly-named OpenSSL; however, the projects have different purposes and are developed by different teams, the similar name is drawn only from similar goals.
* Install and enable on [[id:5fada795-19a3-4ba6-97c0-0b70bd728a2f][Arco-Linux]]
SSH is a pre-installed programm
#+begin_src bash
sudo systemctl enable sshd
sudo systemctl start sshd
#+end_src
For that you need [[id:673d1cb1-536b-42f1-a046-40a8937c4283][root]] priviliges ([[id:dc54334e-afa9-4a53-be91-1e90bc6bf8d0][sudo]])
* Key generation from Master & [[id:70899526-8b7d-4976-94fc-cc07c41e550a][client]]
#+begin_src bash
ssh-keygen -t rsa 4098
ssh <user>@<client1> mkdir -p .ssh #type "yes" & "password" for <client>
cat .ssh/id_rsa.pub | ssh <user>@<client> 'cat >> .ssh/authorized_keys'
ssh <user>@<client> "chmod 700 .ssh; chmod 640 .ssh/authorized_keys
#+end_src
NOTE: Do the same from other clients from master & from master to all clients
#+begin_src bash
ssh <user>@<client>
#+end_src