add ssh install

This commit is contained in:
makayabou 2020-09-09 11:59:30 +02:00
parent 3285968da2
commit cdd00f762c

View File

@ -1,2 +1,34 @@
# Création d'un serveur local avec partage de fichiers Samba et backup des données en externe
## Installation de SSH
### Installation
```
sudo apt update
sudo apt install openssh-server
```
### Configuration
!!! note /etc/ssh/sshd_config
```
Port 43000
HostKey /etc/ssh/ssh_host_ecdsa_key
LoginGraceTime 20s
MaxAuthTries 3
MaxSessions 1
PubkeyAuthentication yes
PasswordAuthentication yes
ChallengeResponseAuthentication no
UsePAM yes
X11Forwarding yes
PrintMotd no
AcceptEnv LANG LC_*
Subsystem sftp /usr/lib/openssh/sftp-server
```
### Démarrage du serveur ssh
sudo systemctl restart sshd.service