0
respostas

ssh connection timed out

Não consegui conectar via comand do Windows a máquina bionic. Segui os passos da aula.

  1. Gerei as chaves;
  2. Inclui a chave publica no .ssh/authorized_keys;
  3. Conferi se a chave tinha sido incluida;
  4. Olhando no fórum inclui no Vagrantfile a configuração "config.ssh.insert_key = false"; Mas, não consegui conectar com a chave privada e usuário vagrant.

    ssh -i id_bionic vagrant@172.27.187.59

OBS: com o "vagrant ssh" conecto normalmente;

meu vagrantfile:

Vagrant.configure("2") do |config|
    config.vm.box = "hashicorp/bionic64"
    config.ssh.insert_key = false
    config.vm.network :forwarded_port, guest: 80, host: 8089
    config.vm.network "public_network", ip: "172.27.187.59"
end

authorization_keys:

vagrant@vagrant:~$ cat .ssh/authorized_keys
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDGZRg/mSx3Ho9b+ZGlI/hPQQeWi1XxwWcQqQfqYg3VZ59gNZzP66qyCqkgufUxADp9ij6g8Rd1cLaoCSLVURbJ3/L/sE+QW3kX05TxXk4Oldd/nLwTSBQqn3MW1FnJ46YJBORkcCZ82qJg2PrJOKbqO8ZWtADmnpBEcinSbKRdDnP+1cRgED3+bf+KUecWnFsHedDUYkArh7ByTWlTMa9FMGRWwW/YGIo7LjhEN3cb0uWO0FtY1oVaiYso3HSOBolMW/lyV6jdKbVO1pS00ScYs2bfLkkjC3nkn+VOxBc7VLQbZEnogiwxrfEG9ukSjaeTVmkhgiqtIPCim9KiKr4T vagrant
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQC1K2NkdY8NNkQGrYhlq7zfQIsddGMtQ/Q66a6yUaYZeNp499VnspSm9mtqQ4HB7x5lN5AI8ns6yiJYdexLWT4Wag4SoQ0LjyVr0jHB+WWRvyhQL1dL0/gKg9Vj5g7BBEaxYN3Gf4lsScQhIm0oG1tUV9l2MilF42eL+PbCMI7fmDwi9ydrnoWireCCZ4ZWjsPQjJBGiOu4DazNNi4J3HVA3XP4xDvBViWk0fH7IPYjUfwiy5g+iqjbInNp3qf0UPjxN7PUMGFR1y0Zwv/s2mg7tVvvnDGMMmZEHVZiJuTs8ryB0tebM8xcCyAS71oBRBRt0IqypLWtca3lDccm6NqJA+E3Os8tny91To1tPbewuhj3rtDuBBrluzxZ3F2Hp+LbVn3T9aCq1nd32D6xNnl6Zk4r/IxVXDtDz1qnRcUWMTqhSiFXgIQ47zhlDpMYPGv8oFBFGp/a9ffnv8iT4ldkcFqUbn5vkHxsmb0dJBFP0kabWh1G9+UMgcrzRvYfALs= frang@Conviso