Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
 Post subject: SSH Keys
PostPosted: Thu Aug 13, 2015 9:01 am 
Offline
Newbie

Joined: Thu Aug 13, 2015 8:58 am
Posts: 2
Hi All,

I guess this question has been asked for many times but I did not find an answer.

I need my Linux hosts to have SSH keys ready (so i can deploy chef)

How can i define the authorized keys to the machine will be installed with them?

Thanks :)


Top
   
 Post subject: Re: SSH Keys
PostPosted: Thu Aug 13, 2015 12:10 pm 
Offline
Linode Staff

Joined: Wed Jul 01, 2015 10:33 am
Posts: 59
You can read about setting up SSH authentication here: https://www.linode.com/docs/security/us ... n-with-ssh


Top
   
 Post subject: Re: SSH Keys
PostPosted: Thu Aug 13, 2015 3:05 pm 
Offline
Junior Member

Joined: Thu Jun 03, 2004 4:04 pm
Posts: 42
adir is probably referring to other cloud providers that allow you to seed a standard image with a known SSH key so that installs (via chef for example) can be automated. Linode doesn't have that functionality specifically but you can easily craft something up yourself using Linode https://linode.com/StackScripts. There are a bunch of community stack scripts available and I'm sure some of them already do what you are looking for but I didn't look carefully.

This script might be a good place to start: https://www.linode.com/stackscripts/view/165


Top
   
 Post subject: Re: SSH Keys
PostPosted: Wed Aug 19, 2015 10:24 am 
Offline
Linode Staff

Joined: Sat Oct 05, 2013 7:50 pm
Posts: 8
Website: http://www.thetechstewart.com
Twitter: thetechstewart
in addition to setting up custom StackScripts to deploy Linodes with keys in place, you could also use the Linode Vagrant provider plugin.

https://linode.com/docs/applications/co ... vironments

_________________
James Stewart
Linode Docs Team


Top
   
 Post subject: Re: SSH Keys
PostPosted: Wed Aug 19, 2015 11:09 am 
Offline
Linode Staff
User avatar

Joined: Tue Apr 15, 2003 6:24 pm
Posts: 3090
Website: http://www.linode.com/
Location: Galloway, NJ
No need to mess with StackScripts or Vagrant prioviders. You can do this via the Linode API:

https://www.linode.com/api/linode/linod ... stribution

Specifically, the 'rootSSHKey' optional parameter.

-Chris


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic


Who is online

Users browsing this forum: No registered users and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
RSS

Powered by phpBB® Forum Software © phpBB Group