diff --git a/src/protocols/ssh/ssh_agent.c b/src/protocols/ssh/ssh_agent.c index f530184b..ee774694 100644 --- a/src/protocols/ssh/ssh_agent.c +++ b/src/protocols/ssh/ssh_agent.c @@ -78,7 +78,7 @@ void ssh_auth_agent_sign(ssh_auth_agent* agent, char* data, int data_length) { if (key->type == SSH_KEY_RSA) buffer_write_string(&pos, "ssh-rsa", 7); else if (key->type == SSH_KEY_DSA) - buffer_write_string(&pos, "ssh-dsa", 7); + buffer_write_string(&pos, "ssh-dss", 7); else return; diff --git a/src/protocols/ssh/ssh_key.c b/src/protocols/ssh/ssh_key.c index 9ed4f082..07d62ce7 100644 --- a/src/protocols/ssh/ssh_key.c +++ b/src/protocols/ssh/ssh_key.c @@ -114,7 +114,7 @@ ssh_key* ssh_key_alloc(char* data, int length, char* passphrase) { pos = public_key; /* Derive public key */ - buffer_write_string(&pos, "ssh-dsa", sizeof("ssh-dsa")-1); + buffer_write_string(&pos, "ssh-dss", sizeof("ssh-dss")-1); buffer_write_bignum(&pos, dsa_key->p); buffer_write_bignum(&pos, dsa_key->q); buffer_write_bignum(&pos, dsa_key->g);