@Danny325 Hi,
In a previous post, you wrote that you successfully run composer via ssh: "No i can run this as root user as well as non root user".
What PHP did you use to run composer via SSH? Why is the error associated with the 'allow_url_fopen' php.ini parameter not occurred in this case...