cancel
Showing results for 
Search instead for 
Did you mean: 

ssh to pc

 
SOLVED
Go to solution
jerry1
Super Advisor

ssh to pc

I am trying to use ssh scp to a pc but the "\"'s in the path are removed.

scp testfile user1@pc100:e:\Program*Files\files

Had to use an * for "Program Files".

Missing "\"'s from ssh "scp":

scp: e:Program*Filesfiles: No such file or directory


I have tried escape characters and other but
no go.

Is ssh scp only for UNIX or how do you pass
\ in a windows path?
19 REPLIES 19
HGN
Honored Contributor

Re: ssh to pc

Hi

Try and use Putty to connect to the unix server, there are different ways to connect on it Telnet SSH Rlogin Raw.

Hope this helps

Rgds

HGN
jerry1
Super Advisor

Re: ssh to pc

The subject is: ssh TO pc
James A. Donovan
Honored Contributor

Re: ssh to pc

You need an extra "\", and you can use the 8.3 abbreviation of "Progra~1" for "Program Files".

e.g.

scp myfile e:\\Progra~1\\files
Remember, wherever you go, there you are...
twang
Honored Contributor

Re: ssh to pc

did you try to use sftp, it should allow the following:
cd "Documents and Settings"
Steven E. Protter
Exalted Contributor
Solution

Re: ssh to pc

Hi Jerry,

What pc product you use may matter.

Please try:

changing
scp testfile user1@pc100:e:\Program*Files\files

to


scp testfile user1@pc100:e:\"Program Files\files"

Real space in Program files

The right command is somewhere withint the google search. Still pondering.

I'm seriously impaired due to some pain so I'll let you see my search.

http://www.google.com/search?hl=en&q=scp+to+pc+%22Program+Files%22&btnG=Google+Search


SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Gerhard Roets
Esteemed Contributor

Re: ssh to pc

Hi Jerry

scp testfile user1@pc100:e:\\Program\ files\\files

that should do it. SEP's way is off course less typing.

Just a note ... when i read your command line testfile implies 1 file ... but files implies multiples, are you trying to copy a set of file to a directory, or is files a archive of a group of files of some sort.

If its an archive or only 1 file your command is fine but if its a group of files
1.testfile should obviuosly be a directory
2. I would rewrite the command as follows ...

scp testfile user1@pc100:e:\\Program\ files\\files\\\*

That should do it

HTH
Regards
Gerhard
Gerhard Roets
Esteemed Contributor

Re: ssh to pc

HI Jerry

I forgot to add ... you do have a sshd running on that pc right?

If not here is 2 good links and follows the instructions to install ...

http://filezilla.sourceforge.net/

http://sshwindows.sourceforge.net/

HTH
Regards
Gerhard
jerry1
Super Advisor

Re: ssh to pc

What doesn't work:


Here it does not pass the "\"s.
scp testfile user1@pc100:e:\\Progra~1\\files
scp: e:Program~1files: No such file or directory

This is an invalid string in UNIX leaving me
at a continuation >.
scp testfile user1@pc100:e:\"Program Files\files"
>

Cannot escape the blank in Program Files.
scp testfile user1@pc100:e:\\Program\ files\\files
scp: ambiguous target

I have tried other variations. But I do not
understand why I cannot escape the \ with
\\. Which is valid in UNIX.

I will check out some of your docs but if
anyone can figure out how to use scp from
UNIX to PC. Let me know. If your syntax works
for you I would like to find out why.
Highlighted
John Palmer
Honored Contributor

Re: ssh to pc

Have you tried:

scp testfile "user1@pc1pp:e:\\\\Program Files\\\\files"

Regards,
John