-
Notifications
You must be signed in to change notification settings - Fork 63
fdi.ssh=1 enables root login & passwd auth #178
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -16,5 +16,18 @@ fi | |
|
|
||
| # enable ssh | ||
| if [ "$KCL_FDI_SSH" == "1" ]; then | ||
| KEYS=("PubkeyAuthentication" "PasswordAuthentication" "PermitRootLogin") | ||
|
|
||
| for KEY in "${KEYS[@]}"; do | ||
| sed -i "/^#\?${KEY}/d" "/etc/ssh/sshd_config" | ||
| done | ||
|
|
||
| { | ||
| echo '#FDI' | ||
| echo "PubkeyAuthentication yes" | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. How do I deploy a key into FDI?
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. However, I'm not sure if anyone is doing that.
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. TIL. Thanks |
||
| echo "PasswordAuthentication yes" | ||
| echo "PermitRootLogin yes" | ||
| } >> "/etc/ssh/sshd_config" | ||
|
|
||
| systemctl start sshd | ||
| fi | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We don't need to delete comments.