Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re^2: Testing the creation of new files over SSH connection

by idsfa (Vicar)
on Jun 19, 2006 at 02:55 UTC ( #556170=note: print w/ replies, xml ) Need Help??


in reply to Re: Testing the creation of new files over SSH connection
in thread Testing the creation of new files over SSH connection

With the caveat that option 1 will not work unless the remote sudoers file allows NOPASSWD on random uploaded scripts (definitely not recommended). Mildly less offensive is that your cleanup script contains the allowed sudo lines (again w/o a password). Of course, option two requires hard-coding passwords (equally icky).

IMHO, the best option is to set up an ssh key for the user you need to log in as which can only execute a specific script. man sshd for details (link)


The intelligent reader will judge for himself. Without examining the facts fully and fairly, there is no way of knowing whether vox populi is really vox dei, or merely vox asinorum. — Cyrus H. Gordon


Comment on Re^2: Testing the creation of new files over SSH connection
Select or Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://556170]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (6)
As of 2014-12-20 20:18 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (97 votes), past polls