Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Public Utility Scripts
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package registry
Model registry
Operate
Terraform modules
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
UNL ITS
Public Utility Scripts
Commits
cbd7f10c
Commit
cbd7f10c
authored
4 years ago
by
Alan Nelson
Browse files
Options
Downloads
Patches
Plain Diff
Ensure temp files are cleaned up
parent
2afb8953
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
generate_svc_account_key.sh
+1
-1
1 addition, 1 deletion
generate_svc_account_key.sh
with
1 addition
and
1 deletion
generate_svc_account_key.sh
+
1
−
1
View file @
cbd7f10c
...
@@ -7,4 +7,4 @@
...
@@ -7,4 +7,4 @@
#
#
read
-p
'Service Account: '
account
read
-p
'Service Account: '
account
sudo
-u
"
$account
"
-H
--
bash
-c
"cd ~; mkfifo key key.pub && cat key && cat key.pub >> /etc/ssh/authorized_keys/
$account
& echo
\"
y
\"
| ssh-keygen -q -t ed25519 -N
\"\"
-f key &>/dev/null; rm key key.pub"
sudo
-u
"
$account
"
-H
--
bash
-c
"cd ~; rm -f key key.pub; mkfifo key key.pub && cat key && cat key.pub >> /etc/ssh/authorized_keys/
$account
& echo
\"
y
\"
| ssh-keygen -q -t ed25519 -N
\"\"
-f key &>/dev/null; rm -f key key.pub"
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment