2016-01-23 51 views

回答

0

您可以使用application.properties中的shell.ssh.key-path屬性來配置密鑰文件的路徑。

+0

因爲我的應用程序正在雲環境中運行,所以這對我沒有任何幫助,因爲我沒有可用的文件系統...無論如何thx的提示 –

+0

AFAIK,CRaSH需要密鑰在文件系統上的文件中可用。有關詳細信息,請參閱http://www.crashub.org/1.3/reference.html#_key_authentication。 Boot將'shell.ssh.key-path'屬性映射到'crash.auth.key.path'。更復雜的任何事情都需要你編寫你自己的認證插件。 –

0

management.shell.auth.type =鍵

management.shell.auth.key.path = XXX

如果你讀的源代碼,你會得到上述結果:)

+0

另外,您需要這樣的關鍵路徑: –

+0

management.shell.auth.key.path = xxx –