Re: problems using scp on Windows

Bram Moolenaar <[email protected]> Thu, 15 Dec 2005 12:50:17 +0100
Newsgroups gmane.comp.tools.aap.user
Message-ID <[email protected]>
Andres wrote:

> I've been trying to use scp in a Windows machine and have failed in
> various ways. I started with Cygwin and found that the server I'm
> connecting to uses a version of SSH Secure Communications's server that
> does not agree well with the OpenSSH scp in Cygwin.
>=20
> My latest attempt tries to use the cmd interface completely on the Wind=
ows
> side. AAP installed a copy of scp.exe it downloaded from a Putty relate=
d
> site.
> I can use this binary to manually connect to the remote server and uplo=
ad
> files. The problem comes when "aap.bat publish" tries to do it. Here is
> some of the error messages I get:
>=20
> - Part of the problem seems to be that aap incorrectly sets the path
> separator for the remote directories

You are apparently using version 1.082, thus you already have the recent
fix for recognizing URLs.

Is the problem that a backslash is used in this command:

> Aap: Uploading ['styles\\homepage.css'] to
> scp://[email protected]/public_html/styles\homepage.css
> Aap: {interactive} "c:\Program Files\aap\Exec\aap-1.082\bin\scp.exe" -p
> 'G:\web\prep\styles\homepage.css'
> '[email protected]:public_html/styles\homepage.css'

Can you try (manually) what path does work?  Problem is that with DOS
commands sometimes backwards slashes are required and sometimes forward
slashes.  A mix like here probably doesn't work...

--=20
The war between Emacs and Vi is over.  Vi has won with 3 to 1.
			http://www.ssc.com/lg/issue30/raymond.html

 /// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net   \=
\\
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ =
\\\
\\\        download, build and distribute -- http://www.A-A-P.org        =
///
 \\\            help me help AIDS victims -- http://www.ICCF.nl         /=
//


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log fi=
les
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=3D7637&alloc_id=3D16865&op=3Dclick