clarification instruction config ssh

This commit is contained in:
2020-10-05 11:19:27 +02:00
parent ef35542b66
commit bf5909d890
2 changed files with 23 additions and 3 deletions

20
Correction.md Normal file
View File

@@ -0,0 +1,20 @@
## Sur votre windows dans un terminal
ssh-keygen
scp -P #machine .ssh\.id_rsa.pub epsi@cours.opendoor.fr:
## Sur le container connecté en tant qu'utilisateur epsi
mkdir -pm 0700 ~/.ssh
cat id_rsa.pub >> .ssh/authorized_keys
chmod 600 .ssh/authorized_keys
sudo vim /etc/ssh/sshd_config
...
PermitRootLogin without-password
...
AllowGroups wheel root
AllowUsers root@100.0.0.1
PasswordAuthentication no
sudo systemctl restart sshd