Skip to content

Instantly share code, notes, and snippets.

Created June 24, 2012 00:54
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
What would you like to do?
Multiline Javascript
var publicKey = our_data.servers[''].publicKey.join('\n');
Copy link

maksemuz commented Dec 12, 2016

Hi, your line does not work for me, but leads me the right way :)
This corrected line works perfectly:

var publicKey = our_data.servers[''].publicKey.join("\n");

My case is lot of keys in one .ssh/authorized_keys file in one chef data_bag.
Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment