|
|
@@ -44,12 +44,6 @@ namespace Renci.SshNet
|
|
|
/// Initializes a new instance of the <see cref="SshClient" /> class.
|
|
|
/// </summary>
|
|
|
/// <param name="connectionInfo">The connection info.</param>
|
|
|
- /// <example>
|
|
|
- /// <code source="..\..\src\Renci.SshNet.Tests\Classes\PasswordConnectionInfoTest.cs" region="Example PasswordConnectionInfo" language="C#" title="Connect using PasswordConnectionInfo object" />
|
|
|
- /// <code source="..\..\src\Renci.SshNet.Tests\Classes\PasswordConnectionInfoTest.cs" region="Example PasswordConnectionInfo PasswordExpired" language="C#" title="Connect using PasswordConnectionInfo object with passwod change option" />
|
|
|
- /// <code source="..\..\src\Renci.SshNet.Tests\Classes\PrivateKeyConnectionInfoTest.cs" region="Example PrivateKeyConnectionInfo PrivateKeyFile" language="C#" title="Connect using PrivateKeyConnectionInfo" />
|
|
|
- /// <code source="..\..\src\Renci.SshNet.Tests\Classes\SshClientTest.cs" region="Example SshClient Connect Timeout" language="C#" title="Specify connection timeout when connecting" />
|
|
|
- /// </example>
|
|
|
/// <exception cref="ArgumentNullException"><paramref name="connectionInfo"/> is <see langword="null"/>.</exception>
|
|
|
public SshClient(ConnectionInfo connectionInfo)
|
|
|
: this(connectionInfo, ownsConnectionInfo: false)
|
|
|
@@ -80,9 +74,6 @@ namespace Renci.SshNet
|
|
|
/// <param name="host">Connection host.</param>
|
|
|
/// <param name="username">Authentication username.</param>
|
|
|
/// <param name="password">Authentication password.</param>
|
|
|
- /// <example>
|
|
|
- /// <code source="..\..\src\Renci.SshNet.Tests\Classes\SshClientTest.cs" region="Example SshClient(host, username) Connect" language="C#" title="Connect using username and password" />
|
|
|
- /// </example>
|
|
|
/// <exception cref="ArgumentNullException"><paramref name="password"/> is <see langword="null"/>.</exception>
|
|
|
/// <exception cref="ArgumentException"><paramref name="host"/> is invalid, or <paramref name="username"/> is <see langword="null"/> or contains only whitespace characters.</exception>
|
|
|
public SshClient(string host, string username, string password)
|
|
|
@@ -97,10 +88,6 @@ namespace Renci.SshNet
|
|
|
/// <param name="port">Connection port.</param>
|
|
|
/// <param name="username">Authentication username.</param>
|
|
|
/// <param name="keyFiles">Authentication private key file(s) .</param>
|
|
|
- /// <example>
|
|
|
- /// <code source="..\..\src\Renci.SshNet.Tests\Classes\SshClientTest.cs" region="Example SshClient(host, username) Connect PrivateKeyFile" language="C#" title="Connect using username and private key" />
|
|
|
- /// <code source="..\..\src\Renci.SshNet.Tests\Classes\SshClientTest.cs" region="Example SshClient(host, username) Connect PrivateKeyFile PassPhrase" language="C#" title="Connect using username and private key and pass phrase" />
|
|
|
- /// </example>
|
|
|
/// <exception cref="ArgumentNullException"><paramref name="keyFiles"/> is <see langword="null"/>.</exception>
|
|
|
/// <exception cref="ArgumentException"><paramref name="host"/> is invalid, -or- <paramref name="username"/> is <see langword="null"/> or contains only whitespace characters.</exception>
|
|
|
/// <exception cref="ArgumentOutOfRangeException"><paramref name="port"/> is not within <see cref="IPEndPoint.MinPort"/> and <see cref="IPEndPoint.MaxPort"/>.</exception>
|
|
|
@@ -116,10 +103,6 @@ namespace Renci.SshNet
|
|
|
/// <param name="host">Connection host.</param>
|
|
|
/// <param name="username">Authentication username.</param>
|
|
|
/// <param name="keyFiles">Authentication private key file(s) .</param>
|
|
|
- /// <example>
|
|
|
- /// <code source="..\..\src\Renci.SshNet.Tests\Classes\SshClientTest.cs" region="Example SshClient(host, username) Connect PrivateKeyFile" language="C#" title="Connect using private key" />
|
|
|
- /// <code source="..\..\src\Renci.SshNet.Tests\Classes\SshClientTest.cs" region="Example SshClient(host, username) Connect PrivateKeyFile PassPhrase" language="C#" title="Connect using private key and pass phrase" />
|
|
|
- /// </example>
|
|
|
/// <exception cref="ArgumentNullException"><paramref name="keyFiles"/> is <see langword="null"/>.</exception>
|
|
|
/// <exception cref="ArgumentException"><paramref name="host"/> is invalid, -or- <paramref name="username"/> is <see langword="null"/> or contains only whitespace characters.</exception>
|
|
|
public SshClient(string host, string username, params IPrivateKeySource[] keyFiles)
|
|
|
@@ -177,10 +160,6 @@ namespace Renci.SshNet
|
|
|
/// Adds the forwarded port.
|
|
|
/// </summary>
|
|
|
/// <param name="port">The port.</param>
|
|
|
- /// <example>
|
|
|
- /// <code source="..\..\src\Renci.SshNet.Tests\Classes\ForwardedPortRemoteTest.cs" region="Example SshClient AddForwardedPort Start Stop ForwardedPortRemote" language="C#" title="Remote port forwarding" />
|
|
|
- /// <code source="..\..\src\Renci.SshNet.Tests\Classes\ForwardedPortLocalTest.cs" region="Example SshClient AddForwardedPort Start Stop ForwardedPortLocal" language="C#" title="Local port forwarding" />
|
|
|
- /// </example>
|
|
|
/// <exception cref="InvalidOperationException">Forwarded port is already added to a different client.</exception>
|
|
|
/// <exception cref="ArgumentNullException"><paramref name="port"/> is <see langword="null"/>.</exception>
|
|
|
/// <exception cref="SshConnectionException">Client is not connected.</exception>
|
|
|
@@ -265,10 +244,6 @@ namespace Renci.SshNet
|
|
|
/// <param name="commandText">The command text.</param>
|
|
|
/// <returns>Returns an instance of <see cref="SshCommand"/> with execution results.</returns>
|
|
|
/// <remarks>This method internally uses asynchronous calls.</remarks>
|
|
|
- /// <example>
|
|
|
- /// <code source="..\..\src\Renci.SshNet.Tests\Classes\SshCommandTest.cs" region="Example SshCommand RunCommand Result" language="C#" title="Running simple command" />
|
|
|
- /// <code source="..\..\src\Renci.SshNet.Tests\Classes\SshCommandTest.cs" region="Example SshCommand RunCommand Parallel" language="C#" title="Run many commands in parallel" />
|
|
|
- /// </example>
|
|
|
/// <exception cref="ArgumentException">CommandText property is empty.</exception>
|
|
|
/// <exception cref="SshException">Invalid Operation - An existing channel was used to execute this command.</exception>
|
|
|
/// <exception cref="InvalidOperationException">Asynchronous operation is already in progress.</exception>
|