https://github.com/steveb/ssh2telnet
A container image which runs an SSH server and proxies connections to a telnet server.
https://github.com/steveb/ssh2telnet
Last synced: about 1 year ago
JSON representation
A container image which runs an SSH server and proxies connections to a telnet server.
- Host: GitHub
- URL: https://github.com/steveb/ssh2telnet
- Owner: steveb
- Created: 2025-04-03T21:26:04.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-04-08T23:46:28.000Z (over 1 year ago)
- Last Synced: 2025-06-13T11:46:47.157Z (about 1 year ago)
- Language: Shell
- Size: 1.95 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
ssh2telnet
==========
A container image which runs an SSH server and proxies connections to a telnet
server.
Telnet related environment variables
------------------------------------
- `HOST` address of telnet host
- `USERNAME` used in `telnet.sh` expect login script
- `PASSWORD` used in `telnet.sh` expect login script
SSH related environment variables
---------------------------------
- `PASSWORD` password set for user account
- `KEY` string of public key to connect to ssh
Building
--------
Run the following to build::
buildah bud -t --build-arg user=switch ssh2telnet:latest .
Running
-------
Create an environment file `env.bash`::
USERNAME=manager
PASSWORD=
HOST=telnet.example.com
KEY=
Run the container::
podman run -p 2222:2222 --env-file ./env.bash --rm ssh2telnet:latest
Connect to the container::
ssh switch@localhost -p 2222
telnet.sh
---------
This is an `expect` script specific to a telnet connection that requires a
login. It can be customised by replacing in the image or bind mounting an
alternative.