Allow Ubuntu user for Aws servers
This commit is contained in:
parent
191f9836af
commit
8cab33e334
|
@ -10,7 +10,7 @@ HostKey /etc/ssh/ssh_host_ed25519_key
|
||||||
PermitRootLogin without-password
|
PermitRootLogin without-password
|
||||||
|
|
||||||
# Allow ssh access to some users only
|
# Allow ssh access to some users only
|
||||||
AllowUsers root
|
AllowUsers root ubuntu
|
||||||
|
|
||||||
# allow ssh key Authentication
|
# allow ssh key Authentication
|
||||||
PubkeyAuthentication yes
|
PubkeyAuthentication yes
|
||||||
|
@ -42,4 +42,4 @@ HostKeyAlgorithms ssh-ed25519-cert-v01@openssh.com,ssh-rsa-cert-v01@openssh.com,
|
||||||
# use strong ciphers
|
# use strong ciphers
|
||||||
KexAlgorithms curve25519-sha256@libssh.org,ecdh-sha2-nistp521,ecdh-sha2-nistp384,ecdh-sha2-nistp256,diffie-hellman-group-exchange-sha256
|
KexAlgorithms curve25519-sha256@libssh.org,ecdh-sha2-nistp521,ecdh-sha2-nistp384,ecdh-sha2-nistp256,diffie-hellman-group-exchange-sha256
|
||||||
Ciphers chacha20-poly1305@openssh.com,aes256-gcm@openssh.com,aes128-gcm@openssh.com,aes256-ctr,aes192-ctr,aes128-ctr
|
Ciphers chacha20-poly1305@openssh.com,aes256-gcm@openssh.com,aes128-gcm@openssh.com,aes256-ctr,aes192-ctr,aes128-ctr
|
||||||
MACs hmac-sha2-512-etm@openssh.com,hmac-sha2-256-etm@openssh.com,umac-128-etm@openssh.com,hmac-sha2-512,hmac-sha2-256,umac-128@openssh.com
|
MACs hmac-sha2-512-etm@openssh.com,hmac-sha2-256-etm@openssh.com,umac-128-etm@openssh.com,hmac-sha2-512,hmac-sha2-256,umac-128@openssh.com
|
||||||
|
|
Loading…
Reference in New Issue