cf-mysql-plugin icon indicating copy to clipboard operation
cf-mysql-plugin copied to clipboard

SSH to foundations which require CAPI v3 fails

Open menicosia opened this issue 5 years ago • 0 comments

On PWS, old CAPI v2 cf ssh doesn't work anymore, I forget why.

Now, to ssh to a service instance, you have to use the cf v3-ssh command.

Here's how the current implementation fails:

→ cf mysql clickpointDB --execute='show databases;'
Creating new service key cf-mysql for clickpointDB...
panic: SSH tunnel failed: Error opening SSH connection: ssh: handshake failed: ssh: unable to authenticate, attempted methods [none password], no supported methods remain

goroutine 13 [running]:
github.com/andreasf/cf-mysql-plugin/cfmysql.(*sshRunner).OpenSshTunnel(0x16963a0, 0x1476380, 0xc42014e870, 0x7ffeefbff8f9, 0xc, 0xc4204738c0, 0x1c, 0xc42052e2f8, 0x4, 0xc42048cd20, ...)
	/home/travis/gopath/src/github.com/andreasf/cf-mysql-plugin/cfmysql/ssh_runner.go:25 +0x260
created by github.com/andreasf/cf-mysql-plugin/cfmysql.(*cfService).OpenSshTunnel
	/home/travis/gopath/src/github.com/andreasf/cf-mysql-plugin/cfmysql/cf_service.go:61 +0x107

menicosia avatar Sep 30 '19 17:09 menicosia