Skip to content

insecure default SSH behavior when .ssh/known_hosts is missing #16197

@bagder

Description

@bagder

I did this

Such a situation causes as warning to get displayed but does not prevent the transfer to be attempted.

This was not considered a security vulnerability by the curl security team, but should be improved.

It should be noted that an SSH connection can still be verified without a known hosts file with the use of --hostpubsha256 or --hostpubmd5 (and their libcurl counterparts of course).

Reported-by: Harry Sintonen

I expected the following

If no file is there and no extra option is used, it should probably require --insecure to continue.

curl/libcurl version

master

operating system

any

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions