Re: I can't read files deployed on a Diego App


Matthew Sykes <matthew.sykes@...>
 

https://github.com/cloudfoundry-incubator/diego-ssh#cloud-foundry-via-cloud-controller-and-uaa

On Fri, Jan 8, 2016 at 1:45 AM, Juan Antonio BreƱa Moral <
bren(a)juanantonio.info> wrote:

Good morning,

many thanks for all comments.

@Daniel,
Yes, I had all requirements.

Is ssh enabled for your app? `cf ssh-enabled APP_NAME` Is ssh enabled for
your space? `cf space-ssh-allowed SPACE_NAME` Are you SpaceDeveloper for
the space where your app resides? This is a requirement.

I think that I had some problem with CLI and after updating, I logout and
login and later I executed the command: cf ssh appX:

vcap(a)9nu2sm25t5s:~$ ls
app logs staging_info.yml tmp
vcap(a)9nu2sm25t5s:~$

Using the command scp I could retrieve files that any users need with
Diego.

Enabling traces:

set CF_TRACE=true

I noticed that CLI makes this REST call:

Host: uaa.run.pivotal.io
User-Agent: Go-http-client/1.1
Referer:
https://uaa.run.pivotal.io/oauth/authorize?client_id=ssh-proxy&grant_ty
pe=authorization_code&response_type=code
Accept-Encoding: gzip

Where is the technical documentation?

The idea could be send linux commands in a script.

Note:

Fantastic slides:
http://slides.cf-hero.cloudcredo.io/
http://slides.cf-hero.cloudcredo.io/06-debugging/slides.md#/9

Happy weekend CF Team

Juan Antonio


--
Matthew Sykes
matthew.sykes(a)gmail.com

Join cf-dev@lists.cloudfoundry.org to automatically receive all group messages.