1 Answer
- Newest
- Most votes
- Most comments
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.
Relevant content
- asked a year ago
- asked a year ago
- asked 4 years ago
- AWS OFFICIALUpdated 7 months ago
- AWS OFFICIALUpdated 8 months ago
- AWS OFFICIALUpdated 8 months ago
- AWS OFFICIALUpdated 5 months ago
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.