[CentOS] remote sudo script

Tim Dunphy bluethundr at gmail.com
Tue Oct 8 05:49:22 UTC 2013


> use ssh keys rather than password authentication....  see: man ssh-keygen



hey thanks. Already using keys. It's sudo that's the blocker. Also I would
use NOPASSWD on my sudo options, but there's some bureaucratic red-tape
involved there. Can't really go about enabling that myself without ruffling
some feathers. Otherwise thanks for the suggestions and keep 'em coming!


On Tue, Oct 8, 2013 at 1:28 AM, John R Pierce <pierce at hogranch.com> wrote:

> On 10/7/2013 7:51 PM, Tim Dunphy wrote:
> > Any thoughts on how I should be going about this?
>
> use ssh keys rather than password authentication....  see: man ssh-keygen
>
> short version, on local system, run ssh-keygen to create a public and
> private key for the local account, and append the public key
> ~/.ssh/id_dsa.pub on the local system to the ~/.ssh/authorized_keys2
> file on the remote system.  once you've done this, ssh/scp/sftp will
> connect without prompting for a password.
>
>
>
> --
> john r pierce                                      37N 122W
> somewhere on the middle of the left coast
>
> _______________________________________________
> CentOS mailing list
> CentOS at centos.org
> http://lists.centos.org/mailman/listinfo/centos
>



-- 
GPG me!!

gpg --keyserver pool.sks-keyservers.net --recv-keys F186197B



More information about the CentOS mailing list