GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — CLOUDSTACK-5822: keep user-added sshkeys in authorized_keys · javascriptextjs/cloudstack@64ef4fa

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • setup/bindir
    • cloud-set-guest-sshkey.in
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎setup/bindir/cloud-set-guest-sshkey.in‎

Copy file name to clipboardExpand all lines: setup/bindir/cloud-set-guest-sshkey.in
+2-2Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,8 +81,8 @@ if [ ! -e $authorized ]; then
8181
chmod 600 $authorized
8282
fi
8383

84-
cat $authorized|grep -v "$publickey"|tee $authorized > /dev/null
85-
echo "$publickey" >> $authorized
84+
sed -i "/ [email protected]$/d" $authorized
85+
echo "$publickey [email protected]" >> $authorized
8686

8787
which restorecon && restorecon -R -v $sshdir
8888

0 commit comments

Comments
0 (0)
You are visitor 01402520 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.