1 réponse
- Le plus récent
- Le plus de votes
- La plupart des commentaires
0
Hello.
Is your question more about how to manage Linux OS than AWS?
What I often do is create a Linux user for each development member, create an SSH private key, and then set /etc/ssh/sshd_config so that SCP can only be entered in the necessary directories.
Contenus pertinents
- demandé il y a un an
- demandé il y a 9 mois
- demandé il y a un an
- AWS OFFICIELA mis à jour il y a un an
- AWS OFFICIELA mis à jour il y a 2 ans
- AWS OFFICIELA mis à jour il y a 2 ans
Can you tell me how to achieve above please,,I am new to these commands and AWS lightsail,
You can add Linux users by following the steps in the document below. https://repost.aws/knowledge-center/new-user-accounts-linux-instance
The following command is a preparation to allow connection only to "/opt/new_user".
The following command creates a backup of "sshd_config" and opens the file.
When you open "sshd_config", add the following settings to the last line.
After saving the file, restart the SSH service with the following command.
By following the steps above, you can create a user who can only connect to "/opt/new_user" via SFTP.