🔐 SSH Configuration
Configure SSH access to your container including user accounts, authentication methods, and security settings.
🔌 SSH Service
Enable SSH Access
Allow remote access to the container via SSH
Basic SSH Settings
Port number for SSH service inside the container
Port number on host machine to access SSH (avoid conflicts with host SSH on port 22)
Username for SSH access to the container
Password for SSH user (avoid spaces and commas)
User ID to avoid conflicts with system users (recommended: 1100+)
Authentication & Security
🔑 SSH Public Key Authentication
Enable Public Key Authentication
Use SSH keys instead of password-only authentication
🔐 SSH Private Key
Specify Private Key
Provide private key file for the SSH user
👑 Root SSH Access
Allow Root SSH Login
Enable SSH access for root user (not recommended for production)
🔗 SSH Connection Details
Use these commands to connect to your container via SSH:
# Connect as regular user
ssh -p 2222 me@localhost
# Connect with specific key
ssh -p 2222 -i ~/.ssh/id_rsa me@localhost
# Port mapping in docker run command
docker run -p 2222:22 my-awesome-project:stage-2