Host "C" Does not Exist error with privateKey

Advertisement

burnhambear
Joined:
Posts:
1
Location:
Chicago

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

Reply with quote

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
29,476
Location:
Prague, Czechia

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.

Reply with quote

Advertisement

You can post new topics in this forum