mirror of
https://github.com/linuxkit/linuxkit.git
synced 2025-09-25 21:58:37 +00:00
Use the user's ssh key automatically in ssh examples
This requires moby tool update to support `~` in paths, but makes everything much nicer. Signed-off-by: Justin Cormack <justin.cormack@docker.com>
This commit is contained in:
@@ -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}
|
||||
|
@@ -72,6 +72,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}
|
||||
|
@@ -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
|
||||
|
Reference in New Issue
Block a user