[Bug 160631] Re: scp does not validate existance of file before connecting to remote host

Bryce Harrington 160631 at bugs.launchpad.net
Wed Sep 6 04:48:29 UTC 2023


Reported to be fixed in 1:9.4p1-1

     - scp(1): when copying local->remote, check that the source file exists
       before opening an SFTP connection to the server (closes: #59255).

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to openssh in Ubuntu.
https://bugs.launchpad.net/bugs/160631

Title:
  scp does not validate existance of file before connecting to remote
  host

Status in openssh package in Ubuntu:
  Triaged
Status in openssh package in Debian:
  Fix Released

Bug description:
  Binary package hint: openssh-client

  This is a minor issue, but if you attempt to copy a non-existent file
  to an existing host, scp fails to detect this basic issue until
  *after* you have been prompted for the remote systems password.

  Steps to recreate:

  1. scp this_file_does_not_exist localhost:/tmp
  2. enter your password for localhost
  3. observe the error:

  > scp this_file_does_not_exist localhost:/tmp
  user at localhost's password:
  this_file_does_not_exist: No such file or directory
  >

  This is with feisty (openssh-client version 4.3p2-8ubuntu1).

  Thanks for reading!

  LAST VERSION TESTED: openssh-client 1:5.5p1-4ubuntu4 (Maverick)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/openssh/+bug/160631/+subscriptions




More information about the foundations-bugs mailing list