I would like to write a PHP script where I can easily test credential which I have for sftp connection, is right or wrong.
So I easily completed this script when I have user name and password but I have problem with public key. So what will be the code for checking the public means I have following information to connect with a server through ssh:-
host name:- domain.com port number:- 22 for authentication:- public key(.ppk file)
I am able to connect with filezilla but how can make the some connection with php script.