php.net |  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
Votes:1
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 Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: alex at alatest dot com
New email:
PHP Version: OS:

 

 [2006-12-22 05:43 UTC] alex at alatest dot com
Description:
------------
When trying to move a file to a remote server which doesn't run opensshd but lshd i fails.



Reproduce code:
---------------
$connection = ssh2_connect('server.com', 22);
if(!ssh2_auth_password ($connection, "user", "password")) {
  print("[picture] error logging in");
  exit(1);
}
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)

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2009-12-30 11:42 UTC] cweiske@php.net
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.

Didar
 [2012-06-14 21:20 UTC] langemeijer@php.net
-Status: Open +Status: Closed -Assigned To: +Assigned To: langemeijer
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Mon Dec 30 14:01:28 2024 UTC