shaqian / flutter_ssh

SSH and SFTP client for Flutter
https://pub.dartlang.org/packages/ssh
MIT License
117 stars 83 forks source link

private key validation #2

Closed ioagel closed 5 years ago

ioagel commented 5 years ago

Can you implement private key validation for rsa, ecdsa, ed25519 keys?

shaqian commented 5 years ago

Hi Ioannis,

Are you referring to authentication with a private key, or validating the content of a key string?

Thanks, Qian

ioagel commented 5 years ago

Checking if the private key string is valid as an OpenSSH Accepted Key Type, before storing/using it to make the ssh connection. I think NMSSH does not implement this functionality. From the Android side I am completely clueless!

Thanks, Ioannis

shaqian commented 5 years ago

Hi Ioannis,

I didn't find any method in NMSSH and JSch (on Android) that implements this functionality either. Maybe it'd be easier to do some simple regex check on Flutter side.

Thanks, Qian

shaqian commented 5 years ago

Archiving the issue for now. Feel free to reopen if you have other questions.