As for today, here is completely working configuration:
Host ssh.dev.azure.com
HostName ssh.dev.azure.com
IdentityFile ~/.ssh/ado_name_date_company_git
IdentitiesOnly yes
PubkeyAcceptedAlgorithms rsa-sha2-512,rsa-sha2-256
As for today, here is completely working configuration:
Host ssh.dev.azure.com
HostName ssh.dev.azure.com
IdentityFile ~/.ssh/ado_name_date_company_git
IdentitiesOnly yes
PubkeyAcceptedAlgorithms rsa-sha2-512,rsa-sha2-256
| function Add-NugetAuthConfig { | |
| param ( | |
| [Parameter(Mandatory = $true)] | |
| [string]$path, | |
| [Parameter(Mandatory = $true)] | |
| [string]$key, | |
| [Parameter(Mandatory = $true)] |
| <# | |
| .SYNOPSIS | |
| Invokes authentication for Git submodules within a repository. | |
| .DESCRIPTION | |
| The Invoke-GitSubmodulesAuthentication function is used to authenticate Git submodules within a repository. It searches for .gitmodules files within the specified repository path and restores the submodules using the provided Personal Access Token (PAT). | |
| .PARAMETER pat | |
| The Personal Access Token (PAT) used for authentication. |
If you encounter the following error on Windows:
Permission denied (publickey). fatal: Could not read from remote repository.
But at the same time, the command ssh -vvv [email protected] gives you this message:
Hi USER_NAME! You've successfully authenticated, but GitHub does not provide shell access.
GIT_SSH_COMMAND="C:/Windows/System32/OpenSSH/ssh.exe". Ensure there's no space after the equal sign. Also, verify that the path is correct for your OS. Note! I've expirinced some connection issues while trying to clone the repo via ssh:
| $AGENTS_ROOT = "/Volumes/DATA/agents"; | |
| $AGENTS_NAMES = "name1", | |
| "name2", | |
| "name3"; | |
| foreach ($name in $AGENTS_NAMES) { | |
| $path = "$AGENTS_ROOT/$name"; | |
| Write-Output("stopping agent: $path"); | |
| pushd $path |
| XAMARIN BUILD CACHE | |
| open ~/Library/Caches/Xamarin/mtbs/builds/ | |
| rm -rf ~/Library/Caches/Xamarin/mtbs/builds/* | |
| OS X build agent runsvc.sh | |
| export ANDROID_HOME=/Users/$(whoami)/Library/Developer/Xamarin/android-sdk-macosx | |
| APFS Partition | |
| sudo diskutil eraseVolume "Free Space" %noformat% /dev/disk1s1 |