SystemWebService.GetSshKey Method 

Retrieves SSH key required for VPS publishing procedures. This feature is not used in SiteBuilder for Windows. The method provides compatibility with new versions of SiteBuilder for Unix.

[C#]
public string GetSshKey(
   SshProtocol protocol,
   bool forceGenerate
);

Parameters

protocol
Type of SSH requested key.
forceGenerate
Boolean indicator. If set to true, new key is be generated. Otherwise, a stored key is be used (if it exists). If there is no stored key, then new key is generated.

Return Value

null

Example SOAP 1.1

Request
POST /wsb/ServiceFacade/3.2.1/SystemWebService.asmx HTTP/1.1
Host: localhost
Content-Type: text/xml; charset=utf-8
Content-Length: length
SOAPAction: "http://swsoft.com/webservices/sb/3.2.1/SystemService/GetSshKey"

<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
  <soap:Header>
    <CredentialsSoapHeader xmlns="http://swsoft.com/webservices/sb/3.2.1/SystemService">
      <Login>string</Login>
      <Password>string</Password>
    </CredentialsSoapHeader>
  </soap:Header>
  <soap:Body>
    <GetSshKey xmlns="http://swsoft.com/webservices/sb/3.2.1/SystemService">
      <protocol>SSH or SSH2</protocol>
      <forceGenerate>boolean</forceGenerate>
    </GetSshKey>
  </soap:Body>
</soap:Envelope>
Response
HTTP/1.1 200 OK
Content-Type: text/xml; charset=utf-8
Content-Length: length

<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
  <soap:Body>
    <GetSshKeyResponse xmlns="http://swsoft.com/webservices/sb/3.2.1/SystemService">
      <GetSshKeyResult>string</GetSshKeyResult>
    </GetSshKeyResponse>
  </soap:Body>
</soap:Envelope>

See Also

SystemWebService Web Service | Web services