The recording and gitee use github

reference

Gitee (cloud code), Github configure ssh key

 

The middle step, create a config file, and then test to make life difficult.

报错:Bad owner or permissions on C:\\Users\\xxx/.ssh/config

Solution:

Run as administrator PowerShell:

git clone [email protected]:PowerShell/openssh-portable.git
cd openssh-portable/contrib/win32/openssh
 .\FixUserFilePermissions.ps1 -Confirm:$false

If you have given:

. \ FixUserFilePermissions.ps1: Could not load file C: \ the Users \ Drawe \ Documents \ Project \ OpenSource \ openssh- Portable \ contrib \ win32 \ 
OpenSSH \ FixUserFilePermissions.ps1, since the prohibition to run a script on this system. For more information, see HTTPS: /go.microsoft.com/fwlink/? Li 
nkID = 135 170 in about_Execution_Policies. 
Location Line: 1 Character: 1 
+ \ FixUserFilePermissions.ps1 -Confirm:. $ False 
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     + CategoryInfo : a SecurityError: (:) [], PSSecurityException
     + FullyQualifiedErrorId: UnauthorizedAccess

carried out

get-executionpolicy

Look at whether the policy is Restricted

Then execution policy change

set-executionpolicy remotesigned

And then re-run

.\FixUserFilePermissions.ps1 -Confirm:$false

problem solved

 

Guess you like

Origin www.cnblogs.com/draweye/p/11578986.html