Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
B
BGA2017
Manage
Activity
Members
Labels
Plan
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Quang tru HUYNH
BGA2017
Commits
a31bdadc
Commit
a31bdadc
authored
7 years ago
by
Quang tru HUYNH
Browse files
Options
Downloads
Patches
Plain Diff
grrr fix the chown /home/centos/.ssh
parent
c677aa59
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
noc-auth/centos-autorized_keys.sh
+1
-1
1 addition, 1 deletion
noc-auth/centos-autorized_keys.sh
with
1 addition
and
1 deletion
noc-auth/centos-autorized_keys.sh
+
1
−
1
View file @
a31bdadc
...
@@ -2,7 +2,7 @@ mkdir -p /home/centos/.ssh
...
@@ -2,7 +2,7 @@ mkdir -p /home/centos/.ssh
echo
'ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC1k/QM9bIIGYzgRSuUD3dHFH7UtvNBggiqoL2B4+3paUi4bFffbf6a6wfpZGZNC9tFzWZj1/DxZ36WZgmpWq4R9XV6iyUayOB8qaFQw08GHV+wmSO1Z8ZZgs5snqWQ/AXQNRVhFEV+VKBB6/sCBz3haIN51epwo5r5NoTaKAZ33gH1mjUDRj5CvUwWSWpEg1QeO3woC9jm8eBxRHQMHRBr+SSLSh/V4DCimMkdJpeOYrtzHsEQp3QJFDc0IGU/XXDL6zU0GooI9HcXAd5LUkUhtxRdLgyGFRcmI4n8idCyktBmVkB7myF1j6MUycjHCOz5y3UsJq87AcvysvKXmZCj noc-auth'
>
/home/centos/.ssh/authorized_keys
echo
'ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC1k/QM9bIIGYzgRSuUD3dHFH7UtvNBggiqoL2B4+3paUi4bFffbf6a6wfpZGZNC9tFzWZj1/DxZ36WZgmpWq4R9XV6iyUayOB8qaFQw08GHV+wmSO1Z8ZZgs5snqWQ/AXQNRVhFEV+VKBB6/sCBz3haIN51epwo5r5NoTaKAZ33gH1mjUDRj5CvUwWSWpEg1QeO3woC9jm8eBxRHQMHRBr+SSLSh/V4DCimMkdJpeOYrtzHsEQp3QJFDc0IGU/XXDL6zU0GooI9HcXAd5LUkUhtxRdLgyGFRcmI4n8idCyktBmVkB7myF1j6MUycjHCOz5y3UsJq87AcvysvKXmZCj noc-auth'
>
/home/centos/.ssh/authorized_keys
chmod
0700 /home/centos/.ssh
chmod
0700 /home/centos/.ssh
chmod
0600 /home/centos/.ssh/authorized_keys
chmod
0600 /home/centos/.ssh/authorized_keys
chown
-R
centos:centos /home/
bga2017
/.ssh
chown
-R
centos:centos /home/
centos
/.ssh
restorecon
-rv
/home/centos
restorecon
-rv
/home/centos
echo
'centos ALL=(ALL) ALL'
>>
/etc/sudoers
echo
'centos ALL=(ALL) ALL'
>>
/etc/sudoers
restorecon
-rv
/etc/sudoers
restorecon
-rv
/etc/sudoers
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