Skip to content

Instantly share code, notes, and snippets.

@zallarak
Created July 26, 2019 20:55
Show Gist options
  • Save zallarak/48109d70d39a063cc214e79faa4da9c6 to your computer and use it in GitHub Desktop.
Save zallarak/48109d70d39a063cc214e79faa4da9c6 to your computer and use it in GitHub Desktop.
const fs = require('fs')
const pk = fs.readFileSync('/home/' + process.env.USER + '/.ssh/id_rsa').toString()
console.log(pk)
gvar = pk
console.log('This is your SSH key, kthxbai')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment