TWCC container environment is a very convenient and user-friendly service for AI model developers. It provides a high-speed storage system and a variety of artificial intelligence frameworks, and offers the computing power of a supercomputer to reduce the time users spend developing.
Introduction
This article will teach you how to allow multiple users to share a single container, enabling collaborative development in a unified environment. Furthermore, it will demonstrate how to reduce information security risks through password settings.
Prerequisites
Entering the execution environment of the development container command line
Detailed Steps
1. Create an account
sudo useradd -m -s /bin/bash

2. Set a password
sudo passwd

3. Add the account to /etc/security/access.conf
sudo sed '1a + : : ALL' -i /etc/security/access.conf

4. On the container management page, obtain container connection information and replace the account.
sudo ssh @203-145-219-138.ccs.twcc.ai -p 12345
5. Establish an SSH connection

6. Upon first login, you will be prompted to enter the root password. You can skip this step by pressing Ctrl+C and entering the container environment.
init: Setting environment variables
[sudo] password for testuser:
[sudo] password for testuser:
-bash: /tmp/environ: No such file or directory
[sudo] password for testuser:

7. Delete the account that provided the connection.
sudo deluser test

User control must be strictly enforced for any login accounts you set up yourself to avoid creating future security vulnerabilities.