Skip to content

Commit

Permalink
Try base64 ssh key
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathonsim committed Jan 15, 2018
1 parent 6ce30a0 commit a9b9c1e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions buildspec-4-sftpdeploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -80,9 +80,9 @@ phases:
- apt-get install -y openssh-client

#Setup the SSH key
- echo $SSH_KEY
- echo $SSH_KEY | base64 -d
- mkdir ~/.ssh
- echo $SSH_KEY | base64 > ~/.ssh/id_rsa
- echo $SSH_KEY | base64 -d > ~/.ssh/id_rsa
- chmod 700 ~/.ssh
- chmod 400 ~/.ssh/id_rsa

Expand Down

0 comments on commit a9b9c1e

Please sign in to comment.