An open API service indexing awesome lists of open source software.

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.

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.