Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F167508706
D58970.id184521.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
776 B
Referenced Files
None
Subscribers
None
D58970.id184521.diff
View Options
diff --git a/tools/tools/nanobsd/defaults.sh b/tools/tools/nanobsd/defaults.sh
--- a/tools/tools/nanobsd/defaults.sh
+++ b/tools/tools/nanobsd/defaults.sh
@@ -1278,6 +1278,22 @@
_xxx_pkg_add_var_db_files_to_metalog
fi
+ #
+ # Change the SSH AuthorizedKeysFile location to
+ # /etc/ssh/authorized_keys/%u
+ #
+ if [ -f etc/ssh/sshd_config ]; then
+ tgt_dir etc/ssh/authorized_keys
+
+ sed -i "" -E 's|^#?AuthorizedKeysFile.*|AuthorizedKeysFile /etc/ssh/authorized_keys/%u|' \
+ etc/ssh/sshd_config
+
+ if [ -z "$NANO_NOPKGBASE" ]; then
+ tgt_pkg_update_file_sha256 etc/ssh/sshd_config
+ tgt_pkg_update_config_files_content etc/ssh/sshd_config
+ fi
+ fi
+
for d in var etc; do
# Link /$d under /conf
# we use hard links so we have them both places.
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Aug 23, 9:17 AM (9 h, 21 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
36989356
Default Alt Text
D58970.id184521.diff (776 B)
Attached To
Mode
D58970: nanobsd: Change the location of SSH authorized keys
Attached
Detach File
Event Timeline
Log In to Comment