Connection issues
Posted: 2019/09/25 16:29:27
Hello,
I'm running into a weird problem when creating user accounts and connecting to AWS instances. The process involves starting two instances, one with CentOS and the other with AmazonLinux2, and creating another user (the full steps are described at https://docs.aws.amazon.com/AWSEC2/late ... users.html) with the commands:
Nothing out of ordinary. However, and when I try to connect to the instance as the new user (e.g. 'monica'), the ssh connection works seamlessly for the AmazonLinux2 instance but doesn't work for the CentOS instance. The error message is the well-known:
I'm trying to figure out why of the different response and the root of the problem for CentOS. Any suggestion would be greatly appreciated.
Thank you,
Arturo
I'm running into a weird problem when creating user accounts and connecting to AWS instances. The process involves starting two instances, one with CentOS and the other with AmazonLinux2, and creating another user (the full steps are described at https://docs.aws.amazon.com/AWSEC2/late ... users.html) with the commands:
Code: Select all
sudo adduser monica
sudo su - monica
mkdir .ssh
chmod 700 .ssh
touch .ssh/authorized_keys
vi .ssh/authorized_keys
chmod 600 .ssh/authorized_keys
Code: Select all
login as: monica
Server refused our key
Thank you,
Arturo