Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 03-19-2013, 03:35 AM   #1
Registered: Apr 2012
Posts: 57

Rep: Reputation: Disabled
Smile SCP


I am getting the following error when doing SCP
scp power-2013-03-10-Sunday-08\:07\:01.dmp.gz root@
ssh: power-2013-03-10-Sunday-08: Name or service not known

if am removing the timestamps then its working fine. Kindly help me
Old 03-20-2013, 11:49 AM   #2
Registered: Mar 2011
Location: /
Distribution: Fedora (typically latest release or development release)
Posts: 372

Rep: Reputation: Disabled
Try this

scp ./power-2013-03-10-Sunday-08\:07\:01.dmp.gz root@
Old 03-20-2013, 12:15 PM   #3
Senior Member
Registered: Jul 2012
Location: Grenoble, Fr.
Distribution: Sun Solaris, RHEL, Ubuntu, Debian 6.0
Posts: 1,800
Blog Entries: 4

Rep: Reputation: 286Reputation: 286Reputation: 286
As already suggested, simple solution is to use full i.e. absolute path of power-2013-03-10-Sunday-08\:07\:01.dmp.gz file.
~$  scp  /path/to/power-2013-03-10-Sunday-08\:07\:01.dmp.gz  root@
Old 03-20-2013, 01:01 PM   #4
LQ 5k Club
Registered: Aug 2005
Distribution: OpenSuse, Fedora, Redhat, Debian
Posts: 5,397
Blog Entries: 2

Rep: Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908
Isn't the problem a result of embedded backslashes in the filename? Try escaping each backslash with another backslash, or possibly enclosing the filename in 'single quotes'. Shame on someone for creating a filespec of that form in the first place.

--- rod.
Old 03-20-2013, 01:07 PM   #5
LQ Newbie
Registered: Mar 2012
Posts: 16

Rep: Reputation: 0
rename file by removing colons and check
Old 03-20-2013, 01:09 PM   #6
LQ Guru
Registered: May 2005
Location: boston, usa
Distribution: fc-15/ fc-20-live-usb/ aix
Posts: 5,167

Rep: Reputation: 890Reputation: 890Reputation: 890Reputation: 890Reputation: 890Reputation: 890Reputation: 890
Try this

scp ./power-2013-03-10-Sunday-08:07:01.dmp.gz root@
Old 03-20-2013, 01:11 PM   #7
Registered: Aug 2002
Posts: 16,430

Rep: Reputation: 1938Reputation: 1938Reputation: 1938Reputation: 1938Reputation: 1938Reputation: 1938Reputation: 1938Reputation: 1938Reputation: 1938Reputation: 1938Reputation: 1938
I assume the OP is trying to escape the colons but without using an absolute path scp assumes that any characters before the : is a hostname vs a file name. I know using an absolute path works but do not know about a double backslash for colons and I can not test this at the moment.



Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Centos 6.3 host+guest: try scp to guest: scp cmd not found. ssh ok chrism01 Linux - Virtualization and Cloud 3 08-24-2012 02:52 AM
I need help with scp kyros Linux - Newbie 19 12-31-2011 12:43 PM
[SOLVED] ssh scp key not working to ssh/scp without password rjo98 Linux - Newbie 9 08-22-2011 05:28 PM
scp does not work and gives the following error message: scp: FATAL: Executing ssh1 i akay Linux - Networking 16 09-29-2008 12:41 AM
What is SCP? radam Linux - Software 2 07-20-2004 08:07 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:59 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration