[RESOLVED] Error while bootstrapping Linux node


I am trying to bootstrap one of the Linux node with this command

knife bootstrap 192.xx.xx.xx -x root -p xxxx -N mynode

I am getting an error ERROR: Errno :: EHOSTUNREACH : No route to host - connect(2) for 192.xx.xx.xx

I am a getting started guy in chef, if any solutions for this error greatly appreciated.


Found the solution. -p is for port number, Changed to -P and everything working fine