{"id":13495945,"url":"https://github.com/ibizaman/pass-ssh","last_synced_at":"2025-04-08T12:32:17.963Z","repository":{"id":22293243,"uuid":"95851970","full_name":"ibizaman/pass-ssh","owner":"ibizaman","description":"A pass extension that lets you quickly create ssh keypairs and output public keys using fzf or rofi.","archived":false,"fork":false,"pushed_at":"2021-12-19T04:37:07.000Z","size":27,"stargazers_count":15,"open_issues_count":2,"forks_count":3,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-23T12:41:32.635Z","etag":null,"topics":["pass","pass-extension","password","password-manager","password-store"],"latest_commit_sha":null,"homepage":null,"language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ibizaman.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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":"2017-06-30T05:29:11.000Z","updated_at":"2024-01-28T21:24:47.000Z","dependencies_parsed_at":"2022-08-29T22:11:27.069Z","dependency_job_id":null,"html_url":"https://github.com/ibizaman/pass-ssh","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ibizaman%2Fpass-ssh","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ibizaman%2Fpass-ssh/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ibizaman%2Fpass-ssh/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ibizaman%2Fpass-ssh/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ibizaman","download_url":"https://codeload.github.com/ibizaman/pass-ssh/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247842805,"owners_count":21005350,"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":["pass","pass-extension","password","password-manager","password-store"],"created_at":"2024-07-31T19:01:39.994Z","updated_at":"2025-04-08T12:32:17.629Z","avatar_url":"https://github.com/ibizaman.png","language":"Shell","funding_links":[],"categories":["Shell","Extensions"],"sub_categories":["Generators"],"readme":"# pass ssh 0.2 [![build status][build-img]][build-url]\n\nA [pass](https://www.passwordstore.org/) extension that creates ssh\nkeys with an automatically generated passphrases stored in pass and\noutputs the public key using [fzf](https://github.com/junegunn/fzf) or\n[rofi](https://davedavenport.github.io/rofi/).\n\n\n## Use case\n\nThe examples suppose you use the\n[`xclip`](https://github.com/astrand/xclip) clipboard manager:\n\n### Create a new ssh key\n\nRun `pass ssh`, this will show all existing keys under `~/.ssh`.\nCreate a new one by entering the name of a key that does not exist,\nfor example `mynewkey`. `pass ssh` will then generate a new password\nfor it in the password store under `/sshkey-passphrase/mynewkey` and\nuse that passphrase as the ssh key's passphrase. Finally, `pass ssh`\nwill output the ssh key's public key on stdout.\n\n### Use the new ssh key\n\nConnect to a host using the ssh key, for example `ssh -i\n~/.ssh/mynewkey myhost`. `ssh` will then ask for a passphrase, the one\nstored in the password store at `/sshkey-passphrase/mynewkey`. You can\nthen simply copy the passphrase with `pass --clip\n/sshkey-passphrase/mynewkey` and copy paste it to the `ssh` passphrase\nprompt.\n\n\n## Usage\n\n```\npass ssh [--help,-h]\n    [--fzf,-f]|[--rofi,-r] [--ssh-dir \u003cs\u003e,-d \u003cs\u003e]\n    [--pass-prefix \u003cs\u003e,-p \u003cs\u003e] [--passphrase-no-symbols,-n] [--passphrase-length \u003cs\u003e,-l \u003cs\u003e]\n    [--ssh-t \u003cs\u003e] [--ssh-b \u003cs\u003e]\n```\n\n`pass-ssh` provides an interactive solution to create ssh private and\npublic keypairs with passphrases stored in `pass` as well as write the\npublic key to stdout. It will show all available ssh keys in either\n`fzf` or `rofi`, wait for the user to select one and write the public\nkey to stdout.\n\nThe user can select `fzf` or `rofi` by giving either `--fzf`\nor `--rofi`. By default, `rofi` will be selected and\n`pass-ssh` will fallback to `fzf`.\n\nIf the selected key file does not exist under the directory given by\n`--ssh-dir`, first a passphrase will be generated in `pass`\nunder the prefix given by `--pass-prefix`. Specific passphrase\nlength can be given using `--passphrase-length` and no symbols can\nbe activated with `--passphrase-no-symbols`. Second, a new private\nand public keypair will be generated with the aforementioned passphrase\nand with `ssh-keygen`'s `-t` and `-b` option given\nrespectively by `--ssh-t` and `--ssh-b`. Lastly, the public key\nis written to stdout.\n\nIf the selected key exists, the public key is simply written to stdout.\n\n\n## Options\n* `-f`, `--fzf` Use fzf to select pass-name.\n* `-r`, `--rofi` Use rofi to select pass-name.\n* `-d`, `--ssh-dir` Directory holding ssh keyfiles, default $HOME/.ssh.\n* `-p`, `--pass-prefix` Prefix under which passphrase are stored in pass, default sshkey-passphrase.\n* `-n`, `--no-symbols` Do not use any non-alphanumeric characters.\n* `-l \u003csize\u003e`, `--length=\u003csize\u003e` Provide a password length.\n* `--ssh-t` ssh-keygen's -t option, the type of key to create.\n* `--ssh-b` ssh-keygen's -b option, the number of bits in the key to create.\n* `-h`, `--help` Show usage message.\n\n\n## Installation\n\n\n### ArchLinux\n\n```sh\npacaur -S pass-ssh\n```\n\n\n### Other linuxes\n\n```sh\ngit clone https://github.com/ibizaman/pass-ssh/\ncd pass-ssh\nsudo make install\n```\n\n\n### Requirements\n\n* `pass 1.7.0` or greater.\n* If you do not want to install this extension as system extension, you need to\nenable user extension with `PASSWORD_STORE_ENABLE_EXTENSIONS=true pass`. You can\ncreate an alias in `.bashrc`: `alias pass='PASSWORD_STORE_ENABLE_EXTENSIONS=true pass'`\n\n\n## Contribution\n\nFeedback, contributors, pull requests are all very welcome.\n\n\n### Bump version\n\nUpdate changelog and go to `aur/` and update `pkgver`. Then add a git\ntag. Finally, run `make aur` and `make aur-push`.\n\n\n## Acknowledgments\n\nThanks to [roddhjav](https://github.com/roddhjav) for creating\n[pass-update](https://github.com/roddhjav/pass-update) from which this\nscript is heavily inspired.\n\n\n## License\n\n```\nCopyright (C) 2017  Pierre PENNINCKX\n\nThis program is free software: you can redistribute it and/or modify\nit under the terms of the GNU General 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 program 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.  See the\nGNU General Public License for more details.\n\nYou should have received a copy of the GNU General Public License\nalong with this program.  If not, see \u003chttp://www.gnu.org/licenses/\u003e.\n```\n\n[build-img]: https://travis-ci.org/ibizaman/pass-ssh.svg?branch=master\n[build-url]: https://travis-ci.org/ibizaman/pass-ssh\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fibizaman%2Fpass-ssh","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fibizaman%2Fpass-ssh","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fibizaman%2Fpass-ssh/lists"}