Configuration SSH serveurs
This commit is contained in:
parent
95ca1393e6
commit
c31c1acf3c
|
@ -66,6 +66,65 @@ Adresse ipv6 publique : 2001:910:1360::3
|
||||||
|
|
||||||
</details>
|
</details>
|
||||||
|
|
||||||
|
### Configuration SSH
|
||||||
|
|
||||||
|
#### /etc/ssh/sshd_config
|
||||||
|
<details>
|
||||||
|
|
||||||
|
# $OpenBSD: sshd_config,v 1.103 2018/04/09 20:41:22 tj Exp $
|
||||||
|
|
||||||
|
# This is the sshd server system-wide configuration file. See
|
||||||
|
# sshd_config(5) for more information.
|
||||||
|
|
||||||
|
# This sshd was compiled with PATH=/usr/bin:/bin:/usr/sbin:/sbin
|
||||||
|
|
||||||
|
# The strategy used for options in the default sshd_config shipped with
|
||||||
|
# OpenSSH is to specify options with their default value where
|
||||||
|
# possible, but leave them commented. Uncommented options override the
|
||||||
|
# default value.
|
||||||
|
|
||||||
|
Port 222
|
||||||
|
AddressFamily any
|
||||||
|
ListenAddress 0.0.0.0
|
||||||
|
ListenAddress ::
|
||||||
|
|
||||||
|
PubkeyAuthentication no
|
||||||
|
|
||||||
|
PasswordAuthentication no
|
||||||
|
PermitEmptyPasswords no
|
||||||
|
|
||||||
|
ChallengeResponseAuthentication no
|
||||||
|
|
||||||
|
UsePAM yes
|
||||||
|
|
||||||
|
AllowAgentForwarding yes
|
||||||
|
AllowTcpForwarding yes
|
||||||
|
GatewayPorts yes
|
||||||
|
X11Forwarding no
|
||||||
|
PrintMotd no
|
||||||
|
TCPKeepAlive yes
|
||||||
|
PermitTunnel yes
|
||||||
|
|
||||||
|
AcceptEnv LANG LC_* GIT_*
|
||||||
|
|
||||||
|
Subsystem sftp /usr/lib/openssh/sftp-server
|
||||||
|
|
||||||
|
|
||||||
|
Match Group ssh-pubkey
|
||||||
|
PubkeyAuthentication yes
|
||||||
|
|
||||||
|
Match Group ssh-login
|
||||||
|
PasswordAuthentication yes
|
||||||
|
PubkeyAuthentication yes
|
||||||
|
|
||||||
|
Match Address 127.0.0.*
|
||||||
|
PubkeyAuthentication yes
|
||||||
|
|
||||||
|
Match Address 192.169.254.3
|
||||||
|
PubkeyAuthentication yes
|
||||||
|
|
||||||
|
</details>
|
||||||
|
|
||||||
### Configuration DRBD
|
### Configuration DRBD
|
||||||
|
|
||||||
#### /etc/drbd.d/drbd1.res
|
#### /etc/drbd.d/drbd1.res
|
||||||
|
|
|
@ -66,6 +66,65 @@ Adresse ipv6 publique : 2001:910:1360::2
|
||||||
|
|
||||||
</details>
|
</details>
|
||||||
|
|
||||||
|
### Configuration SSH
|
||||||
|
|
||||||
|
#### /etc/ssh/sshd_config
|
||||||
|
<details>
|
||||||
|
|
||||||
|
# $OpenBSD: sshd_config,v 1.103 2018/04/09 20:41:22 tj Exp $
|
||||||
|
|
||||||
|
# This is the sshd server system-wide configuration file. See
|
||||||
|
# sshd_config(5) for more information.
|
||||||
|
|
||||||
|
# This sshd was compiled with PATH=/usr/bin:/bin:/usr/sbin:/sbin
|
||||||
|
|
||||||
|
# The strategy used for options in the default sshd_config shipped with
|
||||||
|
# OpenSSH is to specify options with their default value where
|
||||||
|
# possible, but leave them commented. Uncommented options override the
|
||||||
|
# default value.
|
||||||
|
|
||||||
|
Port 222
|
||||||
|
AddressFamily any
|
||||||
|
ListenAddress 0.0.0.0
|
||||||
|
ListenAddress ::
|
||||||
|
|
||||||
|
PubkeyAuthentication no
|
||||||
|
|
||||||
|
PasswordAuthentication no
|
||||||
|
PermitEmptyPasswords no
|
||||||
|
|
||||||
|
ChallengeResponseAuthentication no
|
||||||
|
|
||||||
|
UsePAM yes
|
||||||
|
|
||||||
|
AllowAgentForwarding yes
|
||||||
|
AllowTcpForwarding yes
|
||||||
|
GatewayPorts yes
|
||||||
|
X11Forwarding no
|
||||||
|
PrintMotd no
|
||||||
|
TCPKeepAlive yes
|
||||||
|
PermitTunnel yes
|
||||||
|
|
||||||
|
AcceptEnv LANG LC_* GIT_*
|
||||||
|
|
||||||
|
Subsystem sftp /usr/lib/openssh/sftp-server
|
||||||
|
|
||||||
|
|
||||||
|
Match Group ssh-pubkey
|
||||||
|
PubkeyAuthentication yes
|
||||||
|
|
||||||
|
Match Group ssh-login
|
||||||
|
PasswordAuthentication yes
|
||||||
|
PubkeyAuthentication yes
|
||||||
|
|
||||||
|
Match Address 127.0.0.*
|
||||||
|
PubkeyAuthentication yes
|
||||||
|
|
||||||
|
Match Address 192.169.254.3
|
||||||
|
PubkeyAuthentication yes
|
||||||
|
|
||||||
|
</details>
|
||||||
|
|
||||||
### Configuration DRBD
|
### Configuration DRBD
|
||||||
|
|
||||||
#### /etc/drbd.d/drbd1.res
|
#### /etc/drbd.d/drbd1.res
|
||||||
|
|
Loading…
Reference in New Issue