L
L
Leopandro2016-06-21 19:03:43
PHP
Leopandro, 2016-06-21 19:03:43

How to properly use composer with SSH authentication?

I'll start in order.
To begin with, I made myself an SSH key according to the tutorial from the github:
1) ssh-keygen -t rsa -b 4096 -C "[email protected]" //
2) eval "$(ssh-agent -s)"
3) ssh -add ~/.ssh/id_rsa
Then I try
ssh -T [email protected]*****.com //
outputs:
Welcome to Repository Hosting's Git Server. You have been successfully authenticated. However you cannot connect directly with SSH, you must use the 'git' command.
Click to update composer with
php composer.phar update
Outputs:
[RuntimeException]
Failed to execute git clone --mirror ...
...
ERROR:gitosis.serve.main:Repository read access denied
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
Tried doing it with openserver and cygwin.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
G
Grigory Esin, 2016-06-21
@xotey83

Show the output of "php composer.phar -vvv update"

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question