Bug 3163 - teach ssh-keyscan to use ssh_config (plus options like ProxyJump)
Summary: teach ssh-keyscan to use ssh_config (plus options like ProxyJump)
Status: NEW
Alias: None
Product: Portable OpenSSH
Classification: Unclassified
Component: ssh-keyscan (show other bugs)
Version: 7.4p1
Hardware: Other Linux
: P5 enhancement
Assignee: Assigned to nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-05-11 19:18 AEST by jirib
Modified: 2020-05-11 19:18 AEST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description jirib 2020-05-11 19:18:55 AEST
The goal was to ust ssh-keyscan for hosts behind ssh jumpbox.

My ssh_config has ProxyJump defined for each host behind jumpbox.

But it seems `ssh-keyscan' does not consult the ssh_config at all (checked with `strace'). It reported:

---%>---
# ssh-keyscan -v foo-host
getaddrinfo foo-host: Name or service not known
---%<---

ssh_config was something like that

---%>---
Host foo-host
    Hostname 10.72.8.4
    ProxyJump backup@jumpbox.example.com
---%<---