Site using SSH key prompts for password when scripted, not when run manually

Core FTP client questions and answers
Post Reply
tarsul
Posts: 2
Joined: Thu Mar 14, 2019 7:45 pm

Site using SSH key prompts for password when scripted, not when run manually

Post by tarsul »

Core FTP LE 2.2, Site contains username, no password, locally stored SSH key. Do not prompt for password when blank is checked. The site works when run in the GUI. Script is C:\Program Files\CoreFTP\coreftp.exe" -site <sitename> -u <localpath>\*.* -p <remotepath> -log <sitename>.log.

Result is Core GUI opens and prompts for username and password. Log shows "Started on Friday February 14, 2025 at 13:33:PMSFTP connection error - Hostname not setCan't establish connection --> :21 @ Fri Feb 14 13:33:17 2025"
(0-30026)Total uploaded files: 0

This does not occur with username/password configured sites without an SSH key file. I'm guessing I'm missing a switch to load the key, but I don't see instructions for same on command line instructions for the client. I've searched the forum and found similar behavior/issues with scripting via site name, but no answers. Advice appreciated!
ForumAdmin
Site Admin
Posts: 997
Joined: Mon Mar 24, 2003 4:37 am

Re: Site using SSH key prompts for password when scripted, not when run manually

Post by ForumAdmin »

-key <c:\path\keyfilename>

In looking at the error it looks like the site profile is not being found as the hostname isn't correct. If you switch to "file based storage" it will likely alleviate these issues.

https://coreftp.com/forums/viewtopic.php?t=4022670
Post Reply