Project

General

Profile

Actions

Bug #51665

closed

document unforunate interactions between cephadm and restrictive sshd_config?

Added by Tim Serong almost 3 years ago. Updated almost 2 years ago.

Status:
Resolved
Priority:
Low
Category:
cephadm
Target version:
-
% Done:

0%

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

Description

This one is a little obscure, so please bear with me.

If you deploy ceph using ceph-salt, it will invoke cephadm bootstrap [...] --ssh-user cephadm, i.e. it's setting a non-root user for ssh access. That's fine, unless you happen to also have a restrictive /etc/ssh/sshd_config, e.g.: AllowUsers or AllowGroups is specified, and doesn't mention that user/group, in which case ssh access wont't work, and it's not immediately obvious what the problem is.

I don't expect the general ceph docs to cover ceph-salt and its choice of user, but I went looking through the docs looking for mention of cephadm's --ssh-user option, and only found it in the manpage, and also on https://docs.ceph.com/en/latest/cephadm/install/, which says "The --ssh-user <user> option makes it possible to choose which ssh user cephadm will use to connect to hosts. The associated ssh key will be added to /home/*<user>*/.ssh/authorized_keys. The user that you designate with this option must have passwordless sudo access."

Should we elaborate on this further? Add a tip along the lines of "if you're using a non-root user, make sure your ssh config allows them access"? Or is the blanket "The user that you designate with this option must have passwordless sudo access" sufficient?


Related issues 1 (0 open1 closed)

Related to Orchestrator - Feature #55493: Detect ssh connectivity issues ASAPResolvedRedouane Kachach Elhichou

Actions
Actions

Also available in: Atom PDF