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

Create SSH module #325

Open
Pablo1107 opened this issue Feb 7, 2024 · 4 comments
Open

Create SSH module #325

Pablo1107 opened this issue Feb 7, 2024 · 4 comments

Comments

@Pablo1107
Copy link

Currently there is an article on the wiki stating how to manually set up an ssh daemon. Maybe this can be ported into a nix-on-droid module.

I may create a PR for this if you think this would be a nice-to-have.

@t184256
Copy link
Collaborator

t184256 commented Feb 7, 2024

See #203

@Pablo1107
Copy link
Author

See #203

Seems that PR was abandoned by the original author. I'll try to take a look if I have a chance. Thank you!

@pinage404
Copy link
Contributor

Thanks to the wiki, i was able to successfully install an SSH server !

https://gitlab.com/pinage404/dotfiles/-/commit/405665aeb8d5468184375ad69767772eb06e971b#29ca4eb2dccce271cd9a3d588f9b50575ec5607c_0_2

@Yeshey
Copy link

Yeshey commented Aug 6, 2024

Cool! I had to remove the option -D # don't detach into a daemon process because it would stay stuck on that step, and without it seems to get stuck when I run exit so I have to kill the app.

added your sshd-start to the startup files of bash and zsh with home-manager, and it works great

  # For starting the ssh server
  programs.zsh = {
    initExtra = ''
      sshd-start
    '';
  };
  programs.bash = {
    initExtra = ''
      sshd-start
    '';
  };

with your config i can connect to my phone from my PC through something like ssh nix-on-droid@192.168.1.254 -p 8022

Yeshey added a commit to Yeshey/nixOS-Config that referenced this issue Aug 6, 2024
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

4 participants