
私のプレイブックフォルダから実行する
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-focal)をチェックしました
cat authorized_keys
ssh-rsa AAAAB3NzaC1yc2E************* vagrant
ssh-rsa がどのように作成されるかを知るにはどうすればよいでしょうか?