|
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 Is it safe to simply append my public key to this file? |
[Prev in Thread] | Current Thread | [Next in Thread] |