简体   繁体   中英

delete .ssh directory in root/.ssh/

I try to practice to use ssh keygen to generate public key and private key

And then I type cd .ssh

And it said there is no directory.

Then I found that I do it wrong. I use superuser to generate the key so it create the directory '/root/.ssh/'

Please help me to delete the .ssh directory in the root Thank you.

You need to log in as the superuser and delete the folder, or just use the sudo command.

sudo su
rm -rf /root/.ssh

or

sudo rm -rf /root/.ssh

Unless you cannot log into your superaccount, then thats a different story.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM