Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/abousselmi/ssh-client
Tiny ssh client
https://github.com/abousselmi/ssh-client
Last synced: 19 days ago
JSON representation
Tiny ssh client
- Host: GitHub
- URL: https://github.com/abousselmi/ssh-client
- Owner: abousselmi
- License: mit
- Created: 2023-09-19T10:06:58.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-11-16T13:50:02.000Z (about 2 months ago)
- Last Synced: 2024-11-16T14:31:40.316Z (about 2 months ago)
- Language: Dockerfile
- Size: 4.88 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Tiny SSH client (openssh-client + expect)
![ci status](https://github.com/abousselmi/ssh-client/actions/workflows/main.yml/badge.svg)
## Alpine image
```console
docker run -it --rm ghcr.io/abousselmi/alpine-ssh-client sh
```## Bitnami Minideb image
```console
docker run -it --rm ghcr.io/abousselmi/minideb-ssh-client sh
```## Gitlab-CI sample
```yaml
ssh-to-server:
stage: ssh
image:
ghcr.io/abousselmi/alpine-ssh-client:latest
before_script:
- mkdir -p ~/.ssh
- chmod 700 ~/.ssh
- echo -e "Host *\n\tStrictHostKeyChecking no\n\n" > ~/.ssh/config
- echo "Revert [cat id_rsa | base64 -w0] and update ssh private key"
- echo "${SSH_PRIVATE_KEY}" | base64 -d > ~/.ssh/id_rsa
- chmod 600 ~/.ssh/id_rsa
script:
- ssh "${TARGET_USER}"@"${TARGET_IP}" echo "Hello World !"
```## Credits
This repo is inspired by [kroniak](https://github.com/kroniak/alpine-ssh-client)