...
In the above example we switched the local site to the extension directory, and the remote site to the code directory. Now on the remote site window, inside app/code root directory, create a folder named Magenest named packages/magenest and go inside it. Now on your local site window, right click on Extension Name and click Upload. The extension will be uploaded onto your host in a few minutes.
...
scp <path to your extension> <ssh server>:<path to Magenest directory>
Then log into your ssh server, go to Magenest directory and execute the following command to decompress the module:
unzip <.zip compressed extension> Or
tar -xzvf <.tar.gz compressed extension> ...
Now go to your Magento root directory, say it's named magento2, open file composer.json and add following section
"repositories": [ {"type": "artifact",
"url": "packages/magenest"
}
],
and execute the following commands:
composer require Magenest/module-subscriptionphp bin/magento setup:upgrade
...