Hi again,
We have now solved the problem. After checking all log-files we noticed that the problems were the web-server's permissions. Running one command as root does not mean it will run as another user. So by adding permissions for the apache-user and connecting the first ssh-session from the prompt (you will be prompted the first time if you want to add the destination in your known-hosts) everything works fine. However, a lot of time was spent to find this out, as well as that all users have different home directories, therefore looking for the ssh keys in different directories even though a location is specified.
Best Regards
// Staffan Dahlberg