Which hash function is used for signatures ssh-rsa and ssh-dss? I'm building a fuse client for ssh/sftp. I write the required ssh and sftp functions myself. Now I read in RFC4253 that before signing the data to sign is default hashed. In RFC4253 8. "Diffie-Hellman Key Exchange" SHA1 is mentioned as the default for ssh-dss. What is it for ssh-rsa?
In section 6 of RFC 4253 it says on page 15:


  The "ssh-rsa" key format has the following specific encoding:

  string    "ssh-rsa"
  mpint     e
  mpint     n

  
  Here the 'e' and 'n' parameters form the signature key blob.
  
  Signing and verifying using this key format is performed according
  to    the RSASSA-PKCS1-v1_5 scheme in [RFC3447] using the SHA-1 hash.


So the answer is "SHA-1" as well.