Makotoseven wrote:
From what I gather you're saying I need to (if possible) get the public key for my machine from bluehost itself, not just my account.
Not sure what you mean by "your machine". If you mean your virtual server, then yes (note that it's host key of the SSH server on the machine, not of the machine as a whole).
I can SSH into my account using a private key made through my interface. Then I though "Does SFTP require something different (perhaps because I'm really just using a virtual machine)?" but I can use the private key file downloaded from my bluehost account with the winSCP application itself. That's why I thought I could just reference the private key path exclusively (using the same file) and be done with it but when I do that it returns an error saying "Host key wasn't verified!".
First, it's irrelevant if you use virtual machine or not.
Second, if I understand it correctly, you can connect using WinSCP GUI. That means you have already verified your server's host key in GUI on the first connect (you got
this message). You need to do the same for the assembly, except that the assembly does not have a persistent host key cache (what GUI has). So you need to verify it on every connect. And that's what the
SessionOptions.SshHostKeyFingerprint
is for.
I do not know how to help you further.
Please make sure you read these few more times:
https://winscp.net/eng/docs/ssh_verifying_the_host_key
https://winscp.net/eng/docs/faq_hostkey