Hello all…
Im running centos 7 on my server, and I run command: [root@srvr ~]# ls -al ~/.ssh
and get this result: total 12 drwx------ 2 root root 4096 Feb 24 14:36 . dr-xr-x—. 13 root root 4096 Mar 2 03:46 … -rw------- 1 root root 418 Mar 1 13:50 authorized_keys
Can someone explain what is the command function and the result mean?
The result show total 12, I wonder, is my server had 12 SSH key? Because I only insert 1 ssh key from my laptop.
Thank u all…
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
The first line when using the list option of ls -l will show the amount of disk blocks being used. It’s “physical” space on the hard disk, would probably be the simplest answer.
You can run the command info coreutils ls to get a very detailed explanation of every option and the output.
Your authorized keys is located in the file called, well, authorized_keys
If you show the content of that file, it’ll tell you all the keys. One key per line.
https://help.ubuntu.com/community/SSH/OpenSSH/Keys
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.