What is SSH?
SSH (Secure Shell) is a cryptographic protocol for securely connecting to your server over the network. It gives you full command-line access to manage files, install software, and configure services.
Getting Your SSH Credentials
When your instance is provisioned, you receive:
Access your credentials anytime from Dashboard → Hosting → [Instance] → SSH Access.
Connecting via SSH
On macOS / Linux
chmod 400 my-server.pem
ssh -i my-server.pem username@your-ip
On Windows (PowerShell)
ssh -i my-server.pem username@your-ip
If you get a permissions error, restrict file access to your user only via file properties → Security.
On Windows (PuTTY)
Browser SSH
Each instance page has a "Browser SSH" link that opens the AWS Lightsail console SSH terminal — no configuration required.
Key Security Best Practices
Setting Up Password-Based SSH (Optional)
By default, key-based auth is more secure. To enable password login:
sudo nano /etc/ssh/sshd_config
PasswordAuthentication yes
sudo systemctl restart sshd
sudo passwd username
This is NOT recommended for production servers.
Adding Additional SSH Keys
To grant access to team members:
echo "ssh-rsa AAAA...yourkey..." >> ~/.ssh/authorized_keys
ssh -i their-key.pem theiruser@your-ip