Merge branch 'huguens75-master-patch-69425' into 'master'
Update docs/divers/serveur_debian_smb_ssh.md See merge request garagenum/doc!3
This commit is contained in:
commit
cc0e045d9b
@ -13,20 +13,26 @@ 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 diferent port from default port=22
|
||||
Port 43000
|
||||
# certificate location
|
||||
HostKey /etc/ssh/ssh_host_ecdsa_key
|
||||
# Opening time of TCP session
|
||||
LoginGraceTime 20s
|
||||
# Maximum authentification Tries
|
||||
MaxAuthTries 3
|
||||
# Maximum sessions in same time
|
||||
MaxSessions 1
|
||||
# Authentification by public key
|
||||
PubkeyAuthentication yes
|
||||
PasswordAuthentication yes
|
||||
ChallengeResponseAuthentication no
|
||||
UsePAM yes
|
||||
X11Forwarding yes
|
||||
# Authentication by Password
|
||||
PasswordAuthentication no
|
||||
# Question-Answer between server and client to validate authentication
|
||||
ChallengeResponseAuthentication 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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user