Re: deleted the /root/.ssh folder - what should I do for for recovering the keys

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

 



On 12/22/2009 02:13 PM, Chris Smart wrote:
2009/12/22 Mark Ryden<markryde@xxxxxxxxx>:
Hello,
 I have a machine on which I deleted the /root/.ssh folder;


You might be able to recover them with tools like photorec from the
testdisk package. When you delete something it's not zeroed out, so
unless you write over that part of the disk again the data should be
recoverable.

Failing that, if you have physical access to the box then it shouldn't
be too hard to log in locally and copy over the new keys. If someone
else has root access on the boxes (even via su -) then you could do it
that way too.

You must also make sure that the authorized_keys or authorized_keys2
file(s) on the destination machine have 644 (rw-r--r--) or 600
(rw-------) permissions or the destination will continue to ask for
passwords.  sshd requires that "group" and "other" write attributes be
disabled on those files.

By default, sshd wants "~/.ssh/authorized_keys".  You can change that
in the /etc/ssh/ssd_config file on the destination system, then restart
sshd on the destination.

----------------------------------------------------------------------
- Rick Stevens, Systems Engineer                      ricks@xxxxxxxx -
- AIM/Skype: therps2        ICQ: 22643734            Yahoo: origrps2 -
-                                                                    -
-            Beware of programmers who carry screwdrivers            -
----------------------------------------------------------------------

--
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines

[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [Fedora Magazine]     [Fedora News]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Maintainers]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Legacy]     [Fedora Desktop]     [Fedora Fonts]     [ATA RAID]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [SSH]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Centos]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Tux]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Asterisk PBX]     [Fedora Sparc]     [Fedora Universal Network Connector]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux