commit 943fe374ee511b3e31c54c4a3ba86ce95f37ea4b Author: Christian Becker Date: Fri Mar 8 21:04:47 2019 +0100 init diff --git a/Dockerfile b/Dockerfile new file mode 100755 index 0000000..72700f5 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,11 @@ +# start with Alpine Linux +FROM alpine:3.6 +MAINTAINER Christian Becker + +# system setup with "openssh-client" +RUN apk add --no-cache \ + openssh-client \ + && echo "! installation is finished !" + +# run openssh-client +ENTRYPOINT ["/usr/bin/ssh", "-oCiphers=+3des-cbc", "-oHostKeyAlgorithms=+ssh-dss", "-oKexAlgorithms=+diffie-hellman-group1-sha1", "-oUserKnownHostsFile=/dev/null", "-oStrictHostKeyChecking=no", "-oLogLevel=quiet"] diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..35c6a15 --- /dev/null +++ b/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2019 Christian Becker + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/README.md b/README.md new file mode 100644 index 0000000..dfee277 --- /dev/null +++ b/README.md @@ -0,0 +1,51 @@ +# ssh-legacy +Run an old ssh client with legacy options on Alpine Linux with Docker. + +You can use this client if you need to connect to a very old device that only supports legacy algorithms. Since some of the older algorithms have been found to be weak, newer versions of ssh clients leave them disabled. +WARNING! Please upgrade the old device if possible to a secure alternative! Only if you have no other option, use this client. + +--- + +## how to use it +If you just want to use the container from docker hub - proceed with step 3. + +### 1.) OPTIONAL: BUILD the docker container +``` +docker build -t christianbecker/ssh-legacy . +``` + +--- + +### 2.) OPTIONAL: RUN the container - just to try if it works +``` +docker run --rm -it christianbecker/ssh-legacy USER@HOST +``` +(should connect to your old device "HOST" as user "USER") + + +--- + +### 3.) USE the container +To use the container like a built in command in your system you can add the following alias to `.bash_aliases` or `.bashrc`: +``` +alias ssh-legacy='docker run --rm -it christianbecker/ssh-legacy' +``` + +Then simply use `ssh-legacy` (like "ssh") followed with options of your choice in bash console on docker host system. + + +--- + +## project links +[GitHub](https://github.com/christian-becker/ssh-legacy) +[Docker Hub](https://hub.docker.com/r/christianbecker/ssh-legacy/) + + +--- + +## Authors +* **Christian Becker** - [christian-becker](https://github.com/christian-becker) + +## License +This project is licensed under the MIT License - see the [LICENSE](https://github.com/christian-becker/ssh-legacy/blob/master/LICENSE) file for details. +