Can SSH Key settings be applied at the farm level?

Laurie Kepford's Avatar

Laurie Kepford

28 Aug, 2016 05:06 PM

Can SSH Key settings be applied at the farm level? Or are they set at the Environment level only. (AWS)

This does seem to be the case. I am asking because I am importing some existing AWS instances. Some of them, like our GIT server use a different SSH Key then say the Backup Server. I have put the servers in separate farms, but don't see a way to set the SSH-key at the farm level.

  1. Support Staff 1 Posted by Vitaliy Demidov on 29 Aug, 2016 07:44 AM

    Vitaliy Demidov's Avatar

    Scalr creates one key pair per Farm. might be helpful.


  2. Support Staff 2 Posted by Marat Komarov on 29 Aug, 2016 07:55 AM

    Marat Komarov's Avatar

    Scalr assigns SSH key only for newly launched servers (e.g. using AWS keypair)
    Keypair is generated per Farm + Cloud location. Key is provisioned on the server by a cloud itself.

    The SSH keys page doesn't support keys creation / assignment.


  3. 3 Posted by Laurie Kepford on 29 Aug, 2016 03:06 PM

    Laurie Kepford's Avatar

    I want to use my own keys. So I can go to governance and set that
    variable. But it seems to apply at the environment level not the farm
    level. If Scalr can automatically generate keys at the farm level than I
    should be able to set my prefered key at the farm level as well. However,
    it appears that does not work. If I change it while I am in one farm, then
    go to another farm, it is changed there as well.

  4. Support Staff 4 Posted by marc on 31 Aug, 2016 04:44 PM

    marc's Avatar

    Hi Laurie,

    Although what you are describing is not currently an option within Scalr, you should be able to work around this situation by using orchestration/script execution/manually injecting your prefered SSH key on the machine in question. This could be achieved with somehting like the following:

    #!/bin/bash sudo echo "key_goes_here" >> /root/.ssh/authorized_keys
    sudo cat /root/.ssh/authorized_keys

    Let us know if you have any questions.

    Many thanks,
    Wm. Marc O'Brien
    Scalr Technical Support

  5. marc closed this discussion on 01 Sep, 2016 05:40 PM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts


? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac