Open peterschmidt85 opened 2 weeks ago
The problem takes place when using a sudo
user that is configured to ask for a password. Usually this doesn't happen on cloud instances because cloud-init by default sets up ubuntu
user with no password sudo.
An alternative workaround to using root
is to configure a non-root sudo
user without password.
Steps to reproduce:
sudo
dstack pool add-ssh
Actual behavior:
The server logs:
Notes:
Currently,
dstack pool add-ssh
requiressudo
access (e.g. because it needs access tosystemd
to create/update thedstack-shim
service).Workaround:
sudo
and use withdstack pool add-ssh
sudo
(example)Also, ensure the user is in the
sudo
group