Eu estou olhando para ajustar a configuração padrão da versão em nuvem do ubuntu, onde nega o login root.
Tentar se conectar a essa máquina gera:
maxim@maxim-desktop:~/workspace/integration/deployengine$ ssh root@ec2-204-236-252-95.compute-1.amazonaws.com
The authenticity of host 'ec2-204-236-252-95.compute-1.amazonaws.com (204.236.252.95)' can't be established.
RSA key fingerprint is 3f:96:f4:b3:b9:4b:4f:21:5f:00:38:2a:bb:41:19:1a.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added 'ec2-204-236-252-95.compute-1.amazonaws.com' (RSA) to the list of known hosts.
Please login as the ubuntu user rather than root user.
Connection to ec2-204-236-252-95.compute-1.amazonaws.com closed.
Gostaria de saber em qual arquivo de configuração o bloqueio raiz via ssh está configurado e como posso alterar a mensagem impressa?
/root/.ssh/authorized_keys
formuláriono-port-forwarding,no-agent-forwarding,no-X11-forwarding,command="echo 'Please login as the user \"ubuntu\" rather than the user \"root\".';echo;sleep 10" ssh-rsa xxxxxx
. Portanto, mesmo sePermitRootLogin yes
o comando ssh falhar ao obter um shell de trabalho.