Any knife option to use SSH public/private keys already installed?


#1

Instead of using SSH password, I prefer to use SSH public/private key feature. It’s safer for my work environment. Does knife have an option to use an already installed private key between the workstation and the node?


#2

yes of course -
knife ssh -i /path/to/private/key …


#3

knife ssh --help


#4

knife --help does not show the -i option. It seems to be highly incomplete. The knife on-line documentation shows it and seems to be complete.
Colbert


#5

you need to type the complete command:
“knife ssh --help” not “knife --help” to show ssh options
also might be subject to the version of knife.


#6

This is correct, nearly every knife command has options that are not relevant to other commands and there are lots of commands so knife --help just gives you the universal options and list of commands.