Magento 2.1.18 is the final 2.1.x release. After June 2019, Magento 2.1.x will no longer receive security patches, quality fixes, or documentation updates.
To maintain your site's performance, security, and PCI compliance, upgrade to the latest version of Magento.

Cannot clone the Magento GitHub repository

Detail

Error is similar to the following:

1
2
3
Cloning into 'magento2'...
Permission denied (publickey).
fatal: The remote end hung up unexpectedly

Solution

Upload your SSH key to GitHub as discussed in the GitHub help page.

Updated