From 8cab33e334a2312d5f05e444dc0281cbacece4b5 Mon Sep 17 00:00:00 2001 From: Vikas Kapadiya Date: Wed, 6 Feb 2019 00:44:59 +0530 Subject: [PATCH] Allow Ubuntu user for Aws servers --- etc/ssh/sshd_config | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/etc/ssh/sshd_config b/etc/ssh/sshd_config index cb5c660..f0a51f5 100644 --- a/etc/ssh/sshd_config +++ b/etc/ssh/sshd_config @@ -10,7 +10,7 @@ HostKey /etc/ssh/ssh_host_ed25519_key PermitRootLogin without-password # Allow ssh access to some users only -AllowUsers root +AllowUsers root ubuntu # allow ssh key Authentication PubkeyAuthentication yes @@ -42,4 +42,4 @@ HostKeyAlgorithms ssh-ed25519-cert-v01@openssh.com,ssh-rsa-cert-v01@openssh.com, # use strong ciphers 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 -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 \ No newline at end of file +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