elitak / nixos-infect

[GPLv3+] install nixos over the existing OS in a DigitalOcean droplet (and others with minor modifications)
GNU General Public License v3.0
1.3k stars 214 forks source link

Fix SSH keys formatting #171

Closed XertDev closed 11 months ago

XertDev commented 11 months ago

As described in issue #170 , it seems that trimming a key string removes too many spaces. The authorized keys format assumes that each line is arguments separated by a space. Xargs should leave it in this format, removing unnecessary whitespace characters.