Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine

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

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://556170]
[atcroft]: choroba: I found something in the GitHub repo for it where someone suggested changing the limit in the search result URL, but I don't know how effective that will be....

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (7)
As of 2017-04-29 05:49 GMT
Find Nodes?
    Voting Booth?
    I'm a fool:

    Results (531 votes). Check out past polls.