How do I find My Host Key (SSH/WinSCP) How do I find My Host Key (SSH/WinSCP)? Log in to the sftp server an run these commands: ssh-keygen -l -f /etc/ssh/ssh_host_key.pub ssh-keygen -l -f /etc/ssh/ssh_host_rsa_key.pub ssh-keygen -l -f /etc/ssh/ssh_host_dsa_key.pub