Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sshd command #640

Closed
irani74 opened this issue Feb 23, 2022 · 2 comments
Closed

sshd command #640

irani74 opened this issue Feb 23, 2022 · 2 comments

Comments

@irani74
Copy link

irani74 commented Feb 23, 2022

Hi,
I need to get a list of all clients connected to a Nebula network.
after reading issues, found #545 that answer my question
but I don't know how to run sshd in my CLI
Can anybody help me?

@theblop
Copy link

theblop commented Feb 24, 2022

  • generate a nebula ssh server key on the lighthouse:
cd /etc/nebula
ssh-keygen -t ed25519 -f ssh_host_ed25519_key -N "" < /dev/null
  • generate a client key/pubkey:
ssh-keygen -f ssh_user.key
  • configure sshd in the lighthouse's config.yaml:
sshd:
  enabled: true
  listen: 127.0.0.1:12222
  # A file containing the ssh host private key to use
  # A decent way to generate one: ssh-keygen -t ed25519 -f ssh_host_ed25519_key -N "" < /dev/null
  host_key: /etc/nebula/ssh_host_ed25519_key
  # A file containing a list of authorized public keys
  authorized_users:
    - user: root
      keys:
        # copy/paste the content of ssh_user.key.pub:
        - "ssh-rsa XXXXXXXXXXXXXXXXXXXXX"
  • connect with ssh:
ssh -i ssh_user.key -p 12222 localhost list-hostmap

@irani74
Copy link
Author

irani74 commented Feb 24, 2022

Thanks so much
You’re the best

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants