![]() If you connect to the server with another application (ie: PuTTY) and it has not seen the server before then you will be prompted to accept the key. Unless I am misunderstanding you: you don't need to. The OpenSSH Server service was started successfully.Ĭ:\Program Files\OpenSSH\bin>ssh-keyscan -t rsa vivo.sg.m.com > c:\known_hosts \etc\passwdĬ:\Program Files\OpenSSH\bin>net start opensshd ![]() \etc\groupĬ:\Program Files\OpenSSH\bin>mkpasswd -l >. C:\Program Files\OpenSSH\bin>mkgroup -l >. Here are my commands which allow me to obtain the host key. Prior to running the ssh-keyscan, assuming the openssh is install by default, there is a few commands that needs to be run (read the quickstart/readme install for details). To further help any newcomers reading your answer. If you'd rather use a GUI, you can snag the host key from the log window or the first-time connection popup using WinSCP FTP client: I needed the key in known_hosts format, so I has able to install a windows version of openssh at his recommendation and used the ssh-keyscan tool to hit the server and save the key info out in the correct format: ssh-keyscan -t rsa > c:\known_hosts FileZilla piggybacks on PuTTY's PSFTP program and stores the saved keys encoded in a hex format at the registry key he listed (HKCUR\Software\SimonTatham\PuTTY\SshHostKeys). Those can be found at HKCUR\Software\SimonTatham\PuTTY\SshHostKeys Putty also stores host keys, but it appears to encode them in hex. ![]() ![]() From there, it's a simple matter of figuring out which bit of that host key is needed for your library. If you use the standard openssh console client (cygwin or from linux), host keys are stored, one-per-line, in ~/.ssh/known_hosts. I have not been able to find anything in the FileZilla documentation related to this. How can I extract this cached key to a keyfile so that may use it through other SFTP applications that require a keyfile be made available? I have connected to a server via SFTP using FileZilla and accepted adding the server's SSH key to the key cache in FileZilla.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |