{"id":19909066,"url":"https://github.com/dyne/shuriken","last_synced_at":"2026-05-12T18:34:01.394Z","repository":{"id":141086442,"uuid":"85438620","full_name":"dyne/shuriken","owner":"dyne","description":"A tool to throw confs around like a ninja","archived":false,"fork":false,"pushed_at":"2021-08-30T15:11:33.000Z","size":171,"stargazers_count":2,"open_issues_count":0,"forks_count":2,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-01-11T22:22:25.398Z","etag":null,"topics":["config","server","speed","ssh"],"latest_commit_sha":null,"homepage":null,"language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dyne.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2017-03-18T23:29:43.000Z","updated_at":"2021-08-30T15:11:36.000Z","dependencies_parsed_at":"2023-03-17T15:00:18.469Z","dependency_job_id":null,"html_url":"https://github.com/dyne/shuriken","commit_stats":{"total_commits":18,"total_committers":1,"mean_commits":18.0,"dds":0.0,"last_synced_commit":"9ae5a67c1c859f11acbfe98e0fdf1e50bd0d401d"},"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dyne%2Fshuriken","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dyne%2Fshuriken/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dyne%2Fshuriken/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dyne%2Fshuriken/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dyne","download_url":"https://codeload.github.com/dyne/shuriken/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241335775,"owners_count":19946117,"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":["config","server","speed","ssh"],"created_at":"2024-11-12T21:14:17.110Z","updated_at":"2025-11-24T06:02:34.155Z","avatar_url":"https://github.com/dyne.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Shuriken\n\n\u003cimg src=\"shuriken_shinobi.jpg\" alt=\"shinobi nostalgia\" title=\"shinobi nostalgia\"\u003e\n\n*A tool to throw confs around like a ninja*\n\n[![software by Dyne.org](https://www.dyne.org/wp-content/uploads/2015/12/software_by_dyne.png)](http://www.dyne.org)\n\n## Why another script?\n\nShuriken is a tool to facilitate the tedious task of copying config files and ssh keys across servers; to do so it follows a very minimalist approach, leveraging the power of script generation directly in the clipboard and ready to paste in a terminal, rather than dealing with file transfers and file permissions.\n\nWhen a file is imported from stdin, Shuriken detects what it is and imports it into its repository (usually in `~/.shuriken`) where all public keys and configurations are stored.\n\nWhen an ssh key is exported (from the shuriken repository or an absolute path to a file) Shuriken will prepare a script ready to be pasted in from the clipboard, containing commands to create the user if doesn't exists, copy the ssh key file in place and set the correct permissions.\n\n## Dependencies\n\nMake sure both **zsh** and **xclip** are installed.\n\n## Usage\n\nCreate a `~/.shuriken` directory and then a `keys` subdir inside it\n\n```\nmkdir -p ~/.shuriken/keys\n```\n\nPlace the public keys of your friends and colleagues inside it, one file per person with a list of ssh public keys inside, one per line.\n\nRun `shuriken my-friends-name` for any file in `~/.shuriken/keys/my-friends-name.pub` (the .pub extension is mandatory) this will place a script into your clipboard that is ready to be run on the root shell of another server. The script will:\n1. create a `my-friends-name` user and its home directory\n2. upload the ssh public key of my-friends-name so that he or she can access the account\n\n\u003cimg src=\"shuriken_origami.png\" alt=\"shuriken origami\" title=\"shuriken origami\"\u003e\n\n# License\n\nCopyright (C) 2017 Dyne.org Foundation\n\nShuriken is designed, written and maintained by Denis Roio \u003cjaromil@dyne.org\u003e\n\nThis source code is free software; you can redistribute it and/or\nmodify it under the terms of the GNU Public License as published by\nthe Free Software Foundation; either version 3 of the License, or\n(at your option) any later version.\n\nThis source code is distributed in the hope that it will be useful,\nbut WITHOUT ANY WARRANTY; without even the implied warranty of\nMERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  Please refer\nto the GNU Public License for more details.\n\nYou should have received a copy of the GNU Public License along with\nthis source code; if not, write to: Free Software Foundation, Inc.,\n675 Mass Ave, Cambridge, MA 02139, USA.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdyne%2Fshuriken","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdyne%2Fshuriken","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdyne%2Fshuriken/lists"}