tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Gagan Malik <gaganma...@dev.java.net>
Subject Re: R: tomcat service public key
Date Tue, 18 Aug 2009 19:29:29 GMT

Thanks.. although just creation of the .ssh directory didn't help much, I
copied the contents of the .shh of the current user to
/usr/share/tomcat5/.ssh and it worked.

Although its not the ideal solution, but works well..


Leandro Dardini-3 wrote:
> 
> You can easily solve this problem with the following steps:
> 
> #Create the .ssh key directory
> 
> mkdir /usr/share/tomcat5/.ssh
> 
> #Assign ownership to tomcat
> 
> chown tomcat /usr/share/tomcat5/.ssh
> 
> I don't think further steps are necessary...
> 
> Leandro
> 
> 
>> -----Messaggio originale-----
>> Da: Gagan Malik [mailto:gaganmalik@dev.java.net] 
>> Inviato: martedì 18 agosto 2009 4.08
>> A: users@tomcat.apache.org
>> Oggetto: tomcat service public key
>> 
>> 
>> Hi, I'm a newbie to both tomcat and ssh and here's my problem:
>> 
>> I have a web-app (Hudson) running on tomcat (ver 5). This 
>> Tomcat runs as a service on RHEL box. Hudson triggers a 
>> custom 'ant' script to do a build which uses ssh to login to 
>> another server (svn server).
>> 
>> The ant script runs perfectly fine when triggered manually, 
>> since the user that runs it shares his public key with the 
>> svn server. But when the same is done via Hudson, it fails 
>> since hudson is run by the user: tomcat.
>> 
>> How can I generate and share the public key of user 'tomcat' 
>> (the service) with the svn server so that the ant script does 
>> not fail.
>> 
>> 
>> I get this error:
>> Could not create directory '/usr/share/tomcat5/.ssh'.
>> Host key verification failed.
>> svn: Connection closed unexpectedly
>> 
>> Any help is appreciated.
>> 
>> Thanks
>> --
>> View this message in context: 
>> http://www.nabble.com/tomcat-service-public-key-tp25017278p250
> 17278.html
>> Sent from the Tomcat - User mailing list archive at Nabble.com.
>> 
>> 
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
>> For additional commands, e-mail: users-help@tomcat.apache.org
>> 
>> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/tomcat-service-public-key-tp25017278p25031926.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message