note 68046 added to function.ssh2-publickey-add

From: Date: Tue, 11 Jul 2006 16:12:18 +0000
Subject: note 68046 added to function.ssh2-publickey-add
Groups: php.notes 
Request: Send a blank email to php-notes+get-114673@lists.php.net to get a copy of this message
The above example should be: ... $ssh2 = ssh2_connect('shell.example.com', 22); ssh2_auth_password($ssh2, 'jdoe', 'password'); $pkey = ssh2_publickey_init($ssh2); $keyblob = base64_decode(' AAAAB3NzaC1yc2EAAAABIwAAAIEA5HVt6VqSGd5PTrLRdjNONxXH1tVFGn0 Bd26BF0aCP9qyJRlvdJ3j4WBeX4ZmrveGrjMgkseSYc4xZ26sDHwfL351xj zaLpipu\BGRrw17mWVBhuCExo476ri5tQFzbTc54VEHYckxQ16CjSTibI5X 69GmnYC9PNqEYq/1TP+HF10='); ssh2_publickey_add($pkey, 'ssh-rsa', $keyblob, false, array('comment'=>"John's Key")); ... As the ssh2_publickey_init function returns the resource that is used by the ssh2_publickey_add function. ---- Server IP: 64.71.164.2 Probable Submitter: 12.43.226.18 ---- X-Spam-Status: No, hits=3.8 required=5.0 tests=DATE_MISSING,FROM_NO_LOWER, UPPERCASE_25_50 autolearn=no version=2.64 ---- Manual Page -- http://www.php.net/manual/en/function.ssh2-publickey-add.php Edit -- http://master.php.net/note/edit/68046 Del: integrated -- http://master.php.net/note/delete/68046/integrated Del: useless -- http://master.php.net/note/delete/68046/useless Del: bad code -- http://master.php.net/note/delete/68046/bad+code Del: spam -- http://master.php.net/note/delete/68046/spam Del: non-english -- http://master.php.net/note/delete/68046/non-english Del: in docs -- http://master.php.net/note/delete/68046/in+docs Del: other reasons-- http://master.php.net/note/delete/68046 Reject -- http://master.php.net/note/reject/68046 Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#114673) next »