using google/yandex oslogin with ssh key

add key-pair to service account

ssh-keygen -t ed25519 -f ansible_edwards

yc organization-manager organizations list

org_id=...

sa_id=... # for each folder

yc organization-manager oslogin user-ssh-key create \
  --name ansible_edwards \
  --subject-id $sa_id \
  --data "`cat ansible_edwards.pub`" \
  --organization-id $org_id

resources

Using a service account with an OS Login profile for VM management via Ansible https://yandex.cloud/en/docs/tutorials/security/sa-oslogin-ansible


HOME | GUIDES | LECTURES | LAB | SMTP HEALTH | HTML5 | CONTACT
Copyright © 2024 Pierre-Philipp Braun