question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

I’m using the following dev env:

$ cf dev version
PCF Dev version 0.23.0 (CLI: 474b3ba, OVA: 0.436.0)

$ cf -v
cf version 6.22.2+a95e24c-2016-10-27 

By issuing cf ssh-code using the cli, I get the code without problems but using the following java code:

CloudFoundryOperations cfOperations = DefaultCloudFoundryOperations.builder()
              .cloudFoundryClient(cloudFoundryClient)
              .uaaClient(uaaClient)
              .organization(organization)
              .space(space)
              .build();
String sshCode = cfOperations.advanced().sshCode().block();

I get the following error:

java.lang.IllegalStateException: Parameter code not in URI https://uaa.local.pcfdev.io/login

I’d really appreciate a working example on the doc or a working snippet of code that I can use to reproduce the steps described at https://docs.cloudfoundry.org/devguide/deploy-apps/ssh-apps.html#other-ssh-access but using the java client.

Thanks!

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:6 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
nebhalecommented, Feb 15, 2017

I hope you mean 2.4.0.BUILD-SNAPSHOT 😄

0reactions
andreaturlicommented, Feb 15, 2017

indeed! 👍

Read more comments on GitHub >

github_iconTop Results From Across the Web

coder/sshcode: Run VS Code on any server over SSH. - GitHub
sshcode is a CLI to automatically install and run code-server over SSH. It uploads your extensions and settings automatically, so you can seamlessly...
Read more >
Remote Development using SSH - Visual Studio Code
Remote Development using SSH. The Visual Studio Code Remote - SSH extension allows you to open a remote folder on any remote machine,...
Read more >
SSH Code Example: Public key authentication - n software
An example of how to perform public key authentication.
Read more >
Accessing Apps with SSH | Cloud Foundry Docs
Query the /v2/info endpoint of the Cloud Controller in your deployment. · Run the following command: · Run cf ssh-code to obtain a...
Read more >
19 Common SSH Commands in Linux With Examples
SSH command cheat sheet, including 19 popular Secure Shell commands to manage your remote server. Learn how to manage and navigate files in ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found