Sign inSign up

luki42/ssh

By luki42

•Updated over 2 years ago

A super lightweight Docker SSH client image

Image
0

564

luki42/ssh repository overview

⁠Docker SSH-Client image

Updated on a weekly basis.

⁠Source repo:

https://gitlab.heili.eu/lukas/ssh-docker⁠

⁠Example Gitlab job:

Test_Deploy:
  stage: deploy
  image: luki42/ssh:latest
  needs:
    - Frontend_Tests
    - Backend_Tests
    - Debian_Server
  only:
    - master
  script:
    - eval $(ssh-agent -s)
    - echo "$SSH_PRIVATE_KEY" | ssh-add -
    - mkdir -p ~/.ssh
    - '[[ -f /.dockerenv ]] && echo -e "Host *\n\tStrictHostKeyChecking no\n\n" > ~/.ssh/config'
    - scp deb/Testpackage.deb [email protected]:/tmp/
    - ssh [email protected] "DEBIAN_FRONTEND=noninteractive apt-get --reinstall  -y -qq install /tmp/Testpackage.deb && rm /tmp/Testpackage.deb"

Tag summary

Content type

Image

Digest

sha256:0ea6f4cd4…

Size

3.1 MB

Last updated

over 2 years ago

docker pull luki42/ssh