To set up SSH remote access on Proxmox VE, follow these steps:
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
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
PermitRootLogin no
PasswordAuthentication yes
Restart SSH Service: After making changes to the SSH configuration, restart the SSH service to apply the changes:
systemctl restart sshd
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
Enable Firewall Rules: Ensure that your firewall allows SSH traffic. If you are using ufw, enable SSH access with:
ufw allow ssh
ufw enable
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:
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.