SSH Factory for .NET

Scp Members

Scp overview

Public Instance Constructors

Scp Overloaded. Initializes a new instance of the Scp class.

Public Instance Properties

Configuration The SSH confguration.
Connected Connected flag.
Container (inherited from Component)Gets the IContainer that contains the Component.
Debug Debug property.
DebugStream The debug stream.
DownloadingBufferSize Download block size in bytes. Set 0 to adaptive buffer size.
HostKeys Gets SSH host keys for further use.
Hostname Server host/IP.
LicenseKey License key.
LocalDir Local directory.
Parameters The connection parameters.
Password The current user password.
Port Server port.
PreserveTime Preserve file time flag.
PrivateKey The current user key file.
Site (inherited from Component)Gets or sets the ISite of the Component.
Timeout The connection timeout defined in milliseconds.
UploadingBufferSize Upload block size in bytes. Set 0 to adaptive buffer size.
Username The current username.

Public Instance Methods

Connect Connects to the server.
CreateObjRef (inherited from MarshalByRefObject)Creates an object that contains all the relevant information required to generate a proxy used to communicate with a remote object.
Disconnect Disconnects from the server.
Dispose (inherited from Component)Releases all resources used by the Component.
DownloadOverloaded. Downloads file from SSH server and writes to specified output stream.
DownloadDir Downloads remote directory and contents recursively from SSH server. Downloads are stored relative to current local directory.
Equals (inherited from Object)Determines whether the specified Object is equal to the current Object.
GetHashCode (inherited from Object)Serves as a hash function for a particular type. GetHashCode is suitable for use in hashing algorithms and data structures like a hash table.
GetLifetimeService (inherited from MarshalByRefObject)Retrieves the current lifetime service object that controls the lifetime policy for this instance.
GetType (inherited from Object)Gets the Type of the current instance.
InitializeLifetimeService (inherited from MarshalByRefObject)Obtains a lifetime service object to control the lifetime policy for this instance.
MdownloadOverloaded. Downloads specified files in current working remote directory from SSH server to local directory. Do not use this method to download a directory, see downloadDir(String) method. Downloads are stored relative to current local directory.
MuploadOverloaded. Uploads multiple files to SSH server. Uploads are performed relative to current local directory.
ToString (inherited from Component)Returns a String containing the name of the Component, if any. This method should not be overridden.
UploadOverloaded. Uploads file to SSH server where contents of file is not on disk but in memory.
UploadDirOverloaded. Uploads the specified directory.

Public Instance Events

Disposed (inherited from Component)Adds an event handler to listen to the Disposed event on the component.
ScpConnectedEventOccurs after a successful connection to the SSH server.
ScpDisconnectedEventOccurs after disconnecting from the SSH server.
ScpDownloadEventOccurs after a file is downloaded.
ScpProgressEventOccurs periodically during a file transfer to mark it's progress.
ScpUploadEventOccurs after a file is uploaded.

See Also

Scp Class | Jscape.Scp Namespace