我目前使用流浪和廚師配置虛擬機並設置我的基於PHP的項目。這包括運行作曲家安裝,其實質上是一個私人存儲庫的git克隆。流浪ssh forward_agent沒有輸入流浪用戶密碼repeadley
設置了ssh代理轉發,如文檔和答案中所述:How to use ssh agent forwarding with "vagrant ssh"?我已成功運行。
我遇到的問題是當過我引導VM,提供虛擬機或SSH到VM我現在問流浪默認密碼,請參見下面的例子:
==> web: Waiting for machine to boot. This may take a few minutes...
web: SSH address: 192.168.77.185:22
web: SSH username: vagrant
web: SSH auth method: private key
Text will be echoed in the clear. Please install the HighLine or Termios libraries to suppress echoed text.
[email protected]'s password:
例2
➜ vagrant git:(master) ✗ vagrant ssh
[email protected]'s password:
這是非常不方便的,因爲我在一些項目中工作,包括每天摧毀和創建若干次(廚師測試廚房)。無論如何也可以自動使用我的公鑰,所以我不需要不斷輸入密碼?