why is public key needed to clone???

[degenaro@abbey-road tmp]$ git clone git@github.com:OpenLiberty/sample.daytrader8.git
Cloning into ‘sample.daytrader8’…
Warning: Permanently added the RSA host key for IP address ‘140.82.114.4’ to the list of known hosts.
Permission denied (publickey).
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.

A public key is required for cloning over SSH, as the ssh protocol requires authentication. If you don’t want to have a github account or don’t want to use an ssh key, you can clone over https:

git clone https://github.com/OpenLiberty/sample.daytrader8.git
2 Likes

svn co also works.  thx.