* System.Security.Cryptography.CryptographicException: Invalid password or bad data.
at Rebex.Security.Cryptography.Pkcs.PrivateKeyInfo.GTZ(TextReader H, String S)
at Rebex.Security.Cryptography.Pkcs.PrivateKeyInfo.QZZ(Stream H, String S)
at Rebex.Net.SshPrivateKey.UZ(Stream H, String S)
at Rebex.Net.SshPrivateKey..ctor(String H, String S)
at Rebex.TinySftpServer.K.PZ(String H, String S, Boolean K)
at Rebex.TinySftpServer.K.QZ()
Above is my error. I've tried three different public keys, see below.
Default RSA Key:
ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAIEA2atEg/2fdMGik2dXzVWCmvVPRW0Cz7f3IB3E1BCpA9m4vBESoWEFgcWxBUsXHQ1yqeZeDnB2iNJXN2X2taoGg3EVgBlVed7AtjpNm1d25QOVb9msWvYlq8Db39TtAp8CHchO8v7C74FKEtokpaz9GRsu+fKVbSX/pRTxGEUXpuE= test@test.test.com
1024 bit RSA Key:
ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAIEAujpa0z8J/J3pawQHFdcH0z2dwtrEIyMOMOgiA3WEZO4LZ32khJQIQ+ge95o+sYRAJNMk8LoOuzzrhKNpDg1iK06E9RmroMLhPQO/5cNXYX1NtkMFd/9GnbVeljFYpRs/UATtbjdIq/H/ahdZrZCllzsbXazw/V2SboaJkvuOdt8= test@test.test.com
SECSH Format below:
---- BEGIN SSH2 PUBLIC KEY ----
Comment: "1024-bit RSA, converted from OpenSSH by Test@test.test.com"
AAAAB3NzaC1yc2EAAAABIwAAAIEAujpa0z8J/J3pawQHFdcH0z2dwtrEIyMOMOgiA3WEZO
4LZ32khJQIQ+ge95o+sYRAJNMk8LoOuzzrhKNpDg1iK06E9RmroMLhPQO/5cNXYX1NtkMF
d/9GnbVeljFYpRs/UATtbjdIq/H/ahdZrZCllzsbXazw/V2SboaJkvuOdt8=
---- END SSH2 PUBLIC KEY ----
Everything is denied with the error invalid password.
EDIT:
Created a 2048 bit RSA public key, still not working.
---- BEGIN SSH2 PUBLIC KEY ----
Comment: "2048-bit RSA, converted from OpenSSH by test@TEST.TEST.com
AAAAB3NzaC1yc2EAAAABIwAAAQEAvTCL8C4vm+eGxCkM+gizrLaz1tJMTYj4CaCXPfSgxX
y9QBIHCAcFvO1367bnKudMWHw9yO0i06Ebr68xhVu5Ue84lRSiFOFIWrTvJsoS097P8z51
BcZN4bFUuULXp3O6xg++hdtKM62BJGnVgwAS50F4f6y6rK36Tdo2PleDc6+0ZFEvFFIS1T
ASkSGeKH6KtWOk7r5jChc2L92uI0R0/0Qn9/9SbgcBJ2WyCuaaa2gz7lOh/OsyLVWfsqgI
eBV+McFdCx1IflIdWm57RcU4CJ7UMulX8I6Bb7KWBKEFKiGcrQNU6doAYp6FHqPWNooFDf
dfqmnR8n61taUGPNHyIQ==
---- END SSH2 PUBLIC KEY ----