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
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