Session.ScanFingerprint Method

Syntax

C#
public string ScanFingerprint(SessionOptions sessionOptions)
VB.NET
Public Function ScanFingerprint(ByVal sessionOptions As SessionOptions) As String

Parameters

Name Description
SessionOptions sessionOptions Defines a server to scan the fingerprint of.
The Protocol property must be Protocol.Sftp or Protocol.Scp, or Protocol.Ftp with FtpSecure being FtpSecure.Implicit or FtpSecure.Explicit, or Protocol.Webdav with WebdavSecure being true. Other than that only the HostName needs to be set. The PortNumber, Timeout and few raw session settings can be set, if necessary. The other properties are ignored.

Return Value

A fingerprint of the SSH server public key (hostkey) for SFTP and SCP protocols. A fingerprint of server's TLS certificate for FTPS and WebDAVS protocols.

Exceptions

Exception Condition
InvalidOperationException Session is already opened.
ArgumentException
ArgumentOutOfRangeException
Invalid combination of values of SessionOptions properties.
SessionLocalException Error communicating with winscp.com.
See the exception documentation for details.
SessionRemoteException Connection has failed.
See the exception documentation for details.
TimeoutException Timeout waiting for winscp.com to respond.

Examples

Real-Life Examples

 
  library_session_scanfingerprint.txt · Last modified: by martin
 

Search Documentation

This page

Donate

About donations

$9   $19   $49   $99

About donations

Recommend

Associations

Site design by Black Gate