Topic "Host does not exist - cannot find the reason for this error."

Author Message
rysiekmus
[View user's profile]

Joined: 2008-02-22
Posts: 3
Location: Manchester UK
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"):
Code:

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

winscp.com /console script=test.txt mylogin@myserver


Code:

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:

Code:

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

# 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 Smile
Advertisements
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 25034
Location: Prague, Czechia
It is strange.
What if you try:
Code:
c:\home\sftp>winscp sftp://suprd_ho@myserver
rysiekmus
[View user's profile]

Joined: 2008-02-22
Posts: 3
Location: Manchester UK
No Prikryl,
unfortunately still the same:

Code:

C:\home\sftp>winscp.com /console script=sftp_script.txt sftp://suprd_ho@myserver
Searching for host...

Host does not exist


Maybe I am doing something wrong with the passphraze files, so I will check again during the day.
Thanks for the hint.

Regards,
Richard
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 25034
Location: Prague, Czechia
So this works:
Code:
winscp sftp:@myserver

and this not?
Code:
winscp sftp://suprd_ho@myserver


Code:
Maybe I am doing something wrong with the passphraze files, so I will check again during the day.

It cannot be anything with passphrase as you do not even establish connection to the host.
_________________
Martin Prikryl
rysiekmus
[View user's profile]

Joined: 2008-02-22
Posts: 3
Location: Manchester UK
Hi,

I think I have a problem connecting to my SSH server, so I will have to find out that first. Probably that's where the problem is.

I will keep the thread updated.

Thanks,
Richard
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 25034
Location: Prague, Czechia
Also please read documentation on "Host does not exist" error.
_________________
Martin Prikryl
Advertisements

You can post new topics in this forum






Search Site

What is WinSCP?

It is award-winning SFTP client, SCP client, FTPS client and FTP client integrated into one software program for file transfer to FTP server or secure SFTP server. [More]

And it's free!

Donate

About donations

$9   $19   $49   $99

About donations

Recommend

WinSCP Privacy Policy

WinSCP License