Pivotal Knowledge Base

Follow

SSH to a container fails with "ssh: handshake failed" error message

Environment

Product Version
Pivotal Cloud Foundry (PCF) 1.6.x

Symptom

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

Error opening SSH connection: ssh: handshake failed: ssh: unable to authenticate, attempted methods [none password], no supported methods remain

Cause

This error message is caused when the user does not have permission to access the application with cf ssh.

Resolution

Please check that the following conditions are true:

  • The user has been given the SpaceDeveloper for the space that contains the application that is being accessed.
  • SSH access has been enabled for the application. This can be confirmed with the command cf ssh-enabled <app-name>.
  • The space that is being accessed has SSH enabled. This can be confirmed with the command cf space-ssh-allowed <space-name>.

Additional Information

  • You need at least version 6.13 of the cf CLI to use the cf ssh related features.
  • When using an external load balancer, it needs to be configured to redirect TCP traffic on port 2222 to the diego brain VM on port 2222.

Comments

Powered by Zendesk