Pivotal Knowledge Base

Follow

Unable to SSH into a Diego application container; getsockopt: connection refused

Environment  

Product Version
Pivotal Cloud Foundry® (PCF)  1.6.x, 1.7.x

Symptom

When trying to run cf ssh [1] , you get the following error message:

Error opening SSH connection: dial tcp <load balancer ip>:2222: getsockopt: connection refused

Cause

This error message is caused when the load balancer is not listening on port 2222.

Resolution

The Load Balancer needs to be configured to redirect TCP traffic on port 2222 to the Diego brain VM on port 2222.

Details

         1. The user has been given the SpaceDeveloper for the space that contains the application that is being accessed. This can be confirmed with the command cf space-users <org> <space>
         2. Single SHell (SSH) access has been enabled for the application. This can be confirmed with the command cf ssh-enabled <app-name>.
         3. The space that is being accessed has SSH enabled. This can be confirmed with the command cf space-ssh-allowed <space-name>.

Additional Information

For further information, please refer to the following resource: 

[1] Accessing Apps with SSH 

 

Comments

Powered by Zendesk