We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 52c0652 + f47e625 commit b93e846Copy full SHA for b93e846
files/create-sftp-user
@@ -83,7 +83,7 @@ fi
83
# Add SSH keys to authorized_keys with valid permissions
84
if [ -d "/home/$user/.ssh/keys" ]; then
85
for publickey in "/home/$user/.ssh/keys"/*; do
86
- cat "$publickey" >> "/home/$user/.ssh/authorized_keys"
+ (cat "${publickey}"; echo) >> "/home/$user/.ssh/authorized_keys"
87
done
88
chown "$uid" "/home/$user/.ssh/authorized_keys"
89
chmod 600 "/home/$user/.ssh/authorized_keys"
0 commit comments