Technology Encyclopedia Home >How to setup SSH remote access on Proxmox VE?

How to setup SSH remote access on Proxmox VE?

To set up SSH remote access on Proxmox VE, follow these steps:

  1. Install OpenSSH Server: Ensure that the OpenSSH server is installed on your Proxmox VE host. You can install it using the following command:

    apt-get update
    apt-get install openssh-server
    
  2. Configure SSH Access: Edit the SSH configuration file to ensure it is set up correctly. Open the /etc/ssh/sshd_config file with a text editor like nano or vim:

    nano /etc/ssh/sshd_config
    
    • Ensure the following settings are configured:
      PermitRootLogin no
      PasswordAuthentication yes
      
    • Save and close the file.
  3. Restart SSH Service: After making changes to the SSH configuration, restart the SSH service to apply the changes:

    systemctl restart sshd
    
  4. Create a User Account: It's recommended to create a non-root user for SSH access. Use the following command to add a new user:

    adduser yourusername
    
    • Set a password for the new user when prompted.
  5. Enable Firewall Rules: Ensure that your firewall allows SSH traffic. If you are using ufw, enable SSH access with:

    ufw allow ssh
    ufw enable
    
  6. Test SSH Connection: From another machine, test the SSH connection to your Proxmox VE host using the newly created user account:

    ssh yourusername@yourproxmoxve_host_ip
    

Example:
Suppose your Proxmox VE host has an IP address of 192.168.1.100 and you created a user named admin. You would test the SSH connection by running:

ssh admin@192.168.1.100

Security Considerations:

  • Use strong passwords or better yet, configure SSH key-based authentication for enhanced security.
  • Limit SSH access to specific IP addresses if possible.

Cloud-Related Recommendation:
If you are managing your Proxmox VE environment in a cloud setting, consider using services like Tencent Cloud for hosting your virtual machines. Tencent Cloud offers robust networking and security features that can complement your SSH setup, ensuring secure and reliable access to your Proxmox VE instances.