Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

index error for ssh_known_hosts_file #11

Closed
StefanKarpinski opened this issue Dec 9, 2020 · 0 comments
Closed

index error for ssh_known_hosts_file #11

StefanKarpinski opened this issue Dec 9, 2020 · 0 comments
Assignees

Comments

@StefanKarpinski
Copy link
Member

julia> ENV["SSH_KNOWN_HOSTS_FILES"] = ""
""

julia> ssh_known_hosts_files()
String[]

julia> ssh_known_hosts_file()
ERROR: BoundsError: attempt to access 0-element Vector{String} at index [1]
Stacktrace:
 [1] getindex
   @ ./array.jl:787 [inlined]
 [2] ssh_known_hosts_file()
   @ NetworkOptions ~/dev/julia/usr/share/julia/stdlib/v1.6/NetworkOptions/src/ssh_options.jl:141
 [3] top-level scope
   @ REPL[30]:1
@StefanKarpinski StefanKarpinski self-assigned this Dec 9, 2020
StefanKarpinski added a commit that referenced this issue Dec 9, 2020
We should return an empty file if there are no known hosts files
as this will cause no hosts to be considered known, which means
we're defaulting secure here.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant