[PHP-NOTES] note 130553 added to function.ssh2-auth-pubkey-file

[email protected] ("[email protected]") Fri, 21 Nov 2025 14:51:29 +0000
Newsgroups php.notes
Message-ID <[email protected]>
github.com/php/pecl-networking-ssh2/pull/56

ssh2_auth_pubkey(resource $session, string $username, string $pubkey, string $privkey, string $passphrase = ?): resource 

exist to pass both keys as string.

bugs.php.net/patch-display.php?bug=79702&patch=ssh2_fix_nullpointer_deref.patch&revision=1617965812

And you may get a:
"Program received signal SIGSEGV, Segmentation fault."

for some libssh2 versions when not setting a passphrase.
----
Server IP: 45.112.84.4
Probable Submitter: 80.90.5.137 (proxied: 146.0.122.9)
----
Manual Page -- https://php.net/manual/en/function.ssh2-auth-pubkey-file.php
Edit        -- https://main.php.net/note/edit/130553
Del: integrated  -- https://main.php.net/note/delete/130553/integrated
Del: useless     -- https://main.php.net/note/delete/130553/useless
Del: bad code    -- https://main.php.net/note/delete/130553/bad+code
Del: spam        -- https://main.php.net/note/delete/130553/spam
Del: non-english -- https://main.php.net/note/delete/130553/non-english
Del: in docs     -- https://main.php.net/note/delete/130553/in+docs
Del: other reasons-- https://main.php.net/note/delete/130553
Reject      -- https://main.php.net/note/reject/130553
Search      -- https://main.php.net/manage/user-notes.php