Skip to content

Commit 3b83f17

Browse files
debos: install and enable openssh-server for SSH access
Signed-off-by: Niranjan <nvemana@qti.qualcomm.com>
1 parent 2887a13 commit 3b83f17

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

debos-recipes/qualcomm-linux-debian-rootfs.yaml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -189,6 +189,8 @@ actions:
189189
# convenience networking commands (arp, ifconfig, route etc.)
190190
- net-tools
191191
- openssh-client
192+
# convenience for ssh
193+
- openssh-server
192194
# lspci
193195
- pciutils
194196
- rfkill
@@ -201,6 +203,16 @@ actions:
201203
- vulkan-tools
202204
- wget
203205

206+
- action: run
207+
description: Enable and configure SSH
208+
chroot: true
209+
command: |
210+
set -eux
211+
systemctl enable ssh
212+
sed -i 's/^#\?PasswordAuthentication.*/PasswordAuthentication yes/' /etc/ssh/sshd_config
213+
sed -i 's/^#\?PermitRootLogin.*/PermitRootLogin no/' /etc/ssh/sshd_config
214+
ssh-keygen -A
215+
204216
- action: run
205217
description: Add default user to docker group
206218
chroot: true

0 commit comments

Comments
 (0)