tramp-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: editing a remote file which requires sudo


From: Terrence Brannon
Subject: Re: editing a remote file which requires sudo
Date: Mon, 25 Oct 2010 18:15:39 -0400
User-agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.11) Gecko/20101013 Thunderbird/3.1.5

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?




reply via email to

[Prev in Thread] Current Thread [Next in Thread]