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

Look for root key in /root/.ssh/authorized_keys #8

Open
mcginty opened this issue Nov 22, 2020 · 1 comment
Open

Look for root key in /root/.ssh/authorized_keys #8

mcginty opened this issue Nov 22, 2020 · 1 comment

Comments

@mcginty
Copy link

mcginty commented Nov 22, 2020

At https://github.com/grazzolini/mkinitcpio-tinyssh/blob/master/tinyssh_install#L61, the install script will fail if /etc/tinyssh/root_key is missing. However, later in the script:

cat /etc/tinyssh/root_key > "${BUILDROOT}"/root/.ssh/authorized_keys

Would it make sense to also just check if /root/.ssh/authorized_keys already exists and then skip that copy step?

@Nukesor
Copy link

Nukesor commented Nov 13, 2024

This isn't /root/.ssh/authorized_keys but rather the respective path in the built image that's put on the /boot partition.

Hence, it really doesn't make sense to use the actual authorized root key.

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