简体   繁体   中英

How to connect with linux server using SSH connection?

I am new to SSH connection & trying to connect using SSH connection but getting exception:

Inheritance security rules violated while overriding member: 'Renci.SshNet.Common.SshException.GetObjectData(System.Runtime.Serialization.SerializationInfo, System.Runtime.Serialization.StreamingContext)'

Security accessibility of the overriding method must match the security accessibility of the method being overriden.

Please somebody help me to resolve this issue

Mark GetObjectData with SecurityCriticalAttribute , because it's applied to Exception.GetObjectData . An overridden member should have the same security accessibility (Critical, Safe Critical or Transparent).

More info

在此处输入图片说明

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM