Configure public key authentication for new user, when password authentication is disabled

0

In an EC2 instance, with Amazon Linux AMI, "PasswordAuthentication" is disabled in "sshd_config" file, and "PubkeyAuthentication" is enabled, by default.

Incase "Linux System admin user" creates new Linux user on the EC2 instance, how the new Linux user ssh to the system? Because password authentication is already disabled.

And if the new Linux user generates public key in his local machine, and try to place it, in the EC2 instance, he could not place. Because currently both Public key authentication and password authentication will not work.

How to overcome this scenario?

已提問 2 年前檢視次數 428 次
1 個回答
0

When Linux system admin create a new user, ask them to create a SSH key for new user and share the private keys with respective user. Then the private key can be used to login to the instance as new user.

已回答 2 年前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南