Les Partages de Memiks
Tag cloud
Picture wall
Daily
RSS Feed
  • RSS Feed
  • Daily Feed
  • Weekly Feed
  • Monthly Feed
Filters

Links per page

  • 20 links
  • 50 links
  • 100 links

Filters

Untagged links
Docker - alpine ssh server for ARMHF https://github.com/memiks/alpinearmhf-sshd
Mon Feb 13 23:37:36 2017 archive.org
QRCode
thumbnail

Hello,

j'ai fait une petite modification d'un github pour avoir mon image de 2Mo d'alpine avec serveur ssh (pratique pour des images docker toutes petites)

le README:

Alpine ARMHF ssh server

Instructions

Key based usage (prefered)

Copy the id_rsa.pub from your workstation to your dockerhost.
On the dockerhost create a volume to keep your authorized_keys.

tar cv --files-from /dev/null | docker import - scratch
docker create -v /root/.ssh --name ssh-container scratch /bin/true
docker cp id_rsa.pub ssh-container:/root/.ssh/authorized_keys

For ssh key forwarding use ssh-agent on your workstation.

ssh-agent
ssh-add id_rsa

Then the start sshd service on the dockerhost (check the tags for alpine versions)

docker run -p 4848:22 --name alpinearmhf-sshd --hostname alpinearmhf-sshd --volumes-from ssh-container  -d alpinearmhf-sshd

Password based

docker run -p 4848:22 --name alpinearmhf-sshd --hostname alpinearmhf-sshd -d alpinearmhf-sshd
docker exec -ti docker-sshd passwd

From your workstation

ssh to your new docker environment, with an agent -i option is not needed

ssh -p 4848 -i id_rsa root@<dockerhost>
alpine linux docker ssh server image
4756 links, including 1670 private
Shaarli - The personal, minimalist, super-fast, database free, bookmarking service by the Shaarli community - Theme by kalvn