之前 pycharm无法分享项目上去,所以 添加一下ssh。 报错
Successfully created project ‘flask1111’ on Gitee, but initial push failed: unable to access ‘https://gitee.com/guawangyilushuobo/flask1111.git/’: Failed to connect to 127.0.0.1 port 15732 after 2056 ms: Connection refused
但是报错
Successfully created project ‘test1’ on Gitee, but initial push failed: git@gitee.com: Permission denied (publickey). Could not read from remote repository. Please make sure you have the correct access rights and the repository exists.
我准备生成一个ssh秘钥看看,
ssh-keygen -t rsa -C "sunzhenyue2021@163.com
"
之后得到
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQDZRQS/vM0wFNhsSpu/eGVtjd7O9zlAh/5CPSRCMxPLt1BhJJOpouhjaBGFi5f2OFvVGQ77bC4dW2Z6dCTwadhhsIbUN4vZiiUX+qkmJ0HyoGCtDXGbPDgN2L4mgA6HZdZFhoi9hAYxj+QXS3E8wzmCEOZQ2xH7x/ibY7Jb1mYlK5tVmiPNaDOajEu0jshAle/zAbCNV678
然后 。。终于可以上传成功了。
|