Co-authored-by: Cursor <cursoragent@cursor.com>
4.8 KiB
SSH Access Commands for Proxmox Nodes
Date: 2025-12-13
Status: ✅ READY
Quick Reference
Site-1 (ML110-01)
ssh root@192.168.11.10
Site-2 (R630-01)
ssh root@192.168.11.11
Detailed Commands
1. SSH to ML110-01 (Site-1)
Basic SSH:
ssh root@192.168.11.10
With hostname (if DNS configured):
ssh root@ml110-01
With SSH key (if configured):
ssh -i ~/.ssh/proxmox_key root@192.168.11.10
With specific options:
ssh -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null root@192.168.11.10
2. SSH to R630-01 (Site-2)
Basic SSH:
ssh root@192.168.11.11
With hostname (if DNS configured):
ssh root@r630-01
With SSH key (if configured):
ssh -i ~/.ssh/proxmox_key root@192.168.11.11
With specific options:
ssh -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null root@192.168.11.11
Connectivity Verification
Test Network Connectivity
Ping ML110-01:
ping -c 3 192.168.11.10
Ping R630-01:
ping -c 3 192.168.11.11
Test SSH Access
Test ML110-01 SSH:
ssh -o ConnectTimeout=5 root@192.168.11.10 'hostname'
# Expected output: ML110-01 or similar
Test R630-01 SSH:
ssh -o ConnectTimeout=5 root@192.168.11.11 'hostname'
# Expected output: R630-01 or similar
Test Proxmox API Access
ML110-01 API:
curl -k https://192.168.11.10:8006/api2/json/version
# Requires authentication - will show API version if accessible
R630-01 API:
curl -k https://192.168.11.11:8006/api2/json/version
# Requires authentication - will show API version if accessible
Useful Commands After SSH
System Information
# Proxmox version
pveversion
# System information
hostnamectl
uname -a
# CPU information
lscpu
# Memory information
free -h
# Disk information
df -h
lsblk
Proxmox Status
# Cluster status
systemctl status pve-cluster
# Proxmox services
systemctl status pveproxy
systemctl status pvedaemon
# List all VMs
qm list
# List all containers
pct list
Storage Information
# Storage status
pvesm status
# Storage details
pvesm list
# Ceph status (if configured)
ceph status
ceph df
ceph osd tree
Network Information
# Network interfaces
ip addr show
# Network configuration
cat /etc/network/interfaces
# Network bridges
brctl show
# Routing table
ip route show
VM Management
# List all VMs
qm list
# Get VM details
qm config <VMID>
# VM status
qm status <VMID>
# Start VM
qm start <VMID>
# Stop VM
qm stop <VMID>
# Restart VM
qm reboot <VMID>
SSH Configuration (Optional)
Create SSH Config Entry
Add to ~/.ssh/config:
Host ml110-01
HostName 192.168.11.10
User root
IdentityFile ~/.ssh/proxmox_key
StrictHostKeyChecking no
Host r630-01
HostName 192.168.11.11
User root
IdentityFile ~/.ssh/proxmox_key
StrictHostKeyChecking no
Then use:
ssh ml110-01
ssh r630-01
Troubleshooting
Connection Refused
Check if SSH is running:
# On the Proxmox node
systemctl status ssh
systemctl status sshd
Check firewall:
# On the Proxmox node
iptables -L -n | grep 22
ufw status # if using ufw
Authentication Issues
Check SSH key permissions:
chmod 600 ~/.ssh/id_rsa
chmod 644 ~/.ssh/id_rsa.pub
Test with password:
ssh -o PreferredAuthentications=password root@192.168.11.10
Network Issues
Check routing:
# From your machine
traceroute 192.168.11.10
traceroute 192.168.11.11
Check if port is open:
nc -zv 192.168.11.10 22
nc -zv 192.168.11.11 22
Security Notes
Best Practices
-
Use SSH Keys: Avoid password authentication
ssh-keygen -t rsa -b 4096 -f ~/.ssh/proxmox_key ssh-copy-id -i ~/.ssh/proxmox_key.pub root@192.168.11.10 ssh-copy-id -i ~/.ssh/proxmox_key.pub root@192.168.11.11 -
Disable Root Login: Create a non-root user with sudo
-
Use Strong Passwords: If password auth is required
-
Limit SSH Access: Use firewall rules to restrict access
-
Use VPN: For production environments
Current Configuration
- User:
root(default Proxmox user) - Port: 22 (default SSH port)
- Authentication: Password or key-based
- Network: 192.168.11.0/24
Quick Access Script
Use the provided script:
./scripts/ssh-proxmox-nodes.sh
This displays all SSH commands and verification steps.
Related Documentation
Last Updated: 2025-12-13
Status: ✅ READY