for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Dazzle\SSH\Auth;
use Dazzle\SSH\SSH2AuthInterface;
/**
* Username based SSH2 authentication.
*/
class SSH2None implements SSH2AuthInterface
{
* @var string
protected $username;
* @param string $username The authentication username
public function __construct($username)
$this->username = $username;
}
* @override
* @inheritDoc
public function authenticate($conn)
return true === @ssh2_auth_none($conn, $this->username);