It turns out that the type of key I was using was a rsa. IIS is much more forgiving then Linux. To make this work on the Linux sftp I had to add these 2 lines in the config file
• hostkeyalgorithms=ssh-rsa,[email protected] • pubkeyacceptedalgorithms=+ssh-rsa,[email protected]
hostkeyalgorithms=ssh-rsa,[email protected] pubkeyacceptedalgorithms=+ssh-rsa,[email protected] the config file is located at:
root/ect/ssh/sshd_config
/etc/ssh/sshd_config Click here to see the config file
However, in this screenshot you can see that the 2 lines are commented out. Thats because after I got this to work, I commented them and tried using a key in the ED25519 format which did work.
Summary, I should have used a ED25519 type of key so I would not have needed to mess with the Linux server. But if I want to the rsa key, then add the 2 lines above to the config file.
Hope this helps.