0
我想ssh到簡單Vargant機,它要求我要密碼:如何ssh到流浪機?
>vagrant init ubuntu/trusty32
>vagrant up
>vagrant ssh
Enter passphrase for key '.../.vagrant/machines/default/virtualbox/private_key':
這可能是由於new key generation:
==> default: Waiting for machine to boot. This may take a few minutes...
default: SSH address: 127.0.0.1:2200
default: SSH username: vagrant
default: SSH auth method: private key
default: Warning: Connection timeout. Retrying...
default: Warning: Remote connection disconnect. Retrying...
default:
default: Vagrant insecure key detected. Vagrant will automatically replace
default: this with a newly generated keypair for better security.
default:
default: Inserting generated public key within guest...
default: Removing insecure key from the guest if its present...
default: Key inserted! Disconnecting and reconnecting using new SSH key...
==> default: Machine booted and ready!
如何使新的密鑰密碼的?
Upadate:看起來密鑰實際上並沒有被密碼保護。我使用Puttygen從它生成.ppk併成功使用它連接到vagrant @ localhost:2200。
config.ssh.insert_key = false從該PR引用。我沒有機會爲自己驗證,但谷歌搜索表明這是人們正在使用的解決方法。 –
@AdamTaylor nope,insecure_private_key也要求輸入密碼。 – Poma
可能重複[Vagrant SSH默認密鑰密碼?](http://stackoverflow.com/questions/29452656/vagrant-ssh-default-key-passphrase) – Poma