Bug 854125 - scp paused when used "-f" option
scp paused when used "-f" option
Status: CLOSED NOTABUG
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: openssh (Show other bugs)
6.4
Unspecified Unspecified
unspecified Severity unspecified
: rc
: ---
Assigned To: Petr Lautrbach
BaseOS QE Security Team
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2012-09-04 02:19 EDT by xu
Modified: 2012-10-11 12:13 EDT (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2012-10-11 12:13:47 EDT
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)
strace.log (17.24 KB, text/x-log)
2012-09-04 02:19 EDT, xu
no flags Details

  None (edit)
Description xu 2012-09-04 02:19:40 EDT
Created attachment 609553 [details]
strace.log

Description of problem:

scp pasued when I use " -r -v -f" option to copy files from local host to a remote host; if we hit "Enter" double hit "Enter" in keyboard  scp exit without any error message; check return code with "echo $?" it return 1;

I can ssh from local host to remote host,so no networking issue between localhost and remote host; and if I remove "-f" option, everything work as expect;

Version-Release number of selected component (if applicable):


How reproducible:

100%

Steps to Reproduce:
1. open a terminal and executed "scp /root/*.log  root@<remote_host_IP>:/tmp/"
2. wait ro read password

  
Actual results:

ssh paused

Expected results:

ask use to input password,then begin to copy files

Additional info:

I can't found "-f" option in man package of scp , if "-f" option is not support, scp should print error message, and print usage info;

start scp with strace, it look scp alway wait for read, please see attachment
Comment 1 xu 2012-09-04 02:23:06 EDT
packages:(In reply to comment #0)
> Created attachment 609553 [details]
> strace.log
> 
> Description of problem:
> 
> scp pasued when I use " -r -v -f" option to copy files from local host to a
> remote host; if we hit "Enter" double hit "Enter" in keyboard  scp exit
> without any error message; check return code with "echo $?" it return 1;
> 
> I can ssh from local host to remote host,so no networking issue between
> localhost and remote host; and if I remove "-f" option, everything work as
> expect;
> 
> Version-Release number of selected component (if applicable):
> 
> 
> How reproducible:
> 
> 100%
> 
> Steps to Reproduce:
> 1. open a terminal and executed "scp /root/*.log 
> root@<remote_host_IP>:/tmp/"
> 2. wait ro read password
> 
>   
> Actual results:
> 
> ssh paused
> 
> Expected results:
> 
> ask use to input password,then begin to copy files
> 
> Additional info:
> 
> I can't found "-f" option in man package of scp , if "-f" option is not
> support, scp should print error message, and print usage info;
> 
> start scp with strace, it look scp alway wait for read, please see attachment

packages version:openssh-clients-5.3p1-81.el6.x86_64
Comment 3 Petr Lautrbach 2012-10-11 12:13:47 EDT
This is not documented intentionally  as it's used only for internal purposes. See https://blogs.oracle.com/janp/entry/how_the_scp_protocol_works

Note You need to log in before you can comment on or make changes to this bug.