
내 플레이북 폴더에서 내가 실행하는
vagrant up
Vagrantfile은 간단합니다
Vagrant.configure("2") do |config|
config.vm.box = "ubuntu/focal64"
end
키를 복사할 수 없습니다.
ssh-copy-id [email protected] -p 2200
/usr/bin/ssh-copy-id: INFO: attempting to log in with the new key(s), to filter out any that are already installed
/usr/bin/ssh-copy-id: INFO: 3 key(s) remain to be installed -- if you are prompted now it is to install the new keys
[email protected]: Permission denied (publickey).
이 방법으로 ssh를 할 수 있어요
ssh [email protected] -p 2200 -i .vagrant/machines/default/virtualbox/private_key
그런 다음 Authorized_keys(vagrant@ubuntu-focus)를 확인했습니다.
cat authorized_keys
ssh-rsa AAAAB3NzaC1yc2E************* vagrant
ssh-rsa가 어떻게 생성되는지 확인하는 방법은 무엇입니까?