Found a solution. Have to go into sudoers and comment 'requiretty'
Doesn't seem to be a way around this other than commenting out this line.
krzysieq wrote:
>
> Forgot to close the double quote at the end of arg line...
>
> 2008/7/25 Krzysieq <[EMAIL PROTECTED]>
>
>> Not sure, but maybe this
Forgot to close the double quote at the end of arg line...
2008/7/25 Krzysieq <[EMAIL PROTECTED]>
> Not sure, but maybe this will help You:
>
>
> http://www.nabble.com/sshexec-%28running-remote-commands-with-sudo%29-forced-psuedo-tty-allocation-tp18592216p18641500.html
>> Sent from the Ant - Use
Not sure, but maybe this will help You:
http://www.nabble.com/sshexec-%28running-remote-commands-with-sudo%29-forced-psuedo-tty-allocation-tp18592216p18641500.html
> Sent from the Ant - Users mailing list archive at Nabble.com.
>
>
> ---
meh.. I give up.
ssh'in into root by adding build's pub key to root's authorized_keys' file.
Systems might have some problems with it, but it works for now.
--
View this message in context:
http://www.nabble.com/sshexec-%28running-remote-commands-with-sudo%29-forced-psuedo-tty-allocation-t
ad is here:
>> http://marc.info/?l=ant-user&m=120128316829325&w=2
>>
>>
>> -Original Message-
>> From: mindspin311 [mailto:[EMAIL PROTECTED]
>> Sent: Tuesday, July 22, 2008 11:08 AM
>> To: user@ant.apache.org
>> Subject: RE: sshexec (ru
t do an exec with the command ssh -t .?
>>
>> -----Original Message-----
>> From: mindspin311 [mailto:[EMAIL PROTECTED]
>> Sent: Tuesday, July 22, 2008 10:37 AM
>> To: user@ant.apache.org
>> Subject: sshexec (running remote commands with sudo) forced
psuedo-tty
>>
/marc.info/?l=ant-user&m=120128316829325&w=2
>
>
> -Original Message-
> From: mindspin311 [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, July 22, 2008 11:08 AM
> To: user@ant.apache.org
> Subject: RE: sshexec (running remote commands with sudo) forced
> psuedo-t
To: user@ant.apache.org
Subject: RE: sshexec (running remote commands with sudo) forced
psuedo-tty allocation
[exec] Pseudo-terminal will not be allocated because stdin is not a
terminal.
Doesn't work. Tried it to run a remote command without -t for something
like
'ls' and it works fine. It
ne.
ruel loehr wrote:
>
> why can't you just do an exec with the command ssh -t .?
>
> -Original Message-
> From: mindspin311 [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, July 22, 2008 10:37 AM
> To: user@ant.apache.org
> Subject: sshexec
why can't you just do an exec with the command ssh -t .?
-Original Message-
From: mindspin311 [mailto:[EMAIL PROTECTED]
Sent: Tuesday, July 22, 2008 10:37 AM
To: user@ant.apache.org
Subject: sshexec (running remote commands with sudo) forced psuedo-tty
allocation
I'm
I'm trying to mimic this command in ant:
[EMAIL PROTECTED]ssh -t [EMAIL PROTECTED] sudo
/sbin/service httpd restart
build has password-less ssh access to deploy's accounts. Deploy also has
password-less sudoers access to run any root owned apps. This is the only
way I can do this without bein
11 matches
Mail list logo