Enable Outbound SSH in ESX 4.x

Windows-command-prompt-logo Apparently SSH outbound connections are not allowed in ESX by default, or are at least not allowed anymore by default. I say this as I have never had to allow ssh outbound before. Anyway, I ran into this today when attempting to scp a file off of one of my esx servers.

To allow check if outbound ssh connections are allowed run the following command to see if sshClient is blocked.

[root]# esxcfg-firewall -q sshClient
Service sshClient is blocked.

Run the following command to allow sshClient traffic.

[root]#esxcfg-firewall -e sshClient

I have previously posted how to configure the ESX firewall to allow SNMP and NTP here.  Its also important to note that this the process below does not allow ssh inbound connections. That is configured by allowing the sshServer service through the firewall. Commands below.

[root]#esxcfg-firewall -e sshServer

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s