Why don't you add the tomcat user to the ssh list of users..

Gagan Malik wrote:
> 
> if logging in as tomcat was possible there wouldn't have been any problem.
> I think Chuck is right.. its all about getting a known user id use ssh..
> 
> 
> Abhinav Shah wrote:
>> 
>> are you sure that the tomcat user is on the list of users allowed to do
>> ssh on the svn server.. one way to check is login as tomcat user on RHEL
>> box and then do a ssh to the svn server..
>> 
>> 
>> Gagan Malik wrote:
>>> 
>>> 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-tp25017278p25019230.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


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

Reply via email to