[enh] #380: security: remove previous way of managing configuration in YunoHost 2.2.

This commit is contained in:
Moul 2016-05-30 18:16:05 +02:00
parent 26ee9e8056
commit 4facd3152b
2 changed files with 1 additions and 31 deletions

View file

@ -55,12 +55,6 @@ nano /etc/ssh/sshd_config
Port 22 # to replace by 9777 for example
```
To prevent YunoHost overwrites the configuration of the SSH server you must edit the file `/etc/yunohost/yunohost.conf` and change ligne ssh to yes
```bash
ssh=yes
```
Save and restart SSH daemon.
Then restart the iptables firewall and close the old port in iptables.
@ -109,12 +103,6 @@ AllowUsers user_name
```
Only users listed in the AllowUsers directive will then be allowed to connect via SSH, which excludes the admin user.
To prevent yunohost overwrites the configuration of the SSH server you must edit the file `/etc/yunohost/yunohost.conf` et pass ligne ssh to yes
```bash
ssh=yes
```
Save and restart SSH daemon.
---
@ -124,4 +112,4 @@ YunoHost administration is accessible through an **HTTP API**, served on the 678
```bash
sudo service yunohost-api stop
```
```

View file

@ -45,12 +45,6 @@ nano /etc/ssh/sshd_config
PasswordAuthentication no
```
Pour éviter que YunoHost écrase la configuration du serveur SSH il faut modifier le fichier `/etc/yunohost/yunohost.conf` et passer la ligne ssh à yes
```bash
ssh=yes
```
Sauvegardez et relancez le démon SSH.
---
@ -68,12 +62,6 @@ nano /etc/ssh/sshd_config
Port 22 # à remplacer par exemple par 9777
```
Pour éviter que yunohost écrase la configuration du serveur SSH il faut modifier le fichier `/etc/yunohost/yunohost.conf` et passer la ligne ssh à yes
```bash
ssh=yes
```
Sauvegardez et relancez le démon SSH.
Ensuite redémarrez le firewall iptables et fermez lancien port dans iptables.
@ -122,12 +110,6 @@ AllowUsers nom_utilisateur
```
Seuls les utilisateurs mentionnés dans la directive AllowUsers seront alors autorisés à se connecter via SSH, ce qui exclut donc lutilisateur admin.
Pour éviter que YunoHost écrase la configuration du serveur SSH il faut modifier le fichier `/etc/yunohost/yunohost.conf` et passer la ligne ssh à yes
```bash
ssh=yes
```
Sauvegardez et relancez le démon SSH.
---