SSH Docker image running on Alpine Linux
2.4K
The Docker images (maurosoft1973/alpine-ssh) is based on the minimal Alpine Linux with SSH Version v.
OpenSSH is the premier connectivity tool for remote login with the SSH protocol. It encrypts all traffic to eliminate eavesdropping, connection hijacking, and other attacks. In addition, OpenSSH provides a large suite of secure tunneling capabilities, several authentication methods, and sophisticated configuration options.
The OpenSSH suite consists of the following tools:
OpenSSH is developed by a few developers of the OpenBSD Project and made available under a BSD-style license.
OpenSSH is incorporated into many commercial products, but very few of those companies assist OpenSSH with funding.
To make it easier to use, the image contains the following commands:
:amd64, :x86_64 - 64 bit Intel/AMD (x86_64/amd64):latest latest branch based (Automatic Architecture Selection):amd64, :x86_64 amd64 based on latest tag but amd64 architecture
LC_ALL: default locale (en_GB.UTF-8)TIMEZONE: default timezone (Europe/Brussels)SSH_SERVER: remote ssh serverSSH_PORT: remote ssh portSSH_USER: remote ssh userSSH_PASSWORD: remote ssh passwordSSH_PRIVATE_KEY: the ssh private key associate at the userstages:
- ssh
ssh-test:
stage: ssh
image: maurosoft1973/alpine-ssh
variables:
SSH_SERVER: 'ssh server'
SSH_PORT: '22'
SSH_USER: 'ssh remote user'
SSH_PASSWORD: 'ssh remote password'
only:
- master
script:
- echo "Check Uptime"
- ssh_remote_command -c="uptime"
- echo "Restart rsyslog Service"
- ssh_remote_command -c="service rsyslog restart"
- echo "Create Remote Director /var/www/pippo"
- ssh_remote_mkdir "/var/www/pippo"
- echo "Store the result command into local variable"
- DF=$(ssh_remote_command -c="df -h")
stages:
- ssh
ssh-test:
stage: ssh
image: maurosoft1973/alpine-ssh
variables:
SSH_SERVER: 'ssh server'
SSH_PORT: '22'
SSH_USER: 'ssh remote user'
SSH_PRIVATE_KEY: 'ssh privaye key of user'
only:
- master
script:
- echo "Check Uptime"
- ssh_remote_command -c="uptime"
- echo "Restart rsyslog Service"
- ssh_remote_command -c="service rsyslog restart"
- echo "Create Remote Director /var/www/pippo"
- ssh_remote_mkdir "/var/www/pippo"
Content type
Image
Digest
Size
8.5 MB
Last updated
over 5 years ago
docker pull maurosoft1973/alpine-ssh