Comments (3)
Intentional, maybe? HostKeyName
is not really documented but currently returns the signature format identifier which is usually the same as the key format identifier: the key format identifier for RSA keys is ssh-rsa
and the signature format identifier for a SHA1 signature is also ssh-rsa
.
#1177 tells the server that we would prefer to validate the host key with a SHA2 signature AKA the signature format identifiers rsa-sha2-256
and rsa-sha2-512
which is what your server has given us.
As to whether HostKeyName
should return the key format identifier or signature format identifier, I don't really know. What do you use it for?
from ssh.net.
We compare the name, length and fingerprint match against what we expect for each connection to set CanTrust and so with this change the name no longer matches.
Probably not really necessary to compare more than the fingerprint though 🤷
from ssh.net.
Indeed, the SHA2 fingerprint is enough (HostKeyEventArgs.FingerPrintSHA256
). That would be the easiest fix here, until someone willing is convinced HostKeyName
should change.
from ssh.net.
Related Issues (20)
- OpenRead(path) disposed Stream immediately HOT 14
- Remove SHA-1 Signature Support HOT 9
- Question: CVE-2023-48795 HOT 4
- Software on Linux becomes blocked when the connection is lost during an upload HOT 1
- Renci.SshNet.Common.SshException: Failed to open local file HOT 1
- shellStream.ReadLine() does not return last line HOT 3
- ssh.net is missing NuGet package README file HOT 2
- Renci.SshNet.Sftp : SftpClient AppendAllText does not work for complex file types such as .docx or .xlsx HOT 3
- Discussion: Class-level expectSize or method-level expectSize. HOT 3
- SftpClient: slow download HOT 1
- Timeout not followed when connecting via SOCKS HOT 2
- How to symlink a file in the same directory
- can we make a SSH DLL HOT 5
- Renci.SshNet.Common.SshAuthenticationException: Permission denied HOT 1
- State of SSH.NET Extension HOT 2
- Session operation has timed out HOT 2
- RequestReadLink
- we have a requirement to enable the following ciphers ([email protected], [email protected], [email protected]) HOT 1
- How to use command line option HOT 2
- Able to Connect but Unable to Execute command HOT 14
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ssh.net.