Merge pull request #2027 from justincormack/mobyup

Use the user's ssh key automatically in ssh examples
This commit is contained in:
Justin Cormack
2017-06-15 13:33:35 -07:00
committed by GitHub
8 changed files with 22 additions and 8 deletions

View File

@@ -80,6 +80,8 @@ services:
rootfsPropagation: shared
files:
- path: root/.ssh/authorized_keys
contents: '# Your ssh key goes here'
source: ~/.ssh/id_rsa.pub
mode: "0600"
optional: true
- {path: etc/cni, directory: true}
- {path: opt/cni, directory: true}

View File

@@ -76,6 +76,8 @@ services:
rootfsPropagation: shared
files:
- path: root/.ssh/authorized_keys
contents: '# Your ssh key goes here'
source: ~/.ssh/id_rsa.pub
mode: "0600"
optional: true
- {path: etc/cni, directory: true}
- {path: opt/cni, directory: true}

View File

@@ -18,4 +18,6 @@ services:
image: "linuxkit/sshd:abc1f5e096982ebc3fb61c506aed3ac9c2ae4d55"
files:
- path: root/.ssh/authorized_keys
contents: '#your ssh key here'
source: ~/.ssh/id_rsa.pub
mode: "0600"
optional: true