Bug 1400779 - Virt-manager doesn't honor ~/.ssh/config
Summary: Virt-manager doesn't honor ~/.ssh/config
Keywords:
Status: CLOSED INSUFFICIENT_DATA
Alias: None
Product: Virtualization Tools
Classification: Community
Component: virt-manager
Version: unspecified
Hardware: x86_64
OS: Linux
unspecified
high
Target Milestone: ---
Assignee: Cole Robinson
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-12-02 03:37 UTC by Alphakarem
Modified: 2016-12-22 19:48 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-12-22 19:48:19 UTC


Attachments (Terms of Use)

Description Alphakarem 2016-12-02 03:37:48 UTC
Description of problem:
if using virt-manager on a Fedora 25 to remotely manage hosts ( Centos 7.2 for example ) using SSH, the client doesn't honor configurations in .ssh/config file related to the hosts. in particular and in more details, if I have a remote KVM host and I wish to use virt-manager to manage it and there is a stanza for the host in ~/.ssh/config relating to which SSH key it should use,  virt-manager will not use that particular key even if "IdentitiesOnly yes" directive is used. In the same time, the same host is accessible without issues using the same ssh config file using shell.

Version-Release number of selected component (if applicable): virt-manager Ver. 1.4.0


How reproducible:


Steps to Reproduce:
1. try to connect to a remote KVM host specifying which SSH key to use ( ssh-agent is at play with many keys )
2. on the remote host turn up SSH logging to VERBOSE and monitor the connection attempts
3. failed attempts will show for Keys that are not correct on the remote host logs.

Actual results:
failed connections attempts while trying each key.

Expected results:
virt-manager should honor ~/.ssh/config file


Additional info:
This issue is critical in situations where "MaxAuthTries" directive in sshd_config is set to a number lower than the count of the available keys on the system. In this situation the connection from virt-manager will be terminated with an error of "Too Many authentication failures".

Comment 1 Cole Robinson 2016-12-04 20:54:58 UTC
Thanks for the report. Can you reproduce the issue with 'virt-manager --debug' and post the full output here, from app startup to app shutdown? So I can see what config you are using.

Comment 2 Cole Robinson 2016-12-22 19:48:19 UTC
No response, closing as INSUFFICIENT_DATA. If anyone can still reproduce, please reopen with the info requested in Comment #1


Note You need to log in before you can comment on or make changes to this bug.