Git - Permission denied (publickey)

 當我在ubuntu上使用git clone git@github.com:spring-projects/spring-framework.git 指令下載github上的spring framework項目的時候,報以下錯誤git

Git - Permission denied (publickey)。經搜索發現是由於沒有公鑰,服務器禁止訪問。由於個人目的只是讀取文件到本地,所以將git@github.com:替換成https://github.com.便可。
github