remote_assistance
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revision | |||
| remote_assistance [2024/10/20 12:10] – steve | remote_assistance [2025/10/02 23:27] (current) – steve | ||
|---|---|---|---|
| Line 67: | Line 67: | ||
| mkdir -m 0700 -p ~/.ssh | mkdir -m 0700 -p ~/.ssh | ||
| cp / | cp / | ||
| - | chmod 0600 .ssh/ | + | chmod 0600 ~/.ssh/ |
| cp / | cp / | ||
| - | chmod 0644 .ssh/ | + | chmod 0644 ~/.ssh/ |
| - | cat .ssh/ | + | cat ~/.ssh/ |
| - | chmod 0644 .ssh/ | + | chmod 0644 ~/.ssh/ |
| Line 77: | Line 77: | ||
| cd ~/bin | cd ~/bin | ||
| - | # The construction below creates a file (srj-access.service) and then cats | + | # The construction below creates a file (adminaccess.service) and then cats |
| # everything to it until it matches the string ' | # everything to it until it matches the string ' | ||
| - | # out the leading tab that was added to make this easier to read. | + | # out the leading tab that was added to make this easier to read. The " |
| - | cat <<- EndOfText > srj-access.service | + | # returns the user you're logged in as, and this is the user that will get assistance. |
| + | cat <<- EndOfText > adminaccess.service | ||
| [Unit] | [Unit] | ||
| Description=Permit admin access from secretuser@cyli.org | Description=Permit admin access from secretuser@cyli.org | ||
| Line 106: | Line 107: | ||
| EndOfText | EndOfText | ||
| - | chmod a+x srj-access.service | + | chmod a+x adminaccess.service |
| - | sudo cp srj-access.service / | + | sudo cp adminaccess.service / |
| - | echo " | + | echo " |
| # Script below is a helper to enable the service, the "'" | # Script below is a helper to enable the service, the "'" | ||
| Line 116: | Line 117: | ||
| # This script connects to cyli.org for assistance, opening | # This script connects to cyli.org for assistance, opening | ||
| # a tunnel that remote admins can connect back through. | # a tunnel that remote admins can connect back through. | ||
| - | ScriptName=srj-access.service | + | ScriptName=adminaccess.service |
| [ ${1} ] && Opt=$( echo ${1} | tr A-Z a-z ) | [ ${1} ] && Opt=$( echo ${1} | tr A-Z a-z ) | ||
| case ${Opt} in | case ${Opt} in | ||
| Line 174: | Line 175: | ||
| Another nice thing to do is to set up a [[Shared ' | Another nice thing to do is to set up a [[Shared ' | ||
| - | |||
remote_assistance.txt · Last modified: by steve
