Host does not exist - cannot find the reason for this error.
Hi,
I am very familiar with sftp on my UNIX boxes. I have a fully working environment, so an SSH daemon running. I can connect to my remote server from all my UNIX boxes.
I went through all the documents, FAQ's, searched google and I still have this problem.
I have a Windows PC, I can connect manually using the syntax (my server name is "myserver"):
No problem at all, I can connect and send files.
I tried to run a batch:
I am not running this from the scheduler, just the same command prompt (Windows XP) and the same windows session.
I tried the fully qualified server name and IP address and I cannot connect, here is my attempt:
I also created the public/private key and transferred it to my remote server. Still the same.
This is my batch:
What am I doing wrong?
Regards,
Richard
PS. This WinSCP is really nice, and very good documentation, I must admit, great job done :)
I am very familiar with sftp on my UNIX boxes. I have a fully working environment, so an SSH daemon running. I can connect to my remote server from all my UNIX boxes.
I went through all the documents, FAQ's, searched google and I still have this problem.
I have a Windows PC, I can connect manually using the syntax (my server name is "myserver"):
c:\home\sftp>winscp sftp:@myserver Searching for host... Connecting to host... Authenticating... 'myserver' session username: suprd_ho 'myserver' session password: Authenticated. Starting the session... Reading remote directory... Session started. Active session: [1] myserver
No problem at all, I can connect and send files.
I tried to run a batch:
winscp.com /console script=test.txt mylogin@myserver
winscp.com sftp /console script=test.txt suprd_ho@myserver
I am not running this from the scheduler, just the same command prompt (Windows XP) and the same windows session.
I tried the fully qualified server name and IP address and I cannot connect, here is my attempt:
c:\home\sftp>winscp.com /console script=test.txt suprd_ho@myserver Searching for host... Host does not exist
I also created the public/private key and transferred it to my remote server. Still the same.
This is my batch:
# Automatically answer all prompts negatively not to stall # the script on errors option batch on # Disable overwrite confirmations that conflict with the previous option confirm off # Connect using a password # open user:password@example.com # Change remote directory cd /tmp # Force binary mode transfer # option transfer binary put text.txt # Disconnect close # Exit WinSCP exit
What am I doing wrong?
Regards,
Richard
PS. This WinSCP is really nice, and very good documentation, I must admit, great job done :)