コード例 #1
0
ファイル: Provider.php プロジェクト: codeaken/cloudserver
 protected function removeSshKey(SshPublicKey $key)
 {
     $this->sendRequest('delete', 'account/keys/' . $key->getFingerprint());
 }
コード例 #2
0
ファイル: SshKeyTest.php プロジェクト: codeaken/sshkey
 public function testPublicKeyComment()
 {
     $key = SshPublicKey::fromFile("{$this->keysDir}/id_nopass_rsa.pub");
     $this->assertEquals('*****@*****.**', $key->getComment());
 }