phpseclib login failed

Ask about general coding issues or problems here.

Moderators: egami, macek, gesf

Post Reply
php-forum GURU
php-forum GURU
Posts: 1803
Joined: Thu Mar 10, 2011 5:07 pm

Wed Oct 02, 2013 6:22 am

The user name and password looks like is invalid. Please check if this user name and password is available.
New php-forum User
New php-forum User
Posts: 5
Joined: Thu Apr 19, 2018 2:48 am

Tue Feb 12, 2019 10:55 pm

Did you add this code to indexaction method in defaultcontroller?

$sftp = new SFTP('46.xxxx.5.xxxxx');

$sftp_login = $sftp->login('master_xxxxxxekh', 'fxxxxxh6');

It should look like this

Code: Select all

class DefaultController extends Controller
    * @Route("/", name="homepage")
   public function indexAction(Request $request)
$sftp = new SFTP('46.xxxx.5.23xx');
$sftp_login = $sftp->login('master_xjxxxxqsxxxh', 'f6xxxxsh6');
        if($sftp_login) {
              return $this->render('default/test.html.twig', array(
              'path' => $sftp->exec('pwd'),
Source: phpseclib
Post Reply