{"id":15693109,"url":"https://github.com/code-hex/ssh-gpt","last_synced_at":"2026-04-02T02:44:04.493Z","repository":{"id":172258811,"uuid":"649056985","full_name":"Code-Hex/ssh-gpt","owner":"Code-Hex","description":"Fictitious SSH Server - Powered by OpenAI ChatGPT","archived":false,"fork":false,"pushed_at":"2023-06-03T17:18:05.000Z","size":8,"stargazers_count":3,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-28T18:51:48.791Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Code-Hex.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-06-03T16:27:45.000Z","updated_at":"2024-08-20T19:56:00.000Z","dependencies_parsed_at":null,"dependency_job_id":"20a72bd1-3f0b-4dca-a198-7229fcc996f8","html_url":"https://github.com/Code-Hex/ssh-gpt","commit_stats":null,"previous_names":["code-hex/ssh-gpt"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Code-Hex%2Fssh-gpt","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Code-Hex%2Fssh-gpt/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Code-Hex%2Fssh-gpt/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Code-Hex%2Fssh-gpt/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Code-Hex","download_url":"https://codeload.github.com/Code-Hex/ssh-gpt/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249042648,"owners_count":21203329,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":[],"created_at":"2024-10-03T18:41:35.300Z","updated_at":"2026-04-02T02:44:04.462Z","avatar_url":"https://github.com/Code-Hex.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Fictitious SSH Server - Powered by OpenAI GPT-4\n\nThis is a program to simulate a fictitious SSH Server using Open AI's [Create chat completion API](https://platform.openai.com/docs/api-reference/chat/create) ([GPT-4](https://openai.com/gpt-4)). This has been created for fun and experimental purposes.\n\nPlease do not run this server in a production environment, as it has not been designed with security considerations! Keep it confined to your own machine for playing around :bow:\n\nThe current list of features that can be executed is as follows:\n\n- Execute Bash on the ssh server.\n- SFTP server.\n\nhttps://github.com/Code-Hex/ssh-gpt/assets/6500104/5ff51752-364a-43d7-a8c8-853d6c86564d\n\n## How to Use\n\nThis program is written in [Go](https://go.dev/) and requires Go 1.20 or higher for building. Please clone the repository and build.\n\nYou will need your Open AI API key to run this program. Set the API key in the environment variable `OPENAI_API_KEY` and execute.\n\n```sh\n$ git clone https://github.com/Code-Hex/ssh-gpt.git\n$ cd ssh-gpt\n$ go build .\n$ OPENAI_API_KEY=\"...\" ./ssh-gpt # Replace the ... part with the API key and execute!\n```\n\nThe options available for this program are as follows:\n\n```\n-s  hostname of fictitious ssh server (default:\"ssh.netflix.net\")\n-bg background for fictitious ssh server (default:\"This is exposed by Netflix to share exclusive materials with their fans, includings a bunch of folders, movies, txt files and more.\")\n```\n\n### Bash Simulation\n\nAfter setting up an SSH server using the `ssh-gpt` program, you can connect to a server that simulates Bash execution by using an ssh client as follows:\n\n```sh\n$ ssh 127.0.0.1 -p 2222 -o \"StrictHostKeyChecking=no\"\n\u003e ls\nexclusive_materials/  movies/  txt_files/  fan_art/  behind_the_scenes/\n\u003e \n```\n\n### SFTP Simulation\n\nCurrently, it only supports file transfers using the `scp` command. However, it will fail most of the time. The `ssh-gpt` program will output logs to the screen during execution, so you can observe how it processes during transfers.\n\nExample:\n\n```sh\n$ scp -v -o \"StrictHostKeyChecking=no\" -P 2222 -r 127.0.0.1:/home/netflix_fan/trivia_and_easter_eggs/trivia1.txt trivia1.txt\n```\n\nYou can also connect with a GUI client like [Cyberduck](https://blog.cyberduck.io/), but it will probably fail to get the directory list. That's a challenge for the future. (I'm waiting for someone's nice idea! :smile:)\n\nCurrently, the simulation is successful for most SFTP interactions, but it mainly fails in the content generation part, such as `SSH_FXP_HANDLE` and `SSH_FXP_DATA`.\n\n## LICENSE\n\nMIT\n\n## Author\n\n[@codehex](https://twitter.com/codehex)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcode-hex%2Fssh-gpt","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcode-hex%2Fssh-gpt","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcode-hex%2Fssh-gpt/lists"}