Skip to content

Can't clone the repositories: permission denied #64199

Discussion options

You must be logged in to vote

@HeavySnowJakarta

Host value should be github.com or [email protected], that will make OpenSSH apply the specified option in the config file when git trying to access [email protected].

OpenSSH will only try to match 'Host' value which can be any string and will represent a set of options defined below it. According to your config file, git clone project:HeavySnowJakarta/spacedrive.git should work.

If config file works right, you will find a line in the verbose mode output right after 'Reading configuration data' to tell you the option is applied.

debug1: /path/to/home/.ssh/config line 18: Applying options for github.com

This is my config around GitHub:

Host gh
  HostName github.com
  User git…

Replies: 7 comments 4 replies

Comment options

You must be logged in to vote
1 reply
@HeavySnowJakarta
Comment options

Comment options

You must be logged in to vote
1 reply
@HeavySnowJakarta
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@anztim
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@HeavySnowJakarta
Comment options

Answer selected by HeavySnowJakarta
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
New User Help ❓ New User help
5 participants