Grant Authorized Key (GPL)
"GrantAuthorizedKey.sh" is a Bourne shell script that can automatically grant remote access into your account temporarily. Calling "GrantAuthorizedKey.sh" with a public key file as its argument would insert that public key into your ".ssh/authorized_keys" file. Then you can use the companion "RevokeAuthorizedKey.sh" script to remove the authorization. These two scripts are extremely useful in situations where your custom script must log into a remote computer and then grab some files or do something on your execution host.
When "GrantAuthorizedKey.sh" successfully inserts a public key into the authorized_key file, it outputs the name of the public key. You can pass this name to the "RevokeAuthorizedKey.sh" to remove the key from the authorized_key file.
"GrantAuthorizedKey.sh" takes advantage of the following shell scripts, which are also available on this site. So to use the this script, you will need to download those script if you don't already have them.
"GrantAuthorizedKey.sh" is distributed as executable source code under the GNU General Public License. Please see the license agreement elsewhere on this site.
GrantAuthorizedKey.sh "public key file"
Did your message disappear? Read the Forums FAQ.
Title: Revoke Authorized Key (GPL)
Spam Control | * indicates required field
Messages, files, and images copyright by respective owners.
14 Users Online
Copyright © 1996 - 2017. All Rights Reserved.