Ci¶
- addKeyToKnownHostsCT(hostName)[source]¶
Checks if the public key to hostName exists If the public key of the hostName does not exist, adds the public key to the known hosts
- USAGE
keyAdded = addKeyToKnownHosts (hostName)
- OPTIONAL INPUT
hostName – Name of the host. If not provided or empty or ‘ ‘ then it checks for the host: github.com
- OUTPUT
keyAdded – Boolean (true if key has been added successfully or exists)