Re: scp doesn?t recognizes 127.0.0.1* as filename
On Mon, Nov 26, 2007 at 07:52:43PM -0200, Eduardo Alvarenga wrote: > By using ./ before the directory/filename it worked. > Is it expected? > yes, the function that checks if the parameter is a hostname or a file will consider that it is a file if '/' appears previous to ':'. Take a look at colon() in src/usr.bin/ssh/misc.c Gilles -- Gilles Chehade http://www.evilkittens.org/ http://www.evilkittens.org/blog/gilles/
Re: scp doesn´t recognizes 127.0.0.1* as filename
On Mon, Nov 26, 2007 at 04:43:35PM -0500, Chris Tankersley wrote: > so it's looking to SCP a directory called '31' on the server > '127.0.0.1-2007-11-26-18' to the other server. If you put the filename > in quotes, does it work? Quotes are interpreted by the shell, so this won't help. Just prefix the file name with ./ to let scp interpret the whole thing as a simple file name.
Re: scp doesn´t recognizes 127.0.0.1* as filename
On Nov 26, 2007 2:43 PM, Chris Tankersley <[EMAIL PROTECTED]> wrote: ... > That's because your directory name follows the same command pattern that > scp looks for: > > : > > so it's looking to SCP a directory called '31' on the server > '127.0.0.1-2007-11-26-18' to the other server. Right. > If you put the filename in quotes, does it work? No, because the quotes will only be seen by the shell and not by scp. If you did manage to get the quotes to scp (by escaping them at the shell level) it would just think them part of the hostname and filename. (How else would you copy a file whose name contained a quote?) Philip Guenther
Re: scp doesn´t recognizes 127.0.0.1* as filename
Giving a path should work (it did on my /tmp/127.0.0.1-2007-11-26-18:31/ dir I just tested with, and it failed the same way yours did without the ./ ) scp -r ./127.0.0.1-2007-11-26-18:31 [EMAIL PROTECTED]:/u02/snap On Nov 26, 2007 1:24 PM, Eduardo Alvarenga <[EMAIL PROTECTED]> wrote: > Hi there, > > [EMAIL PROTECTED] crash]# scp -r 127.0.0.1-2007-11-26-18:31 [EMAIL > PROTECTED]:/u02/snap > ssh: 127.0.0.1-2007-11-26-18: Name or service not known > > 127.0.0.1-2007-11-26-18:31 is a directory > > It seems that scp is not understanding that 127.0.0.1-2007-11-26-18:31 is a > directory. > Can anyone help? > > This is an OpenSSH_3.9p1, OpenSSL 0.9.7a Feb 19 2003 running on RHEL 4.4 > > > Regards, > > -- > Eduardo Alvarenga
Re: scp doesn´t recognizes 127.0.0.1* as filename
It doesn4t work either. [EMAIL PROTECTED] crash]# scp 127.0.0.1-2007-11-26-18\:31/ [EMAIL PROTECTED]:/u02/snap ssh: 127.0.0.1-2007-11-26-18: Name or service not known [EMAIL PROTECTED] crash]# scp "127.0.0.1-2007-11-26-18:31" [EMAIL PROTECTED]:/u02/snap ssh: 127.0.0.1-2007-11-26-18: Name or service not known Maybe a bug? 2007/11/26, Daniel Horecki <[EMAIL PROTECTED]>: > > On Nov 26, 2007 10:24 PM, Eduardo Alvarenga <[EMAIL PROTECTED]> > wrote: > > Hi there, > > > > [EMAIL PROTECTED] crash]# scp -r 127.0.0.1-2007-11-26-18:31 [EMAIL > > PROTECTED] > :/u02/snap > > ssh: 127.0.0.1-2007-11-26-18: Name or service not known > > > > 127.0.0.1-2007-11-26-18:31 is a directory > > > > It seems that scp is not understanding that 127.0.0.1-2007-11-26-18:31 > is a > > directory. > > Can anyone help? > > > > Add \ before ":" char: > > scp -r 127.0.0.1-2007-11-26-18\:31 [EMAIL PROTECTED]:/u02/snap > > Or you can add " " around name of directory. Should work. scp uses : > to split between host and file to copy. > > morr > > -- > Daniel Horecki > http://morr.pl > -- Eduardo Alvarenga
Re: scp doesn´t recognizes 127.0.0.1* as filename
On Nov 26, 2007 2:24 PM, Eduardo Alvarenga <[EMAIL PROTECTED]> wrote: > [EMAIL PROTECTED] crash]# scp -r 127.0.0.1-2007-11-26-18:31 [EMAIL > PROTECTED]:/u02/snap > ssh: 127.0.0.1-2007-11-26-18: Name or service not known > > 127.0.0.1-2007-11-26-18:31 is a directory > > It seems that scp is not understanding that 127.0.0.1-2007-11-26-18:31 is a > directory. > Can anyone help? As indicated by the error message, the issue isn't the 127.0.0.1 prefix but rather the colon. If there's a colon before the first slash in an argument, then scp will treat it as a host:filename specification. If you want it to treat such a name as local, then prefix it with "./", ala: scp -r ./127.0.0.1-2007-11-26-18:31 [EMAIL PROTECTED]:/u02/snap Philip Guenther
Re: scp doesn?t recognizes 127.0.0.1* as filename
By using ./ before the directory/filename it worked. Is it expected? Regards, 2007/11/26, Gilles Chehade <[EMAIL PROTECTED]>: > > On Mon, Nov 26, 2007 at 07:24:09PM -0200, Eduardo Alvarenga wrote: > > Hi there, > > > > [EMAIL PROTECTED] crash]# scp -r 127.0.0.1-2007-11-26-18:31 [EMAIL > > PROTECTED] > :/u02/snap > > ssh: 127.0.0.1-2007-11-26-18: Name or service not known > > > > 127.0.0.1-2007-11-26-18:31 is a directory > > > > It seems that scp is not understanding that 127.0.0.1-2007-11-26-18:31 > is a > > directory. > > Can anyone help? > > > > This is an OpenSSH_3.9p1, OpenSSL 0.9.7a Feb 19 2003 running on RHEL 4.4 > > > > > > Regards, > > > > It is not the 127.0.0.1 part that is not recognized, it is the fact that > parameters which contain ':' are assumed to be of the form 'host:file'. > In this case, it is trying to scp the file '31' from host > 127.0.0.1-2007-11-26-18 > -- Eduardo Alvarenga
Re: scp doesn´t recognizes 127.0.0.1* as filename
It's the colons, not the 127.0.0.1. On Nov 26, 2007 1:24 PM, Eduardo Alvarenga <[EMAIL PROTECTED]> wrote: > Hi there, > > [EMAIL PROTECTED] crash]# scp -r 127.0.0.1-2007-11-26-18:31 [EMAIL > PROTECTED]:/u02/snap > ssh: 127.0.0.1-2007-11-26-18: Name or service not known > > 127.0.0.1-2007-11-26-18:31 is a directory > > It seems that scp is not understanding that 127.0.0.1-2007-11-26-18:31 is a > directory. > Can anyone help? > > This is an OpenSSH_3.9p1, OpenSSL 0.9.7a Feb 19 2003 running on RHEL 4.4 > > > Regards, > > -- > Eduardo Alvarenga > > -- Ticketmaster and Ticketweb suck, but everyone knows that: http://ticketmastersucks.org http://lodesertprotosites.org Dethink to survive - Mclusky
Re: scp doesn´t recognizes 127.0.0.1* as filename
On Nov 26, 2007 10:24 PM, Eduardo Alvarenga <[EMAIL PROTECTED]> wrote: > > [EMAIL PROTECTED] crash]# scp -r 127.0.0.1-2007-11-26-18:31 [EMAIL > PROTECTED]:/u02/snap > ssh: 127.0.0.1-2007-11-26-18: Name or service not known What if you try 'scp -r ./127.0.0.1-2007-11-26-18:31 [EMAIL PROTECTED]:/u02/snap' ? -- Pierre Riteau
Re: scp doesn?t recognizes 127.0.0.1* as filename
On Mon, Nov 26, 2007 at 07:24:09PM -0200, Eduardo Alvarenga wrote: | Hi there, | | [EMAIL PROTECTED] crash]# scp -r 127.0.0.1-2007-11-26-18:31 [EMAIL PROTECTED]:/u02/snap | ssh: 127.0.0.1-2007-11-26-18: Name or service not known | | 127.0.0.1-2007-11-26-18:31 is a directory | | It seems that scp is not understanding that 127.0.0.1-2007-11-26-18:31 is a | directory. | Can anyone help? It's the colon (':') in the filename. Try using double quotes ('"') around the name and replcing the ':' with a '?'. | This is an OpenSSH_3.9p1, OpenSSL 0.9.7a Feb 19 2003 running on RHEL 4.4 Shouldn't you ask this question on a RHEL mailinglist ? Cheers, Paul 'WEiRD' de Weerd -- >[<++>-]<+++.>+++[<-->-]<.>+++[<+ +++>-]<.>++[<>-]<+.--.[-] http://www.weirdnet.nl/
Re: scp doesn´t recognizes 127.0.0.1* as filename
Eduardo Alvarenga wrote: Hi there, [EMAIL PROTECTED] crash]# scp -r 127.0.0.1-2007-11-26-18:31 [EMAIL PROTECTED]:/u02/snap ssh: 127.0.0.1-2007-11-26-18: Name or service not known 127.0.0.1-2007-11-26-18:31 is a directory It seems that scp is not understanding that 127.0.0.1-2007-11-26-18:31 is a directory. Can anyone help? This is an OpenSSH_3.9p1, OpenSSL 0.9.7a Feb 19 2003 running on RHEL 4.4 Regards, That's because your directory name follows the same command pattern that scp looks for: : so it's looking to SCP a directory called '31' on the server '127.0.0.1-2007-11-26-18' to the other server. If you put the filename in quotes, does it work? -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean.
Re: scp doesn?t recognizes 127.0.0.1* as filename
Hi, * Eduardo Alvarenga wrote/schrieb: > [EMAIL PROTECTED] crash]# scp -r 127.0.0.1-2007-11-26-18:31 [EMAIL > PROTECTED]:/u02/snap > ssh: 127.0.0.1-2007-11-26-18: Name or service not known > I think the problem is the ":" in the filename. For me it works with scp -r ./127.0.0.1-2007-11-26-18:31 $TARGET MartinD:
Re: scp doesn?t recognizes 127.0.0.1* as filename
On Mon, Nov 26, 2007 at 07:24:09PM -0200, Eduardo Alvarenga wrote: > Hi there, > > [EMAIL PROTECTED] crash]# scp -r 127.0.0.1-2007-11-26-18:31 [EMAIL > PROTECTED]:/u02/snap > ssh: 127.0.0.1-2007-11-26-18: Name or service not known > > 127.0.0.1-2007-11-26-18:31 is a directory > > It seems that scp is not understanding that 127.0.0.1-2007-11-26-18:31 is a > directory. > Can anyone help? > > This is an OpenSSH_3.9p1, OpenSSL 0.9.7a Feb 19 2003 running on RHEL 4.4 > > > Regards, > It is not the 127.0.0.1 part that is not recognized, it is the fact that parameters which contain ':' are assumed to be of the form 'host:file'. In this case, it is trying to scp the file '31' from host 127.0.0.1-2007-11-26-18 Gilles -- Gilles Chehade http://www.evilkittens.org/ http://www.evilkittens.org/blog/gilles/