Skip to content

Commit

Permalink
fix: signature doesn't contain the first few bytes. I guess?
Browse files Browse the repository at this point in the history
  • Loading branch information
zommuter committed Oct 12, 2015
1 parent 905bf53 commit d5020b9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ssh-agent-sign.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,6 @@
agent = paramiko.Agent()
key = agent.get_keys()[0] # TODO: Key selection
for line in fileinput.input():
signature = key.sign_ssh_data(line)
signature = key.sign_ssh_data(line)[15:]
# TODO figure out whether it's always 15 bytes to skip (and why)
print(hexdump.dump(signature,sep=''))

0 comments on commit d5020b9

Please sign in to comment.