prosyslab-classroom / cs348-information-security

61 stars 10 forks source link

[Question][Hw0] #217

Closed JOYB28 closed 1 year ago

JOYB28 commented 1 year ago

Name: Yoonseo Kim

I'm having trouble with my github repository clone. Can I get some instruction or help?

student@cs348-2:~$ git clone https://github.com/prosyslab-classroom/cs348-2023-spring-hw0-1-JOYB28.git
Cloning into 'cs348-2023-spring-hw0-1-JOYB28'...
Username for 'https://github.com': joyb28
Password for 'https://joyb28@github.com':
remote: Write access to repository not granted.
fatal: unable to access 'https://github.com/prosyslab-classroom/cs348-2023-spring-hw0-1-JOYB28.git/': The requested URL returned error: 403
student@cs348-2:~$
student@cs348-2:~$ git clone git@github.com:prosyslab-classroom/cs348-2023-spring-hw0-1-JOYB28.git
Cloning into 'cs348-2023-spring-hw0-1-JOYB28'...
git@github.com: Permission denied (publickey).
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.
ICubE- commented 1 year ago

You should use a personal access token to login github in terminal, not your actual password. https://docs.github.com/ko/authentication/keeping-your-account-and-data-secure/creating-a-personal-access-token#personal-access-tokens-classic

yeonhee-ryou commented 1 year ago

To use ssh clone url like git@github.com:~~, you should add your public ssh key to your github account settings.

JOYB28 commented 1 year ago

Thank you for helping me! I forgot to add ssh key in kcloud.