Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Prevent openssh from sending "--" to the server with scp?
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  3 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
matt.pouns...@gmail.com  
View profile  
 More options Aug 29 2012, 3:55 pm
Newsgroups: comp.security.ssh
From: matt.pouns...@gmail.com
Date: Wed, 29 Aug 2012 12:55:16 -0700 (PDT)
Local: Wed, Aug 29 2012 3:55 pm
Subject: Prevent openssh from sending "--" to the server with scp?
Apologies if this is handled somewhere, "--" is unbelievably hard to google for in context.

I'm having a problem with an embedded system which doesn't like the '--' that the scp client in openssh sends to end argument processing.

debug1: Sending command: scp -v -f -- /foo.txt
Received disconnect from 10.1.1.1: 2: Protocol error.

I'm working with the vendor to see if we can get the server fixed, but in the mean time I'm looking for a workaround.  Does anyone know of a way to convince the openssh to not send the --?  I know it can work since older versions didn't send it... we ran into this problem while migrating some scriptery to a newer box.

Thanks for any suggestions!
   Matt


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Richard E. Silverman  
View profile  
 More options Aug 29 2012, 6:59 pm
Newsgroups: comp.security.ssh
From: Richard E. Silverman <r...@qoxp.net>
Date: Wed, 29 Aug 2012 18:59:35 -0400
Local: Wed, Aug 29 2012 6:59 pm
Subject: Re: Prevent openssh from sending "--" to the server with scp?

matt.pouns...@gmail.com writes:
> Apologies if this is handled somewhere, "--" is unbelievably hard to google for in context.

> I'm having a problem with an embedded system which doesn't like the '--' that the scp client in openssh sends to end argument processing.

> debug1: Sending command: scp -v -f -- /foo.txt
> Received disconnect from 10.1.1.1: 2: Protocol error.

This was fixed in OpenSSH 6.0, which now adds the "--" only if needed
because of a leading "-" in the next token on the command line:

[scp.c]
-                       xasprintf(&bp, "%s -f -- %s", cmd, src);
+                       xasprintf(&bp, "%s -f %s%s", cmd,
+                           *src == '-' ? "-- " : "", src);

So, you could avoid this by upgrading the client.

- Richard


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
matt.pouns...@gmail.com  
View profile  
 More options Aug 29 2012, 10:33 pm
Newsgroups: comp.security.ssh
From: matt.pouns...@gmail.com
Date: Wed, 29 Aug 2012 19:33:10 -0700 (PDT)
Local: Wed, Aug 29 2012 10:33 pm
Subject: Re: Prevent openssh from sending "--" to the server with scp?
On Wednesday, 29 August 2012 18:59:37 UTC-4, Richard E. Silverman  wrote:

> So, you could avoid this by upgrading the client.

Ah excellent. Thanks!

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »