Я не могу войти в свои экземпляры aws ec2 с паролем
здесь я объясню, что я сделал
, затем я пытаюсь войти в систему через ssh new create instance, но не могу, как мне войти в систему? (в новых случаях)
Попробуйте вот это. Задайте ОДИН МАС-адрес сетевой карты в обоих местах файла. При необходимости настройте eth0.
# This file is generated from information provided by the datasource. Changes
# to it will not persist across an instance reboot. To disable cloud-init's
# network configuration capabilities, write a file
# /etc/cloud/cloud.cfg.d/99-disable-network-config.cfg with the following:
# network: {config: disabled}
network:
version: 2
renderer: networkd
ethernets:
eth0:
match:
macaddress: 06:bf:0c:4a:a5:d6
set-name: eth0
bridges:
br0:
dhcp4: true
macaddress: 06:bf:0c:4a:a5:d6
interfaces:
- eth0
Примечание : вам может потребоваться создать /etc/cloud/cloud.cfg.d/99-disable-network-config.cfg
network: {config: disabled}
sudo netplan --debug generate
sudo netplan apply
reboot
# обязательный
См. https://cloudinit.readthedocs.io/en/latest/topics/faq.html