Post a reply

Before posting, please read how to report bug or request support effectively.

Bug reports without an attached log file are usually useless.

Options
Add an Attachment

If you do not want to add an Attachment to your Post, please leave the Fields blank.

(maximum 10 MB; please compress large files; only common media, archive, text and programming file formats are allowed)

Options

Topic review

martin

Re: Host "C" Does not Exist error with privateKey

Please attach a full session log file showing the problem (using the latest version of WinSCP).

To generate the session log file, use /log=path_to_log_file command-line argument. Submit the log with your post as an attachment. Note that passwords and passphrases not stored in the log. You may want to remove other data you consider sensitive though, such as host names, IP addresses, account names or file names (unless they are relevant to the problem). If you do not want to post the log publicly, you can mark the attachment as private.
burnhambear

Host "C" Does not Exist error with privateKey

I keep receiving the "Host C Does Not Exist" when trying to connect via privateKey. I can connect to the sFTP via WinSCP but when I try to run it through the Command with a scrip I get the error.

When I generate a Session URL/Code script within WinSCP I get this:

open sftp://NAME@XXX.XX.XXX.XXX:XXXXX/ -hostkey="ssh-rsa xx:xx:xx:xx:xx:xx:" -privatekey="Directory.putty.ppk" -rawsettings AgentFwd=1
# Your command 1
# Your command 2
exit

In .txt script file I have this:

open sftp://NAME@XXX.XX.XXX.XXX:XXXXX/ -hostkey="ssh-rsa xx:xx:xx:xx:xx:xx:" -privatekey="Directory.putty.ppk" -rawsettings AgentFwd=1

cd /GlobalDir/tririga/

option transfer binary

get "TRI_SPACE_OUT_WW.txt"

close

exit

So what am I doing wrong???
The direction I received in the sFTP email states that "the account does not allow ssh connection to the host system, only sFTP connections". But how come I can connect via WinSCP?

Please help

Derek