SSH to a Container Fails with "ssh: handshake failed" Error Message
search cancel

SSH to a Container Fails with "ssh: handshake failed" Error Message

book

Article ID: 297682

calendar_today

Updated On:

Products

VMware Tanzu Application Service for VMs

Issue/Introduction

Symptoms:

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

Environment


Cause

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

Resolution

Please check that the following conditions are met:

  • 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>.
  • After SSH is enabled for the app, restart the app to pick up the change. cf restart <app-name>