ssh
add new ssh key to linux vm
bashaz vm extension set -n VMAccessForLinux --publisher Microsoft.OSTCExtensions --version 1.4 \ --vm-name vmName --resource-group resourceGroup \ --protected-settings '{"username":"user", "ssh_key":"ssh-rsa ..."}'
configure windows ssh
- Set service
OpenSSH Authentication AgenttoAutomaticandStartit. - In Powershell,
ssh-add - In environment variables, add
GIT_SSH=C:\Windows\System32\OpenSSH\ssh.exe
adding keys
bashsudo apt-get install keychain ssh-keygen -t ed25519 -C "stafford.williams@gmail.com"
linux:
bashecho "eval \`keychain --clear --eval id_ed25519\`" >> ~/.profile cat ~/.ssh/id_ed25519.pub
macOS: see docs