{"id":21903503,"url":"https://github.com/graboskyc/faketelnet","last_synced_at":"2026-05-15T23:31:56.433Z","repository":{"id":50228620,"uuid":"64340579","full_name":"graboskyc/FakeTelnet","owner":"graboskyc","description":"This is a simple utility that will simulate an SSH endpoint as a Ciena, Cisco, or Juniper with a very small command set.","archived":false,"fork":false,"pushed_at":"2016-08-02T17:06:33.000Z","size":25,"stargazers_count":5,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2026-03-27T03:46:16.365Z","etag":null,"topics":["ciena","cisco","docker","juniper","simulator","ssh","ssh-endpoint"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/graboskyc.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-07-27T20:44:10.000Z","updated_at":"2025-04-15T12:33:57.000Z","dependencies_parsed_at":"2022-08-31T08:50:44.638Z","dependency_job_id":null,"html_url":"https://github.com/graboskyc/FakeTelnet","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/graboskyc/FakeTelnet","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/graboskyc%2FFakeTelnet","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/graboskyc%2FFakeTelnet/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/graboskyc%2FFakeTelnet/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/graboskyc%2FFakeTelnet/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/graboskyc","download_url":"https://codeload.github.com/graboskyc/FakeTelnet/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/graboskyc%2FFakeTelnet/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33083528,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-15T20:25:35.270Z","status":"ssl_error","status_checked_at":"2026-05-15T20:25:34.732Z","response_time":103,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ciena","cisco","docker","juniper","simulator","ssh","ssh-endpoint"],"created_at":"2024-11-28T15:28:01.330Z","updated_at":"2026-05-15T23:31:56.415Z","avatar_url":"https://github.com/graboskyc.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# About This Repo\nThis is a simple utility that will simulate an SSH endpoint as a Ciena, Cisco, or Juniper with a very small command set.\n\n# To Run This\n## System prep\n* Download and install Linux (here Ubuntu)\n* Install docker `apt-get install docker.io`\n* Note that to do installs and start containers, you must be `root` or use the `sudo` command prefixed to each one\n* If installing Linux onto a VM, make sure the network adaptor is in the correct mode depending on use case, such as bridged if you want to SSH in from another machine than the VM host\n* If you want to start the container at boot, [follow this tutorial](https://docs.docker.com/engine/admin/host_integration/) after getting the container onto your system via the \"From Source\" or \"From DockerHub\" sections below\n\n\n## From Source\n* Download this repo somewhere (here `/root/FakeTelnet`)\n* Change to the directory `cd /root/FakeTelnet`\n* Build the container `docker build -t gskyft .`\n* Start the container `docker run -t -i -d -p 2222:22 --name ft gskyft`\n* After that, you should be able to ssh to the server on port 2222\n\n## From DockerHub\n* Start the container `docker run -t -i -d -p 2222:22 --name ft graboskyc/faketelnet`\n* After that, you should be able to ssh to the server on port 2222\n\n\n# Command Set\n## Juniper\n * SSH into the device on port 2222 using username `juniper` and password `juniper0`\n * Enter configuration mode (`configure`)  \n * Set root password (`set system root-authentication plain-text-password newpassword`)\n * Hostname is customizable and when you commit, it will set the host name in the prompt  \n * Set hostname (`set system host-name JuniperMX480-01`)  \n * Set domain (`set system domain-name example.com`)  \n * Set default route (`set system backup-router 10.0.0.1`)  \n * Set default route (`set routing-options static route default nexthop 10.0.0.1 retain noreadvertise`)  \n * Save configuration (`commit`)\n * Kill connection (`exit`)\n\n## Cisco\n * SSH into the device on port 2222 using username `cisco` and password `cisco`\n * Show interfaces (`show ip interface brief`)\n * Show interfaces (`show interface descriptions`)\n * Show terminal server hosts (`show hosts`)\n * Enter configure mode (`configure terminal`)\n * Add a new terminal server host (`ip host ciena3916 2048 192.168.1.1`)  \n * Exit configure mode (`end`)  \n * Save configuration (`write memory`)  \n * Enter any bad command and it will spit it back to you\n * Kill connection (`exit`)\n\n## Ciena\n * SSH into the device on port 2222 using username `su` and password `wwp`\n * Create a VLAN (`vlan create vlan 100`)\n * Note that all VLAN numbers and ports (1-6) are usable for all these commands. Also note you must create the VLAN before adding it to a port. The script does not have logic to handle this  \n * Add VLAN to a port (`vlan add vlan 100 port 2`)  \n * See list of VLANs on which port (`vlan show`)  \n * Show statistics with fake counters (`port show port 2 statistics`) \n * All ports share the same fake statistics. Once cleared, they will be zero for the rest of the SSH session. \n * Reset fake counter statistics (`port clear port 2 statistics`)  \n * Remove VLAN from port (`vlan remove vlan 100 port 2`)\n * Be sure to remove the VLAN from the port before deleting. There is no logic to handle this  \n * Delete a VLAN (`vlan delete vlan 100`)  \n * Save configuration (`configuration save`)  \n * Enter any bad command and it will spit it back to you\n * Kill connection (`exit`)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgraboskyc%2Ffaketelnet","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgraboskyc%2Ffaketelnet","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgraboskyc%2Ffaketelnet/lists"}