How to fix a hanging issue on a Composer command?

An example of hanging issue:

Composer responds nothing.

How to diagnose it

Try to execute the command:

ssh <your login>@code.dmitry-fedyuk.com

If the response is «ssh: connect to host code.dmitry-fedyuk.com port 22: Connection refused», then it could be a your server’s firewall issue.