Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I'm just getting started with Chef and have a few nodes in a private network that I need to first ssh into a gateway node to gain access to. For the moment i'm using purely password based authentication on both the gateway and the destination node.

CLIENT>      $ ssh GATEWAY
GATEWAY>     $ ssh DESTINATION
DESTINATION> $

When running the command knife bootstrap destination.node --ssh-gateway="gateway.node" where *.node is replaced with the full domain of the host. I get prompted for a password but am unable to gain access.

Bootstrapping Chef on destination.node
Failed to authenticate %USER% - trying password auth
Enter your password: 
ERROR: Net::SSH::AuthenticationFailed: %USER%

Perhaps i'm not quite understanding the correct usage of the knife gateway options? I have also tried supplying the --ssh-user and --ssh-password options with no luck.

share|improve this question
add comment

1 Answer

Try "yourusername@gateway.node"

Looking very briefly at the code in chef I did not see a way to pass in gateway password info. I would set up key-based access between your host and the gateway, anyway, only takes a minute and saves typing.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.