In order to install Composer on my OVH web hosting service, I need to pass some SSH commands.
To pass them, OVH wants me to install some CLI using commands (guide here)
To connect using certificate-based authentication, install the Web PaaS CLI.
PaaS CLI is supposedly installed with this command.
Objective
The CLI is the official tool to use and manage your Web PaaS projects directly from your terminal. Anything you can do within the management console can be done with the CLI.
Behinds the scenes it uses both the Git interface and our REST API. The source code of the CLI is hosted on GitHub.
Installation
You can install the CLI easily using this command
curl -fsS https: //eu.cli.webpaas.ovhcloud.com/installer | phpYou can find the system requirements and more information in the installation instructions on GitHub.
The command doesn't work on the Windows Terminal.
}
return $selected;
}
}
curl: (6) Could not resolve host: php.exe
C:\Users\Alex>curl -sfS https://eu.cli.webpaas.ovhcloud.com/installer | apt install php7.2-cli
'apt' is not recognized as an internal or external command,
operable program or batch file.
C:\Users\Alex>ssh Alex@Alex-PC
ssh: connect to host Alex-PC port 22: Connection refused
So I tried from the Linux prompt from my Hive OS mining machine. Attempting the installation command from my mining machine:
root@Dual_RTX_3090:/# curl -sfS https://eu.cli.webpaas.ovhcloud.com/installer | php
Command ‘php’ not found, but can be installed with:
apt install php7.2-cli
apt install hhvm
curl: (23) Failed writing body (539 != 5935)
root@Dual_RTX 3090: /# curl -sfS https://eu.cli.webpaas.ovhcloud.com/installer | apt install php7.2-cli
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following additional packages will be installed:
libsodium23 php-common php7.2-common php7.2-json php7.2-opcache php7.2-readline
suggested packages :
php-pear
The following NEW packages will be installed:
libsodium23 php-common php7.2-cli php7.2-common php7.2-json php7.2-opcache php7.2-readline
0 upgraded, 7 newly installed, 0 to remove and 17 not upgraded.
Need to get 2647 kB of archives.
After this operation, 12.7 MB of additional disk space will be used.
Do you want to continue? [Y/n] Abort.
root@Dual_RTX_3090:/# Y
Y: command not found
root@Dual_RTX_3090:/#
So I pasted
curl -sfS https://eu.cli.webpaas.ovhcloud.com/installer | php
in the Command prompt, and I got served with
Command 'php' not nound, but can be installed with ...
so I then tried
curl -sfS https://eu.cli.webpaas.ovhcloud.com/installer | apt install php7.2-cli
and from there, it asked me to confirm.
Do you want to continue? [Y/n] Abort.
I tried to type "Y" and enter, but that doesn't do it.
How do you confirm this at this point?