[Bug 2019010] Re: environment variable SSH_ORIGINAL_COMMAND on server side set with wrong value

Andrey 2019010 at bugs.launchpad.net
Thu May 11 15:43:30 UTC 2023


Hello
I so that when it  using scp with -O option " Use the legacy SCP protocol ..." it is working.
The problem is that it is not always possible to force client to use additional switch.
it is many cases when  SSH_ORIGINAL_COMMAND is checked on server and additional decision is made on it . Is it possible to  set this variable on server side to "original" meaning  even when SFTP protocol is used for file transfer ? 
Thnaks.

-- 
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/2019010

Title:
  environment variable SSH_ORIGINAL_COMMAND  on server side set with
  wrong value

Status in openssh package in Ubuntu:
  Incomplete

Bug description:
  After updating to Ubuntu 23.04 when running  scp command environment variable SSH_ORIGINAL_COMMAND on server side is set with SSH_ORIGINAL_COMMAND=/usr/libexec/openssh/sftp-server.
  With  previous version this environment variable  was set to "scp -t <file name>" or "scp -f  <file name>" depends on if it was push or get command to copy file from or to remote system
  SSH_ORIGINAL_COMMAND environment variable is used to validate scp command on server side.
    
  System information:
  lsb_release -rd
  No LSB modules are available.
  Description:	Ubuntu 23.04
  Release:	23.04

  
  apt-cache policy openssh-client
  openssh-client:
    Installed: 1:9.0p1-1ubuntu8
    Candidate: 1:9.0p1-1ubuntu8
    Version table:
   *** 1:9.0p1-1ubuntu8 500
          500 http://us.archive.ubuntu.com/ubuntu lunar/main amd64 Packages
          100 /var/lib/dpkg/status

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




More information about the foundations-bugs mailing list