|
ssh $SSH_OPTS "${SSH_USER}@${INSTALLER_IP}" 'chmod +x ~/edera-install.sh && sudo ~/edera-install.sh' |
The Edera installer script expects to ssh to a host as root by default. Your OS might not support ssh in as root at all, in which case you're dead in the water anyway. (ssh config #PermitRootLogin prohibit-password works.)
However, if you provide an argument through the environment variable SSH_USER= it will try to sudo to root from this account. If that sudo is configured to require a password, then the installer quits:
sudo: a terminal is required to read the password; either use the -S option to read from standard input or configure an askpass helper
sudo: a password is required
ec2 probably doesn't have this problem because the ec2-user is not expected to even know their password -- everything is via the ssh key. But bare-metal ubuntu seems to be configured with the user account requiring a password to be set and sudo requiring password.
learn/getting-started/edera-installer/scripts/install.sh
Line 52 in 2566de9
The Edera installer script expects to ssh to a host as root by default. Your OS might not support ssh in as root at all, in which case you're dead in the water anyway. (ssh config
#PermitRootLogin prohibit-passwordworks.)However, if you provide an argument through the environment variable
SSH_USER=it will try to sudo to root from this account. If that sudo is configured to require a password, then the installer quits:ec2 probably doesn't have this problem because the ec2-user is not expected to even know their password -- everything is via the ssh key. But bare-metal ubuntu seems to be configured with the user account requiring a password to be set and sudo requiring password.