Bug #6104
closedceph-deploy should workaround pseudo-tty in SSH
0%
Description
When connecting to a host that does not allow `sudo` over SSH, returning an error similar to:
[remote] sudo: sorry, you must have a tty to run sudo
pushy does not allow to pass a flag to the native SSH client, so the only two options for the workaround are:
- Detect if the user is connecting as `root` so we don't need to `sudo` every command.
- Uncomment the ssh configuration that allows non-tty execution of sudo.
Upstream issue created in pushy: https://github.com/axw/pushy/issues/46
Updated by Alfredo Deza over 10 years ago
- Status changed from New to 15
pushy dev says this might not be straightforward so fixing this will depend on pushy fixing it on their end.
Updated by Alfredo Deza over 10 years ago
One possible solution to this is to detect a `root` user and just not do the sudo connection.
Other than that, I think it might be reasonable to error out unless there is some configuration from the user allowing this behavior
Updated by Alfredo Deza over 10 years ago
- Status changed from 15 to Fix Under Review
This is not fixable with `pushy` (see ticket thread). So we are now falling back to disabling sudo if you are connecting as the `root` user.
Opened pull request: https://github.com/ceph/ceph-deploy/pull/65
Updated by Alfredo Deza over 10 years ago
- Status changed from Fix Under Review to Resolved
Merged into ceph-deploy master branch, with hash: 8eee1a3