-
rickyj
Guest
"Host does not exist"
Advertisement
Advertisement
-
martin◆
Site Admin - Joined:
- Posts:
- 41,442
- Location:
- Prague, Czechia
Re: "Host does not exist"
1) Do you use the same binary (exe) for GUI and the script? And from the same directory? From the same host?
2) Please post the script.
3) Post a log file of success in GUI and failure with script.
-
Grandilo
Guest
my script :
in exemple, its user@exemple.com, if its only user@ip there is a pb?
-
martin◆
Site Admin
So do you use IP address in both cases or hostname in the first?Hello i have the same problem, when i lauch the script in console mod, i have "host does not exist" but if i write open in winscp console and my @ip of my server, it works
-
Delphi
Guest
some more info
c: cd \Programme\WinSCP3 START WinSCP.exe "connection25" PING -n 2 127.0.0.1>nul # poor man's delay START WinSCP.exe "connection32"
c: cd \Programme\WinSCP3 START WinSCP.exe "folder/connection1" PING -n 2 127.0.0.1>nul # poor man's delay START WinSCP.exe "folder/connection2"
Advertisement
-
martin◆
Site Admin - Joined:
- Posts:
- 41,442
- Location:
- Prague, Czechia
Re: some more info
Thanks for your post. This issue has been added to tracker.In my case I had used batch files to start several sessions at once. This was no problem as long as I left them directly in the base folder.
...
-
Jimboberlin
Guest
same error
Code
# Connect open root@87.230.6.132 # Change remote directory cd /srw/www/bulk_files/rails/down/app/ # Force binary mode transfer option transfer binary # update folder keepuptodate d:\prog\php_projects\down\app\ /srw/www/bulk_files/rails/down/app/ # Disconnect close # Exit WinSCP exit
Output:
Searching for host... Host does not exist
When entering the same commands in the shell everything works like a charm!
Any Ideas?
-
martin◆
Site Admin - Joined:
- Posts:
- 41,442
- Location:
- Prague, Czechia
Re: same error
I do not see any relation to the referenced bug.Hi - according to your tracker this bug has been resolved
Please post a full log file showing the problem. Both log file from the shell and script.When entering the same commands in the shell everything works like a charm!
Any Ideas?
-
martin◆
Site Admin
Re: "Host does not exist"
Advertisement
-
Priyaranjan
Guest
Solution I found for this problem
-
Priyaranjan
Guest
Sorry about the typo in -hostkey=
My commands are like following.
I use a bat file to initiate the commands
bat file code
@echo off winscp.com /script="C:\runthis.txt"
option batch on option confirm off open sftp://user:password@host:port -hostkey="ssh-blah blah" synchronize remote -criteria='both' "C:\Backuptest" "/www/cgi-bin/test" chmod 644 /www/cgi-bin/test/*.html chmod 775 /www/cgi-bin/test/*.py synchronize remote -criteria='both' "C:\Backup" "/www/cgi-bin" chmod 644 /www/cgi-bin/*.html chmod 775 /www/cgi-bin/*.py synchronize remote -criteria='both' "C:\js" "/www/htdocs/test/js/" exit
-
sridhar
Guest
getting the same error from ssis
-
martin◆
Site Admin
Re: getting the same error from ssis
Please read FAQ. If that does not help, come back.I am able to manually run my batch file to upload file but it fails when I use ssis process task. can you tell me what might be the cause?
Advertisement
- Guest
script= /command "option batch on" "open username:password@ftp.ftp.com" "optin transfer binary" "put xxx_DEV.csv" "close" "exit". If i run from command prompt I am not getting error. if i run it on ssis package I am getting this error. can you help me on this?
-
martin◆
Site Admin - Joined:
- Posts:
- 41,442
- Location:
- Prague, Czechia
Thanks for your post. This bug is being tracked already.It uploads the file but failing with error "Assertion failied:random_active>=0". you mentioned that you fixed the bug in latest release. I installed latest version. I have the host key in INI file and ran command to read from INI file rather than registry.here is the command argument.
- Guest
Re: "Host does not exist"
winscp /console script.tmp
winscp /console /script=script.tmp
-
anoni
Guest
administrator sucks
Advertisement
-
collinj
Guest
Sucks
-
collinj
Guest
Re: Sucks
prikryl, I don't know why you even bother to reply to these posts. You obviously don't have a clue!
-
Caipre
Guest
I noticed the version of WinSCP was out of date, so I updated.
Works as expected now.
-
guest2011
Guest
(winscp.cmd)
d:\myapps\WinSCP\WinSCP.com %1 %2 %3 %4 %5 %6 %7 %8 %9
and in the main batch:
winscp /script="%FTPSCRIPT%"
When you change the main batch to:
d:\myapps\WinSCP\WinSCP.com /script="%FTPSCRIPT%"
everything works OK
Looks like COM program reads command line arguments in non-standard way.
Advertisement
-
martin◆
Site Admin - Joined:
- Posts:
- 41,442
- Location:
- Prague, Czechia
What is value of FTPSCRIPT?and in the main batch:
winscp /script="%FTPSCRIPT%"
When you change the main batch to:
d:\myapps\WinSCP\WinSCP.com /script="%FTPSCRIPT%"
- Guest
C:\Users\myuser\AppData\Local\Temp\myscr.ftp
where "myuser" is current user's profile name and "myscr.ftp" is script file name.
-
martin◆
Site Admin - Joined:
- Posts:
- 41,442
- Location:
- Prague, Czechia
Can you send me an email, so I can send you back a debug version of WinSCP to track the problem? Please include link back to this topic in your email. Also note in this topic that you have sent the email. Thanks.FTPSCRIPT doesn't have spaces or special characters, it is equal to:
C:\Users\myuser\AppData\Local\Temp\myscr.ftp
where "myuser" is current user's profile name and "myscr.ftp" is script file name.
- Guest
winscp "/script=%FTPSCRIPT%"
This is because Windows "eats" '=' character inside parameters, if not enclosed by quotation marks.
Advertisement
-
caio
Guest
Host does not exist
when i run winscp.com and then use the command open ftp://user:pass@IP:port, it connects fine...but if i run one script with the command "open ftp://user:pass@IP:port" inside (without the quotes), it keeps saying Host does not exist...is there any way to debug this error, so i can find why it keeps happening?i think it's some problem on parsing the string in the script file, but can't be sure, it's just a guess...
well, any help would be appreciated...thanks in advance
-
martin◆
Site Admin - Joined:
- Posts:
- 41,442
- Location:
- Prague, Czechia
Re: Host does not exist
Just enable logging to see how WinSCP parsed the URL.Well, i've just installed winscp on my machine and wants to copy files to a remote backup folder...
when i run winscp.com and then use the command open ftp://user:pass@IP:port, it connects fine...but if i run one script with the command "open ftp://user:pass@IP:port" inside (without the quotes), it keeps saying Host does not exist...is there any way to debug this error, so i can find why it keeps happening?i think it's some problem on parsing the string in the script file, but can't be sure, it's just a guess...
well, any help would be appreciated...thanks in advance
-
caio
Guest
- dmartin
- Joined:
- Posts:
- 1
- Location:
- Melbourne Australia
WINSCP CONNECTION TO IPHONE 4
My Specs are as follows;
1. Windows 7
2. Iphone 4 - IOS 4.3.3 Jailbroken with Cydia installed
3. Openssh installed and working fine
4. SBsettings - ssh toggle turned on
5. when I try to connect to my iphone I get "network error - connection refused"
Trust I have tried everything as per lot of those forum installing Ipohne tunnel programs and still have no luck. I would really really appreciate any help from someone.
Thanks you.
Advertisement
-
BryWalt
Guest
Admin please!
Just enable logging to see how WinSCP parsed the URL.Well, i've just installed winscp on my machine and wants to copy files to a remote backup folder...
when i run winscp.com and then use the command open ftp://user:pass@IP:port, it connects fine...but if i run one script with the command "open ftp://user:pass@IP:port" inside (without the quotes), it keeps saying Host does not exist...is there any way to debug this error, so i can find why it keeps happening?i think it's some problem on parsing the string in the script file, but can't be sure, it's just a guess...
well, any help would be appreciated...thanks in advance
Prikryl, I wish you could offer more help! For example, your answer above could go much further if you explained how to ENABLE LOGGING! Geez!
-
Jimmy S
Guest
Re: "Host does not exist"
I receive the "Host does not exist" message when trying to use the /script=filename option. However, when I use manually enter the same information that is in the file using winscp interactively, I can login to the server without any problems. Why??????
I could fix it, I don't know if it is going to work in your case, adding the path of the winscp into the script. For example:
This is what I had with "Host does not exist"
winscp.com GyT /script=gyt.txt
then I changed it to this and it worked(basically I pointed out the path of winscp command and the script):
c:\progra~2\winscp\winscp.com GyT /script=c:\ftptrans\gyt.txt
Cheers!
-
martin◆
Site Admin - Joined:
- Posts:
- 41,442
- Location:
- Prague, Czechia
Re: "Host does not exist"
1) You should not open site for scripting using command-line parameter. UseI could fix it, I don't know if it is going to work in your case, adding the path of the winscp into the script. For example:
This is what I had with "Host does not exist"
winscp.com GyT /script=gyt.txt
then I changed it to this and it worked(basically I pointed out the path of winscp command and the script):
c:\progra~2\winscp\winscp.com GyT /script=c:\ftptrans\gyt.txt
open
command from the script instead.
2) Path to a script file cannot make a difference for this.
3) Path to a
winscp.com
makes a difference, when you are using an INI file stored in c:\progra~2\winscp
and your PATH
actually points to a different instance of winscp.com
(with different configuration) that does not know the "GyT" site.
The best to do is to avoid depending on a configuration:
https://winscp.net/eng/docs/scripting#configuration
-
ravi3300
Guest
Hst C does not exist
when i trying to open any file from ftp site then got error Host "C" does not exist.
winscp error pls help
Advertisement
-
martin◆
Site Admin - Joined:
- Posts:
- 41,442
- Location:
- Prague, Czechia
Re: Hst C does not exist
Please start a new thread for your new problem and include a complete session log file.hi..
when i trying to open any file from ftp site then got error Host "C" does not exist.
winscp error pls help
- millerintllc
- Joined:
- Posts:
- 2
-
martin◆
Site Admin - Joined:
- Posts:
- 41,442
- Location:
- Prague, Czechia
And I have same exact answer:10 years later and I have the same exact problem...
Please start a new thread for your new problem and include a complete session log file.
-
NoUsername
Guest
Host invalidcharacter does not exist
The hostname property is set with this regexp:Error: Exception calling "Open" with "1" argument(s): "Host "<FQDN>" does not exist."
$sftpLine -match '(^sftp -o Port=)(?<port>[0-9]+) (?<username>.*)\@(?<hostname>.*)$'
$sftpHostname=$matches.hostname
$sftpHostname.Replace("`r",'') -eq $sftpHostname False
... winscp> open "sftp://username:***@hostname%0D:2222" -hostkey="ssh-rsa 2048 xx:xx:xx.." -timeout=15 ...
The fix? Replace the invalid character with nothing:
$sftpHostname=$matches.hostname.Replace("`r",'')
Advertisement
You can post new topics in this forum