DSA key

  • Today I was given a DSA private key by a job application, and a git ssh address that looked like:  git@github.com:username/reponame.git
    • the top of the DSA file looked like:  -----BEGIN DSA PRIVATE KEY-----
  • What I did:
    • navigated to my ~/.shh  directory
    • made a id_dsa extension-less file, and pasted in the body of the DSA private key
    • changed permissions to -rw-r--r-- via: sudo chmod u+w id_dsa and sudo chmod ugo+r id_dsa
    • ssh-keygen -y -f id_dsa >> id_dsa.pub
    • and suddenly, I had access to the git repository
      • git remote add origin git@github.com:username/reponame.git
    • Then, as instructed later, I sent a post request, netcat, ruby RestClient, and telnet didn’t work as expected, so I did it with straight JS
Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s