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. GetTempPathName.ksh "GrantAuthorizedKey.sh" is distributed as executable source code under the GNU General Public License. Please see the license agreement elsewhere on this site. UsageGrantAuthorizedKey.sh "public key file" Chieh Cheng
Did your message disappear? Read the Forums FAQ. TrackBackTrackBack only accepted from WebSite-X Suite web sites. Do not submit TrackBacks from other sites.
Title: Revoke Authorized Key (GPL) Add Comment
Messages, files, and images copyright by respective owners. |
Products
|
Services
65 Users Online
![]() |
Copyright © 1996 - 2025. All Rights Reserved. |