Project

General

Profile

Bug #10196

[RHEL7] Modification of ~/.ssh/config in admin node restricts ssh to other nodes.

Added by Nilamdyuti Goswami over 9 years ago. Updated over 9 years ago.

Status:
Rejected
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
% Done:

0%

Source:
other
Tags:
Backport:
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Crash signature (v1):
Crash signature (v2):

Description

While setting up Ceph cluster using RHEL7 VMs, I found that modifying ~/.ssh/config file in admin node with details i.e, Host, Hostname and User of other nodes doesn't work and the admin node fails to ssh to other nodes. I checked the details multiple times and found that nothing was wrong in it and without configuring the file, passwordless ssh was working fine. So, I modified the global file /etc/ssh/ssh_config instead with details of other nodes and it worked. Admin node was able to ssh to all other nodes and there were no ssh issues whatsoever.

Modifying /etc/ssh/ssh_config instead might be a better option as it is a global config file for sshd but still the reason why modification of ~/.ssh/config didn't work on RHEL7 might be worth investigating.

History

#1 Updated by Loïc Dachary over 9 years ago

Could you please attach the output of ssh in verbose mode when trying to connect to the remote host ? That will show the exact error message you're seeing.

#3 Updated by Nilamdyuti Goswami over 9 years ago

The output of ssh in verbose mode just showed the error "Bad owner or permissions in /home/ceph/.ssh/config". So, the error shows the solution itself which I ignored earlier. It was a just a permission issue. I changed the permission and it started working. I commented out the modifications done in /etc/ssh/ssh_config because it was no more required.

Sorry for filing the bug. Modifying ~/.ssh/config works as expected and there is no need to modify /etc/ssh/ssh_config.

This bug can be closed as "NOT A BUG"

#4 Updated by Loïc Dachary over 9 years ago

  • Status changed from New to Rejected

Thanks for the update :-)

#5 Updated by Nilamdyuti Goswami over 9 years ago

You are welcome! :)

Also available in: Atom PDF