{"id":20113803,"url":"https://github.com/mkj/sunset","last_synced_at":"2025-04-06T04:12:13.790Z","repository":{"id":59918022,"uuid":"540063088","full_name":"mkj/sunset","owner":"mkj","description":"SSH for Rust, no_std and elsewhere","archived":false,"fork":false,"pushed_at":"2024-11-29T06:07:07.000Z","size":2048,"stargazers_count":46,"open_issues_count":2,"forks_count":6,"subscribers_count":4,"default_branch":"main","last_synced_at":"2025-03-30T03:07:02.770Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mkj.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":"2022-09-22T16:06:12.000Z","updated_at":"2025-02-12T18:38:09.000Z","dependencies_parsed_at":"2023-02-10T00:31:00.537Z","dependency_job_id":"5f060087-97ea-49d6-8dd9-5409aee060aa","html_url":"https://github.com/mkj/sunset","commit_stats":{"total_commits":284,"total_committers":1,"mean_commits":284.0,"dds":0.0,"last_synced_commit":"a01b7ca62d88d4498c5bc8ebe2d85325aacc69ea"},"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mkj%2Fsunset","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mkj%2Fsunset/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mkj%2Fsunset/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mkj%2Fsunset/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mkj","download_url":"https://codeload.github.com/mkj/sunset/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247430872,"owners_count":20937874,"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-11-13T18:26:01.549Z","updated_at":"2025-04-06T04:12:13.678Z","avatar_url":"https://github.com/mkj.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Sunset SSH\n\nA SSH client and server implementation. It is intended to be very flexible to\nembed pretty much anywhere, I'm collecting possible use cases in\n[discussions](https://github.com/mkj/sunset/discussions/1). Don't hesitate to\nsuggest something!\n\n**This software is in an early stage. It is suitable for some applications\nbut will certainly have API changes**\n\n- `sunset` (this toplevel) is the core SSH implementation. It provides a\n  non-async API, runs with `no_std` and no alloc.\n\n- [`sunset-embassy`](embassy) - async SSH client and server library, also\n  `no_std`. This uses [Embassy](https://embassy.dev/) crate but is async\n  executor agnostic.\n\n- [`embassy/demos`](embassy/demos) has demos with Embassy executor for wifi on a Raspberry Pi\n  [Pico W](embassy/demos/picow) or a\n  [Linux tap device on `std`](embassy/demos/std) running locally.\n\n  At present the Pico W build is around 150kB binary size\n  (plus ~200KB [cyw43](https://github.com/embassy-rs/cyw43/) wifi firmware),\n  using about 15kB RAM per concurrent SSH session (max stack size not confirmed).\n\n- [`sunset-async`](async/) adds functionality to use Sunset as a normal SSH client or\n  server async library in normal Rust (not `no_std`). This uses Tokio or async-std.\n\n  The [examples](async/examples) include a Linux commandline SSH client `sunsetc`.\n  It works as a day-to-day SSH client.\n\n## SSH Features\n\nWorking:\n\n- Shell or command connection\n- Password and public key authentication\n- ed25519 signatures\n- curve25519 key exchange\n- chacha20-poly1305, aes256-ctr ciphers\n- hmac-sha256 integrity\n- rsa (`std`-only unless someone writes a `no_std` crate)\n- `~.` client escape sequences\n\nDesirable:\n\n- TCP forwarding\n- dh-group14 (probably `std`-only, need to investigate crates)\n- Perhaps aes256-gcm\n- Perhaps ECDSA, hardware often supports it ahead of ed25519\n- SFTP\n\n## Rust versions\n\nAt present Sunset will build with latest stable (1.75 at time of writing).\n\n## Safety\n\nSunset uses `forbid(unsafe)`, apart from `sunset-async` which requires `unsafe`\nfor Unix interactions.\n\nRelease builds should not panic, instead returning `Error::bug()`.\n`debug_assert!` is used in some places for invariants during testing or\nfuzzing.\n\nSome attempts are made to clear sensitive memory after use, but stack copies\nwill not be cleared.\n\n## Author\n\nMatt Johnston \u003cmatt@ucc.asn.au\u003e\n\nIt's built on top of lots of other work, particularly Embassy, the rust-crypto crates,\nVirtue, smoltcp, and Salty.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmkj%2Fsunset","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmkj%2Fsunset","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmkj%2Fsunset/lists"}