> 文档中心 > git@github.com: Permission denied (publickey).fatal: Could not read from remote repository.

git@github.com: Permission denied (publickey).fatal: Could not read from remote repository.

 新创建本地厂库上传到github厂库遇到的小问题

nvidia@nvidia-desktop:~/Nano/opencv_contrib_essential_module$ git push -u origin mainThe authenticity of host 'github.com (20.205.243.166)' can't be established.ECDSA key fingerprint is SHA256:p2QAMXNIC1TJYWeIOttrVc98/R1BUFWu3/LiyKgUfQM.Are you sure you want to continue connecting (yes/no)? yesWarning: Permanently added 'github.com,20.205.243.166' (ECDSA) to the list of known hosts.git@github.com: Permission denied (publickey).fatal: Could not read from remote repository.Please make sure you have the correct access rightsand the repository exists.nvidia@nvidia-desktop:~/Nano/opencv_contrib_essential_module$ git push -u origin maingit@github.com: Permission denied (publickey).fatal: Could not read from remote repository.Please make sure you have the correct access rightsand the repository exists.nvidia@nvidia-desktop:~/Nano/opencv_contrib_essential_module$ ssh git@github.comgit@github.com: Permission denied (publickey).nvidia@nvidia-desktop:~/Nano/opencv_contrib_essential_module$ ssh-keygen -t rsa -C "你的github注册邮箱"Generating public/private rsa key pair.Enter file in which to save the key (/home/nvidia/.ssh/id_rsa):Enter passphrase (empty for no passphrase):Enter same passphrase again:Your identification has been saved in /home/nvidia/.ssh/id_rsa.Your public key has been saved in /home/nvidia/.ssh/id_rsa.pub.The key fingerprint is:SHA256:7RJR+fOlLwP+xlbbpkRFNMrhsTqc2a0owhZczdR7Vhg 你的github注册邮箱The key's randomart image is:+---[RSA 2048]----+|   .o.oE=o||  .= o.*.o|| .. + =. o||      . .o. B..+.||oS .* +++ ||      . .o  +.+ .||+...o +.oo||      . ... ..*.+||      +o= |+----[SHA256]-----+nvidia@nvidia-desktop:~/Nano/opencv_contrib_essential_module$ cat /home/nvidia/.ssh/id_rsaid_rsa.pub   known_hostsnvidia@nvidia-desktop:~/Nano/opencv_contrib_essential_module$ cat /home/nvidia/.ssh/id_rsa.pubssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDFRJEwmhxYoQ0lmJDrlVUmNvq0GivaPNxsXLJlJ5h+2tJ+G+g8AUvysWea+AjURwgLjJkwX/DFEliW4BIII9MFw/pj8qFc7qxdxZ8Wq6mQmP1aVd09emYzt2h0bxpFpdF2EXpv8w9PpOGksz9SpdVRm/twqm/mIPPqn/V6xKwLRdYPKMHIcpEnDwgM71dBfBAIdjK8FOojIKch5qYEmodXCpv0tkiH/7cmr8e1M0vUtuKC0ADVA6kwdgQ6zckBXk27EL4BC2dOO9GGxTHjJhhMEWynd1Fl09Fv8b+NbW5sH4UsEllr9rz5yDqfzTn+nR3hWOUwfhGEWVVg7e0Lore9 你的github注册邮箱nvidia@nvidia-desktop:~/Nano/opencv_contrib_essential_module$ ssh git@github.comPTY allocation request failed on channel 0Hi Unlicensed-driver-ljx! You've successfully authenticated, but GitHub does not provide shell access.Connection to github.com closed.nvidia@nvidia-desktop:~/Nano/opencv_contrib_essential_module$ git push -u origin mainCounting objects: 3, done.Writing objects: 100% (3/3), 255 bytes | 255.00 KiB/s, done.Total 3 (delta 0), reused 0 (delta 0)To github.com:Unlicensed-driver-ljx/opencv_contrib_essential_module.git * [new branch]      main -> mainBranch 'main' set up to track remote branch 'main' from 'origin'.nvidia@nvidia-desktop:~/Nano/opencv_contrib_essential_module$