Vagrant 1.8.5 ssh retrying bugfix
O Vagrant 1.8.5 tem um bug crítico em guests linux, o vagrant simplesmente não consegue terminar o vagrant up por causa de um bug na geração do arquivo authorized_keys que contém as chaves permitidas para acesso ssh por chaves no guest. O problema é que o vagrant está gerando o arquivo com a permissão errada e o subsistema ssh — neste casos — ignora o arquivo por questões de segurança.
Você provavelmente está tendo uma saíde similar após atualizar para o 1.8.5
centos: Waiting for machine to boot. This may take a few minutes...
centos: SSH address: 127.0.0.1:2222
centos: SSH username: vagrant
centos: SSH auth method: private key
centos: Warning: Remote connection disconnect. Retrying...
centos:
centos: Vagrant insecure key detected. Vagrant will automatically replace
centos: this with a newly generated keypair for better security.
centos:
centos: Inserting generated public key within guest...
centos: Removing insecure key from the guest if it's present...
centos: Key inserted! Disconnecting and reconnecting using new SSH key...
centos: Warning: Authentication failure. Retrying...
centos: Warning: Authentication failure. Retrying...
centos: Warning: Authentication failure. Retrying...
centos: Warning: Authentication failure. Retrying...
centos: Warning: Authentication failure. Retrying...
centos: Warning: Authentication failure. Retrying...
centos: Warning: Authentication failure. Retrying...
centos: Warning: Authentication failure. Retrying...
centos: Warning: Authentication failure. Retrying...
centos: Warning: Authentication failure. Retrying...
A solução é simples edite o arquivo public_key.rb
/opt/vagrant/embedded/gems/gems/vagrant-1.8.5/plugins/guests/linux/cap/public_key.rb
Procure a linha
mv ~/.ssh/authorizedkeys.tmp ~/.ssh/authorizedkeys
Adicione abaixo dela
chmod 0600 ~/.ssh/authorized_keys
Salve, e suba a VM novamente, isso deve resolver o problema.
Refs
No vagrant 1.8.6 isto estará resolvido, mais info sobre o bug abaixo
[s]
Guto
Gostou do conteúdo?
Você também me encontra nessas redes!
Mastodon
PixelFed
Lemmy
WriteFreely
@gutocarvalho@bolha.blog @notamental@bolha.blog @poesias@bolha.blog @contos@bolha.blog
Bookwyrm
Peertube
Friendica
Quer saber mais sobre mim?
Visite meus sites!
E meus blogs:
- https://blogs.gutocarvalho.net
- https://blogs.gutocarvalho.net/falagutera
- https://blogs.gutocarvalho.net/infra
- https://blogs.gutocarvalho.net/opiniao
- https://blogs.gutocarvalho.net/contos
- https://blogs.gutocarvalho.net/poesias
- https://blogs.gutocarvalho.net/lives
- https://blogs.gutocarvalho.net/orixas
- https://blogs.gutocarvalho.net/archives
Conhece o Coletivo Bolha?
Então vem conhecer o bolha.io ou bolhaverso!
- fediverso
- mastodon, https://bolha.us
- pixelfed, https://bolha.photos
- lemmy, https://bolha.forum
- bookwyrnm, https://bolha.review
- writefreely, https://bolha.blog
- peertube, https://bolha.tube
- castopod, https://bolha.studio
- owncast, https://bolha.stream
- friendica, https://bolha.network
- chat
- mattermost, https://mattermost.bolha.chat
- zulip, https://zulip.bolha.chat
- vídeo
- jitsi, https://bolha.video
- jitsi, https://bolha.video
- frontends
- lingva, https://translate.bolha.tools
- libremdb, https://libremdb.bolha.tools
- translations
- libretranslate, https://libretranslate.bolha.tools
- editors
- hedgedoc, https://notes.bolha.tools
- draw.io, https://draw.bolha.tools
- excalidraw, https://excalidraw.bolha.tools
- pdf stirling, https://spdf.bolha.tools
- wisemaping, https://mindmap.bolha.tools
- mermaid, https://mermaid.bolha.tools
- cryptpad, https://cryptad.bolha.tools
- secrets sharing
- yopass, https://yopass.bolha.tools
- password pusher, https://pusher.bolha.tools
- pastbin
- yabin, https://yabin.bolha.tools
- terminal recorder
- ascinnema, https://ascinemma.bolha.tools
- anti paywall
- 13ft, https://open.bolha.tools
Nós temos muito mais para compartilhar contigo!
Quer apoiar nosso trabalho? Você pode!
- https://www.patreon.com/bolha
- https://apoia.se/bolha
- pix@bolha.us
Te vejo no mastodon da bolha.us!
[s]