Skip to content
This repository has been archived by the owner on Oct 22, 2021. It is now read-only.

Latest commit

 

History

History
53 lines (30 loc) · 1.21 KB

README.md

File metadata and controls

53 lines (30 loc) · 1.21 KB

Eirini ssh

This is a component that enables cf ssh for Eirini CloudFoundry clusters. It is the equivalent of diego-ssh for Eirini.

Test it out

  • Compile:

go build

  • Start it with a working config.json (check the example one under cmd/ssh-proxy/config.json) :

./ssh-proxy -config config.json

  • Find your applications guid:
cf app myapp --guid
  • Try to ssh to the proxy:
ssh -p 2222 cf:b654358e-edfd-4e9e-b646-7fa55d5f8eb7/[email protected]
  • When promted for a password use the one from the command:
cf ssh-code

More information:

Notes

To create a correct config.json file you will need the ssh-proxy user's secret (password). You can find that with something like

kubectl get secrets -n scf secrets-2.17.1-1 -o yaml | less

(look for uaa-clients-diego-ssh-proxy-secret)

decode the value with echo "the_value_here" | base64 -d. This is the value you need for the config.json file.