Within a WebApp (hosted on Xojo Cloud) I have a module that uses a Shell and SFTP cmds to “reach out” to an SFTP/FTP host. My App needs to do routine things - like “get” all files from a directory at the foreign host, and “put” some files back.
The first item I’m encountering are warnings about ‘hostkeys’. Even though I get these warnings I can still execute all the cmds, and after each warning I still get the expected (good) prompts.
Is there a way to create a ‘hostkey’ on the Xojo Cloud project or directory that will suppress these warnings?
---- send: “sftp account@sftp.thehost.com”
---- recv: (below)
Shell.DataAvailable:
hostkeys_find_by_key_hostfile: hostkeys_foreach failed for /dev/null/.ssh/known_hosts: Not a directory
The authenticity of host ‘sftp.thehost.com (ipaddresshere)’ can’t be established.
ED25519 key fingerprint is SHA256:maKofePLGF+M+BC9Mh1blTeJB0Pe0GzXlM8F7edEyQ.
This key is not known by any other names
Are you sure you want to continue connecting (yes/no/[fingerprint])?
---- send: “yes”
---- recv: (below)
Shell.DataAvailable:
Could not stat /dev/null/.ssh: Not a directory
Failed to add the host to the list of known hosts (/dev/null/.ssh/known_hosts).
Shell.DataAvailable:
(sftp account@sftp.thehost.com) Password:
---- send: “the password”
---- recv: (below)
Shell.DataAvailable:
client_input_hostkeys: hostkeys_foreach failed for /dev/null/.ssh/known_hosts: Not a directory
Shell.DataAvailable:
Connected to sftp.thehost.com.
Shell.DataAvailable:
sftp>