RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 854125 - scp paused when used "-f" option
Summary: scp paused when used "-f" option
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: openssh
Version: 6.4
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: ---
Assignee: Petr Lautrbach
QA Contact: BaseOS QE Security Team
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-09-04 06:19 UTC by Xu Tian
Modified: 2012-10-11 16:13 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-10-11 16:13:47 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
strace.log (17.24 KB, text/x-log)
2012-09-04 06:19 UTC, Xu Tian
no flags Details

Description Xu Tian 2012-09-04 06:19:40 UTC
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 Tian 2012-09-04 06:23:06 UTC
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 16:13:47 UTC
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.