I have configured the Ruby On Rails Project on the Apache with the passenger but when I am doing the ssh using the application then its not working and gives this error in the apache log.
Could not create directory '/var/www/.ssh'.
Host key verification failed.
But when I run the same project on the WEBrick server then it works fine.
I am running the command in following way.
system("ssh machine command")
www-dataand when I so the same opetaion with the Webrick server then it saysroot....But how can I achieve the running thesshcommand in the apache..any solution...?