tomohulk / WinSCP

WinSCP PowerShell Wrapper Module
GNU General Public License v3.0
153 stars 30 forks source link

New Function: Get-WinSCPSshServerPublicKeyFingerprint #56

Closed dotps1 closed 7 years ago

dotps1 commented 7 years ago

Impliment new function for ScanFingerprint method: https://winscp.net/eng/docs/library_session_scanfingerprint

dotps1 commented 7 years ago

The WinSCP.SessionOptions have been split from the New-WinSCPSession cmdlet, so it can be resued in the function. #58.

dotps1 commented 7 years ago

Example output:

GitHub:\WinSCP [master ≡]> Get-WinSCPSshServerPublicKeyFingerprint -SessionOption (New-WinSCPSessionOption -HostName $env:COMPUTERNAME -FtpSecure Implicit -Protocol Ftp)
06:04:fa:b1:fb:b2:5e:dd:a9:xx:xx:xx:dc:2b:e1:d6:xx:xx:xx:xx
dotps1 commented 7 years ago

Changed the name to Get-WinSCPSshHostKeyFingerprint.