Guest User

Untitled

a guest
Mar 19th, 2018
103
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.30 KB | None | 0 0
  1. ```
  2. // generate rsa pub from priv
  3. $ openssl rsa -in ~/.ssh/foo -pubout > foo.pub
  4.  
  5. // format that to ssh-rsa from the pubout
  6. $ ssh-keygen -f ~/.ssh/foo.pub -i -mPKCS8 > bar.pub
  7.  
  8. // for some reason you can't redirect to the file being read in
  9. $ mv bar.pub foo.pub
  10.  
  11. // correct perms
  12. $ chmod 0644 foo.pub
  13. ```
Add Comment
Please, Sign In to add comment