A passh extension that provides a convenient solution to insert a file or password into the store, overriding native insert command.
Usage: passh insert [--echo,-e | --multiline,-m] [--force,-f] pass-name [file-path] Insert new password. Optionally, echo the password back to the console during entry. Or, the entry may be multiline. If file-path is a file, it will be inserted (options for echo and multiline are ignored) Prompt before overwriting existing password or file unless forced. More information may be found in the passh-insert(1) man page.
man passh-insert for more information.
Insert your ssh private key.
passh insert Systems/General/SSHKey ~/.ssh/id_rsa
Check the releases to use a tested signed version of this extension. If you want the bleeding edge version, keep reading.
git clone https://github.com/hackan/passh-extension-insert.git cd passh-extension-insert sudo make install
Or simply copy insert.bash to the pass extension directory (~/.password-store/.extensions by default) and set it executable to enable it:
chmod +x insert.bash.
In order to use extension with
passh, you need:
passh 1.7.0or greater. Check the website on how to obtain it.
- You need to enable the extensions in passh:
You can create an alias in
alias passh='PASSWORD_STORE_ENABLE_EXTENSIONS=true passh'
Feedback, contributors, pull requests are all very welcome.
Copyright (C) 2017 HacKan (https://hackan.net) This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>.