MCPcopy Create free account
hub / github.com/Huawei/containerops / GenerateSSHKeyFiles

Function GenerateSSHKeyFiles

singular/module/tools/ssh.go:45–98  ·  view source on GitHub ↗

GenerateSSHKeyFiles create SSH key in @src , default file name is id_rsa and id_rsa.pub. Will remove the SSH key files if there are in @src. And in GenerateSSHKeyFiles will return fingerprint.

(basePath string)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 3

DeployInfraStacksFunction · 0.92
TestSSHKeysFunction · 0.85

Calls 2

IsFileExistFunction · 0.92
IsDirExistFunction · 0.92

Tested by 2

TestSSHKeysFunction · 0.68