862 B
862 B
Troubleshooting Guide
Post-Installation
Add SSH Keys
# On your local machine
ssh-copy-id user@server
# Or manually
cat ~/.ssh/id_ed25519.pub | ssh user@server "mkdir -p ~/.ssh && cat >> ~/.ssh/authorized_keys"
Test Configuration
# Validate config
sudo sshd -t
# Check service status
sudo systemctl status ssh
# View logs
sudo journalctl -u ssh -f
Troubleshooting
Locked Out?
If you've locked yourself out:
- Access via console (physical/IPMI/cloud console)
- Edit
/etc/ssh/sshd_config - Temporarily enable:
PasswordAuthentication yes - Restart:
sudo systemctl restart ssh - Fix your SSH keys
- Re-disable password auth
Connection Refused?
# Check if SSH is running
sudo systemctl status ssh
# Check if port is open
sudo ss -tulpn | grep ssh
# Check firewall
sudo ufw status