Infrastructure8 min read
Connect Your First Server
Step-by-step guide to securely connect your VPS to Oxaploy using SSH keys or password authentication.
1.Generate SSH Key Pair
Create a secure Ed25519 key pair for passwordless authentication.
- Run the key generation command on your local machine
- Accept default file location (
~/.ssh/id_ed25519) - Add a strong passphrase for extra security
- Your public key will be at
~/.ssh/id_ed25519.pub
ssh-keygen -t ed25519 -C "your-email@example.com"
# Generates: ~/.ssh/id_ed25519 (private) and ~/.ssh/id_ed25519.pub (public)2.Add Server in Oxaploy Dashboard
Register your VPS with Oxaploy using the generated SSH key.
- Navigate to Servers in the dashboard
- Click New Server
- Enter server name (e.g.,
production-web-01) - Enter server IP or hostname
- Set SSH port (default: 22)
- Select SSH Key authentication method
- Paste your public key content (
cat ~/.ssh/id_ed25519.pub) - Click Add Server
3.Test Connection and Troubleshoot
Verify the connection works and fix common issues.
- Oxaploy will automatically test the SSH connection
- Green checkmark = successful connection
- If failed: verify IP, SSH port, key permissions, and firewall
- Common fixes:
# On server: ensure SSH daemon allows key auth
sudo nano /etc/ssh/sshd_config
# Set: PubkeyAuthentication yes
# Set: AuthorizedKeysFile .ssh/authorized_keys
sudo systemctl restart sshd
# Fix key permissions
chmod 700 ~/.ssh
chmod 600 ~/.ssh/authorized_keys