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

Persist ssh HostKey #1

Open
s-ol opened this issue May 9, 2024 · 3 comments
Open

Persist ssh HostKey #1

s-ol opened this issue May 9, 2024 · 3 comments

Comments

@s-ol
Copy link
Contributor

s-ol commented May 9, 2024

I can't find it anywhere in this repo, and couldn't connect via SSH without the password. Once the Display starts up the vtty also seems to become inaccessible, so to bypass this I typed sudo passwd folk very quickly and then confirmed a new password.

@s-ol
Copy link
Contributor Author

s-ol commented May 9, 2024

Ah, the password is live, probably inherited from the Debian live config?

@s-ol
Copy link
Contributor Author

s-ol commented May 13, 2024

Also it would be nice to persist the ssh HostKey. The default host keys are generated as /etc/ssh/ssh_host_*_key by /usr/lib/live/config/1160-openssh-server, but could be generated everywhere and configured using the HostKey directive in /etc/sshd_config (or sshd_config.d). Note the permissions of the host key need to be set specifically:

Note that sshd(8) will refuse to use a file if it is group/world-accessible [...]

Questions:

  • where should the host key be saved? It would be easiest to create ~/folk-live/.sshd, but maybe it's nice that ~/folk-live is folk-only and not a directory of random unix junk?

@osnr
Copy link
Contributor

osnr commented May 14, 2024

live password noted in latest https://github.com/FolkComputer/folk-live-build/releases

@osnr osnr changed the title Set (or document) default password for SSH access Persist ssh HostKey May 14, 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

2 participants