|  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
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
Solve the problem:
39 - 20 = ?
Subscribe to this entry?

 [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-2023 The PHP Group
All rights reserved.
Last updated: Tue Sep 26 16:01:24 2023 UTC