我有一個無業遊民VM設置了一個項目的結構我的主機上,像這樣:流浪SSH無法訪問共享目錄
PlayApps --> App1 -----------> all application/project files
App2 -----------> ""
App3 -----------> ""
(etc..)
.VagrantFiles --> VagrantFile
bootstrap.sh
(etc...)
我cd
到我.VagrantFiles目錄,然後啓動VM。
config.vm.synced_folder "../", "/Shared"
與在PlayApps目錄(多個項目)與虛擬機共享一切的目標是:在我VagrantFile該VM我這個目錄共享。當我啓動虛擬機,並在ssh
我看到目錄/共享和我可以cd
到它,但是當我嘗試列出與ls -al
我發現了以下錯誤的內容:
ls: cannot open directory .: Operation not permitted.
當我做ls -al
在包含目錄/共享,這是我所看到的(在其他目錄):
d????????? ? ? ? ? ? Shared/ and
d????????? ? ? ? ? ? vagrant/
我試圖sudo chmod 666
的/共享目錄,並認爲這是一個權限錯誤,但得到了以下錯誤:
chmod: cannot access '/Shared': Protocol error
一般來說,流浪,ssh和「操作」對我來說是相當新的,所以任何指針,建議,答案都會非常感謝。
Whe,救命恩人,謝謝! –
幫了我很多。謝謝 – Victor