- When I reported my Permission denied issue with using the
suggested
/sudo:remotedomain.com:/etc/nagios3/conf.d/generic-host_nagios2.cfg
find-file syntax, there was no answer, so I added by public key
to /root/.ssh/authorized_keys
- Now, I am told Host 'remotedomain.com' looks like a remote
host, sudo can only use the local host
On 10/25/2010 6:15 PM, Terrence Brannon wrote:
On 10/25/2010 11:00 AM, Michael Albinus wrote:
(add-to-list
'tramp-default-proxies-alist
'("remotedomain.com" "root" "/ssh:%h:"))
/sudo:address@hidden:/etc/nagios3/conf.d/generic-host_nagios2.cfg
/sudo:remotedomain.com:/etc/nagios3/conf.d/generic-host_nagios2.cfg
When I use that setup above, I was told "Permission denied
(publickey)." which I think means that my public key is not in the
/root/.ssh/authorized_keys file. When I inspected that file, I saw
something in there I had never seen. I thought that file only
stored public keys, but instead I saw this:
address@hidden:/root/.ssh#
cat authorized_keys
command="echo 'Please login as the ubuntu user rather than
root user.';echo;sleep 10" ssh-rsa
AAAAB3NzaC1yc2EAAAADAQABAAABAQCmlF98qYSHrlaWuRLVXZ8M/uE/ZmVLhst7mTncAjc8SmEqiknWZOVEkSIG6ZsVWVe5jVOrUn/ESUyofwxAJY6h7TkA2Ks6Xsl7U8zvMy1ACp8/vf2DQz7JuH4JsNRmYwKiVkt4XkqNZcsmEC1RBnSJJj6YUAJMZG+nyzV5xgViXyJQvmh5Kt9TrlzOwa2MudY7iHqdWGkJEDd3LlNtNgNuUQmPWWMCJgQQSzba4ZrLXU5NrlNx+azGcPvFqPl2nCe5UK3Zzd0inJ3Sknk5adEJzQ0XKuiEPdt9awBD/gl0UIme2tm1rSQkqnT3OS/R8nmdKt/OuLoJ
mydefault
address@hidden:/root/.ssh#
Is it safe to simply append my public key to this file?
|