- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- ssh to pc
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-22-2004 09:30 AM
11-22-2004 09:30 AM
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?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-22-2004 10:03 AM
11-22-2004 10:03 AM
Re: ssh to pc
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-22-2004 10:09 AM
11-22-2004 10:09 AM
Re: ssh to pc
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-22-2004 10:18 AM
11-22-2004 10:18 AM
Re: ssh to pc
e.g.
scp myfile e:\\Progra~1\\files
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-22-2004 12:41 PM
11-22-2004 12:41 PM
Re: ssh to pc
cd "Documents and Settings"
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-22-2004 01:20 PM
11-22-2004 01:20 PM
SolutionWhat 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
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-22-2004 04:53 PM
11-22-2004 04:53 PM
Re: ssh to pc
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-22-2004 04:56 PM
11-22-2004 04:56 PM
Re: ssh to pc
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-23-2004 02:36 AM
11-23-2004 02:36 AM
Re: ssh to pc
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-23-2004 02:50 AM
11-23-2004 02:50 AM
Re: ssh to pc
scp testfile "user1@pc1pp:e:\\\\Program Files\\\\files"
Regards,
John
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-23-2004 02:58 AM
11-23-2004 02:58 AM
Re: ssh to pc
And a wild card is still needed for
the blank of course.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-23-2004 03:09 AM
11-23-2004 03:09 AM
Re: ssh to pc
Just one very silly thing. You can ping the pc by that hostname from hpux ?
Regards
Gerhard
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-23-2004 06:54 AM
11-23-2004 06:54 AM
Re: ssh to pc
I would not be able to connect. If I can
slogin and sftp in then ping'ing the system
doesn't tell me anything I don't already
know.
John, sftp may be an option but when you
sftp in you cannot get to the e: drive
unless there is some other way to cd to
e:\Program Files\files\
Steven, your link goes to a blank page.
This is real frustrating.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-23-2004 07:25 AM
11-23-2004 07:25 AM
Re: ssh to pc
scp testfile "user@pc:/cygdrive/c/Program\ Files"
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-23-2004 07:58 AM
11-23-2004 07:58 AM
Re: ssh to pc
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-23-2004 08:56 AM
11-23-2004 08:56 AM
Re: ssh to pc
scp testfile "user@pc:/cygdrive/c/Program\ Files" eludes me.
What is /cygdrive/ and I assume /c/ is for c:
drive?
When I slogin. I am in:
C:\Program Files\OpenSSH> dir
Volume in drive C has no label.
Volume Serial Number is 38A7-E9C7
Directory of C:\Program Files\OpenSSH
11/23/2004 11:31a
11/23/2004 11:31a
11/23/2004 11:37a
11/22/2004 11:06a
11/23/2004 11:14a
11/22/2004 11:46a
11/22/2004 11:06a
11/22/2004 11:06a 85,619 uninstall.exe
11/22/2004 11:06a
11/22/2004 11:06a
1 File(s) 85,619 bytes
9 Dir(s) 2,510,554,624 bytes free
I can change to e:\
When I sftp I am in:
sftp> dir
.
..
.ssh
bin
docs
etc
tmp
uninstall.exe
usr
var
If I scp:
scp file1
It puts file1 in the folder
Program Files on drive e:
But not in subdirectories that require a
\ in the path. \ does not get passed with
scp.
If I was to use sftp then how do I tell
it to put the file in e:\
if I can't get to it.
I am not a windows person. I am a UNIX
thinker.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-23-2004 12:48 PM
11-23-2004 12:48 PM
Re: ssh to pc
Please use '/' character and sshd on your pc will translate it to '\'.
So the following should work
scp testfile user1@pc100:'/cygdrive/e/program\ files/files'
'\' in 'program\ files' is used to escape space character.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-24-2004 02:26 AM
11-24-2004 02:26 AM
Re: ssh to pc
Many, Many Thanks Ermin.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-24-2004 02:50 AM
11-24-2004 02:50 AM
Re: ssh to pc
It's not ssh that is translating the slashes to backslases, it's because sshd is running under the cygwin environment. If you were to open a cmd session, you wont see c:\cygdrive.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-24-2004 03:10 AM
11-24-2004 03:10 AM
Re: ssh to pc
As to the PC cmd. I do not have access to
this system physically. It is a remote
server and my task is to only get scp
working to it for the oracle folks.
Now I have to figure out how to use
the ssh keys but others here have giving
me links for ssh that I have been reading that should help.
Thanks to all.