Update docs/divers/serveur_debian_smb_ssh.md

This commit is contained in:
Huguens Germeus 2020-09-09 11:44:55 +00:00
parent 959ce8a59e
commit 816acff911

View File

@ -13,20 +13,25 @@ sudo apt install openssh-server
!!! note "/etc/ssh/sshd_config"
```
# On définit un port spécifique pour éviter le port 22 par défaut
# Define a port different of default port=22
Port 43000
# certificate directory
HostKey /etc/ssh/ssh_host_ecdsa_key
# Opening time of TCP session
LoginGraceTime 20s
# Maximun authentification Tries
MaxAuthTries 3
# Maximun session in same time
MaxSessions 1
# Authentification by public key
PubkeyAuthentication yes
# Authentication by Password
PasswordAuthentication yes
ChallengeResponseAuthentication no
UsePAM yes
X11Forwarding yes
# Message of the day
PrintMotd no
# Language of your local machine
AcceptEnv LANG LC_*
Subsystem sftp /usr/lib/openssh/sftp-server
```
### Démarrage du serveur ssh