Giter VIP home page Giter VIP logo

Comments (13)

fpapleux avatar fpapleux commented on June 27, 2024 7

I think this is related. I am doing dcos node ssh --leader --master-copy and it is asking me for a password. I can't find this password anywhere.

from dcos-core-cli.

sudosaket avatar sudosaket commented on June 27, 2024 6

If you are using Vagrant, the --user=vagrant switch works. Note it still asks for a password, I entered the password as vagrant and I got in.

from dcos-core-cli.

partounian avatar partounian commented on June 27, 2024 2

@fpapleux I am trying to use dcos node ssh to get into Redis as per the tutorial but I'm having the same issue as you. Were you able to find a solution?

from dcos-core-cli.

siavashk avatar siavashk commented on June 27, 2024 2

Why isn’t this mentioned as part of DCOS 101 tutorial? Or better yet, add vagrant as a user option to the ssh command:

dcos node ssh --master-proxy --mesos-id=$(dcos task redis --json | jq -r '.[] | .slave_id’) --user=vagrant

Knowing the correct combination of username/password for vagrant is not exactly common knowledge.

from dcos-core-cli.

grampelberg avatar grampelberg commented on June 27, 2024 1

I suspect that's because we're using IPs and jumping hosts. We need to make it obvious how to do that config!

from dcos-core-cli.

tamarrow-zz avatar tamarrow-zz commented on June 27, 2024

Hi @r0c. What manual are you referring to and where are you running the cli from? Is the master node publicly from where the cli is running from? You probably need to add your aws key to your ssh-agent.

from dcos-core-cli.

jsancio avatar jsancio commented on June 27, 2024

@tamarrow and @r0c I think the other possible issue is that core in ssh [email protected] may not be a valid user. It should be possible to set the right user with the --ssh-config-file flag.

We should add features to DC/OS to make it possible to expose the journald logs without having to ssh. cc. @pyronicide and @malnick

from dcos-core-cli.

dispalt avatar dispalt commented on June 27, 2024

I figure it would be easiest to add a new setting called user to the config file, then anytime you ssh via node ssh or look at marathon logs, it would use that as default.

from dcos-core-cli.

grampelberg avatar grampelberg commented on June 27, 2024

@ddispaltro what do you think about configuring the SSH options instead?

from dcos-core-cli.

dispalt avatar dispalt commented on June 27, 2024

You mean in your ~/.ssh/config, if so I am good with that. The tool doesn't seem to respect it though.

from dcos-core-cli.

ayen-tibco avatar ayen-tibco commented on June 27, 2024

@fpapleux by default, dcos ssh utilize default user 'core'. For vagrant local installation of dcos, it's 'vagrant'.

dcos node ssh --master-proxy --user=vagrant --mesos-id=$(dcos task redis --json | jq -r '.[] | .slave_id')

from dcos-core-cli.

RogerWeihrauch avatar RogerWeihrauch commented on June 27, 2024

Hello @ALL
You are all right on how to change the user when SSHing into one node's name/ip.
But ,what can I do in the following case when there is a pswd for the user core requested:
'dcos service log marathon'?
I did not find any 'workaround' to change the user with, e.g., '--user=vagrant'.
Is there any solution to change the user from 'core' to 'vagrant' when executing above mentioned dcos service log command?
Your response will be highly appreciated.
Regards,
Roger

from dcos-core-cli.

cepefernando avatar cepefernando commented on June 27, 2024

I fixed this issue by going through https://docs.mesosphere.com/1.7/administration/sshcluster/

  1. chmod 600 .pem (Grant permissions)
  2. cp .pem ~/.ssh/.pem (Copy key to local ssh path)
  3. ssh-add ~/.ssh/.pem
  4. dcos node ssh --master-proxy --mesos-id=

Now it is not asking for a password. Hope this helps.

from dcos-core-cli.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.