|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #57451 scp to a lsh server fails
Submitted: 2006-12-22 05:43 UTC Modified: 2012-06-14 21:20 UTC
Avg. Score:4.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:0 (0.0%)
Same OS:1 (100.0%)
From: alex at alatest dot com Assigned: langemeijer (profile)
Status: Closed Package: ssh2 (PECL)
PHP Version: 5.1.2 OS: debian
Private report: No CVE-ID: None
 [2006-12-22 05:43 UTC] alex at alatest dot com
When trying to move a file to a remote server which doesn't run opensshd but lshd i fails.

Reproduce code:
$connection = ssh2_connect('', 22);
if(!ssh2_auth_password ($connection, "user", "password")) {
  print("[picture] error logging in");
ssh2_scp_send($connection, "/tmp/t.php", "/tmp/t.php", 0644);

Expected result:
that the file is transfered

Actual result:
Warning: ssh2_scp_send(): Failure creating remote file in /tmp/t.php on line 8

(line 8 is ssh2_scp_send line)


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2009-12-30 11:42 UTC]
I do have the same problem on php 5.2.6 with ssh extension  version 0.11.0-dev
 [2010-10-01 03:21 UTC] didar dot hossain at gmail dot com
This is a Debian platform bug and not a PHP bug. The behaviour is reproducible even from the shell and not just PHP.

This bug needs to be opened in Debian BTS (probably is) and not here. Someone please close this bug from here.

 [2012-06-14 21:20 UTC]
-Status: Open +Status: Closed -Assigned To: +Assigned To: langemeijer
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Mon Jun 24 15:01:31 2024 UTC