1PX secure notes and SSH private keys
Hello,
I've got a problem with 1PasswordX (or better with 1Password cloud, since 1PX doesn't manage secure notes) and my SSH key.
I've stored my key as a secure note, but when I get it back (by copy&paste) it's not in it's original format somehow, it's readable, but it gets scrambled or maybe some newline gets lost in the process and it results unusable.
I've had to get it back (luckily) from my old lastpass where it get stored correctly.
Could you please look into this? because it's rather alarming to have something save which is not readable anymore. I cannot rely on something like this
1Password Version: Not Provided
Extension Version: Not Provided
OS Version: Not Provided
Sync Type: Not Provided
Comments
-
Hey @lcorsini!
Did you copy and paste the SSH key from within 1Password X or from the 1Password.com web client?
Was the SSH keep imported using our LastPass import tool?
I believe there's a chance that whitespace might've been added if you were copying them from 1Password X. I'll be honest and say we didn't give Secure Notes nearly as much love as they deserve yet, but we do have some really exciting changes coming very soon. 🤘
I'd also like to recommend uploading your keys as Document Items and then downloading them from the 1Password.com web client as needed. Another option, if you're more of a terminal fan, the 1Password CLI can be a quick and easy way to download your keys on the fly as needed. I shared a basic script idea a while back that would need to be updated but might give you an idea of some fun ways to use the CLI.
I'm hoping your answers will help me recreate the issue on my end. Thanks for your help!
0 -
Ok let's go in order:
- I've copied it from Web client
- It was imported from lastpass at first
- Creating a new note in web client
- copy the key from id_rsa file and pasting the key inside
- save, then copy from the secure note and paste it back into id_rsa file
- Gives the same exact problem (it probably has to do something with carriage return and whitespaces)*****
- I didn't knew about the upload document, I'll give a try
- CLI support is great and very welcome, didn't really had time to explore it since switching fully to 1P
- Yes Secure notes really need some love :angry: and good templates
****A key file is a text file, containing a sequence of lines. Each line in the file MUST NOT be longer than 72 8-bit bytes excluding line termination characters.
Implementations SHOULD generate public key files using their system's
local text file representation.In the event that public key files are not transferred as text files,
implementations SHOULD be prepared to read files using any of the
common line termination sequence, , , or .0 -
@Lcorsini: Thanks for getting back to me with this. I'm going to try reproducing what you have here now and then create an issue when I find the root cause. It's an interesting use case, and I know folks who have definitely used Secure Notes to house their SSH keys in the past. In the meantime, I wholly recommend uploading SSH keys as Document Items.
We greatly appreciate you taking the time to help make 1Password better for everyone! 💙😁
0 -
Ok, thanks, I'll try, but or i'm dumb (very very possible :chuffed: ) or I cannot find how to upload a document in my vault
0 -
@lcorsini: Ah, sorry for the confusion there! It's not you, it's us. 1Password X isn't capable of working with Documents (yet? only time will tell). You can, however, use the 1Password.com website to create a new Document item and upload a file there. I hope this helps. Be sure to let me know if you have any other questions! :)
0 -
No no, it's me this time :angry: I was in 1password.com, but I haven't seen the Document item
0 -
LastPass has some really nice custom note types that are designed for SSH Keys. Any chance at getting something like that in the future? Really could use a better way to store and share than adding as a Document.
0 -
It's possible, but I'm not aware of any plans at the moment. Thanks for the feedback. :)
Ben
0 -
A huge +1 from me for the SSH note type.
0 -
+1 for ssh support! very important.
0 -
As mentioned above, you can save SSH keys as a file, or as text in a Secure Note, etc.
0 -
+1 here. A proper way to store SSH keys would be highly appreciated.
0 -
Thanks for the feedback, @oiglesias!
0