Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save jesussuarz/a34358675bc22332efa50bec87603479 to your computer and use it in GitHub Desktop.
Save jesussuarz/a34358675bc22332efa50bec87603479 to your computer and use it in GitHub Desktop.
Fixing Connection SSH Issues from ESXi 8 to a Remote Server on OVH Servers

Fixing Connection SSH Issues from ESXi 8 to a Remote Server on OVH Servers

If you're facing difficulties when trying to connect from an ESXi 8 server hosted on OVH to another remote server, here's a step-by-step solution to resolve it.

Step 1: Verify the Status of the SSH Service

First, it's important to confirm whether the SSH service is enabled on your ESXi 8 server. To do so, execute the following command:

chkconfig --list | grep on

If this command shows that the SSH service is in the "on" state, proceed to the next step.

Step 2: Check the Status of sshClient (Outgoing) or sshServer (Incoming)

It's crucial to check the status of firewall services related to SSH on both machines. You can do this using the following command:

esxcli network firewall ruleset list

Look for the rules that correspond to your specific situation:

  • If the issue is with outgoing connections (from ESXi to another server), search for the rule named "sshClient."
  • If the issue is with incoming connections (to ESXi from another server), search for the rule named "sshServer."

Ensure that these states are configured as "true." If they aren't, you can enable them with the following command:

esxcli network firewall ruleset set -r sshClient -e 1

You're all set!

Once you've completed these steps, you should be able to establish an SSH connection from your ESXi 8 server on OVH without any issues. This solution will help ensure smooth communication between your ESXi servers and other remote systems.

Always remember to maintain careful documentation of configurations and changes made on your servers to facilitate future administrative tasks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment