Unable to Access Internet and Change Router: Troubleshooting SSH Connection to Proxmox
If you're moving to a new house and changing your router, you might encounter issues with your SSH connection to Proxmox. This article will guide you through the troubleshooting process to get your Proxmox SSH connection up and running again.
1. Check your internet connection
The first step is to ensure that your internet connection is working properly. Check if your computer is connected to the new network and if you can access the internet from other devices. If you can't access the internet, contact your internet service provider to resolve the issue.
2. Check the router settings
Make sure that your router is configured correctly to allow SSH connections. Check the firewall settings and ensure that SSH is allowed through. Also, make sure that the Proxmox server is connected to the new network and has a valid IP address.
3. Check the Proxmox firewall settings
By default, Proxmox has a firewall enabled that blocks incoming SSH connections. You can check the firewall settings by logging into the Proxmox web interface and navigating to the "Firewall" tab. Make sure that the SSH rule is enabled and that the firewall is not blocking incoming connections.
4. Restart the Proxmox services
Try restarting the Proxmox services to see if that resolves the issue. You can do this by logging into the Proxmox web interface and navigating to the "Services" tab. Click on the "Restart" button next to the "SSH" service.
5. Check the SSH configuration
Make sure that the SSH configuration on the Proxmox server is correct. You can check the SSH configuration by logging into the Proxmox server and running the following command:
sudo nano /etc/ssh/sshd_configCheck that the following settings are correct:
- Port: Make sure that the SSH port is open and not blocked by the firewall.
- Protocol: Make sure that the SSH protocol is set to 2.
- PermitRootLogin: Make sure that this is set to "no" to prevent unauthorized access.
- PasswordAuthentication: Make sure that this is set to "yes" if you want to allow password authentication.
6. Restart the SSH service
After making any changes to the SSH configuration, restart the SSH service by running the following command:
sudo systemctl restart ssh7. Check the network settings
Make sure that the network settings on the Proxmox server are correct. Check that the IP address, netmask, and gateway are correct. You can do this by logging into the Proxmox server and running the following command:
ip addr show8. Try connecting again
After checking all of the above, try connecting to the Proxmox server again using SSH. If you still can't connect, try restarting the Proxmox server and the router.
References
- Proxmox VE: https://www.proxmox.com/en/proxmox-ve
- SSH Configuration: https://linux.die.net/man/5/sshd_config
- SSH Troubleshooting: https://www.ssh.com/ssh/troubleshoot
Note: This article is intended for informational purposes only and is not a substitute for professional technical support. Use at your own risk.