Report this

What is the reason for this report?

Check existing SSH Key on server

Posted on March 2, 2017

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!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

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

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.