0
Is it possible to create a script that follow the same commands FileZilla executes when connecting to an ssh server?
When I login manually using FileZilla I get the following message for the following connection types:
The server's host key is unknown. You have no guarantee that the server is the
computer you think it is.
Host: securedomain_1.com:22
Fingerprint: ssh-dss 1024 xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx
Host: securedomain_2.com:22
Fingerprint: ssh-rsa 1024 xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx
Host: securedomain_3.com:22
Fingerprint: ssh-rsa 2048 xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx
Trust this host and carry on connecting?
[ ] Always trust this host, add this key to the cache.
[OK] [CANCEL]
I click OK and DO NOT add key to cache...
When I login manually, these are the commands FileZilla executes:
Status: Connecting to my.secure.site.com...
Response: fzSftp started
Command: open "user@my.secure.site.com" 22
[asks for key...]
[I manually click OK]
Command: Trust new Hostkey: Once
Command: Pass: ********
Status: Connected to my.secure.site.com
Status: Retrieving directory listing...
Command: cd "/SFTP/DIR"
Response: New directory is: "/SFTP/DIR"
Command: ls
Status: Listing directory /SFTP/DIR
Status: Calculating timezone offset of server...
Command: mtime "IN"
Response: 1412312345
Status: Timezone offsets: Server: -18000 seconds. Local: -18000 seconds. Difference: 0 seconds.
Status: Directory listing successful
What exactly is happening when I click OK to "Trust this host and carry on connecting"?
Am I accepting a key from the SSH server?
This would be for a Windows machine. I was thinking of using WinSCP but I would like to understand what is happening when I connect to these servers. I have a few scripts that are meant for FTPS that do not work when for these servers.
http://winscp.net/eng/docs/scripting – Zoredache – 2014-11-07T20:12:38.730
do i have to account for a key in my script? – jes516 – 2014-11-07T20:16:02.763