Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

/etc/ssh folder - A number of keys exist in there?

New to Debian (Or Linux in general)? Ask your questions here!
Post Reply
Message
Author
MedricCedric
Posts: 12
Joined: 2022-06-30 14:19

/etc/ssh folder - A number of keys exist in there?

#1 Post by MedricCedric »

Hi,

I was setting up ssh keys on my server and found a bunch of stuff in there already.

Is this a cause for concern?

Code: Select all

/etc/ssh$ dir
authorized_keys  sshd_config.ucf-dist	 ssh_host_ed25519_key.pub
moduli		 ssh_host_dsa_key	 ssh_host_key
ssh_config	 ssh_host_dsa_key.pub	 ssh_host_key.pub
ssh_config.d	 ssh_host_ecdsa_key	 ssh_host_rsa_key
sshd_config	 ssh_host_ecdsa_key.pub  ssh_host_rsa_key.pub
sshd_config.d	 ssh_host_ed25519_key
I did create the authorized_keys file and the ssh_host_rsa_key file but why would other files be there?

Segfault
Posts: 993
Joined: 2005-09-24 12:24
Has thanked: 5 times
Been thanked: 17 times

Re: /etc/ssh folder - A number of keys exist in there?

#2 Post by Segfault »

These were generated for you during install, ready to use.

cynwulf

Re: /etc/ssh folder - A number of keys exist in there?

#3 Post by cynwulf »

Those are the key pairs for that server. i.e. you would install the public key on a remote host, with sshd running and configured correctly, and you would be allowed access to it (from that server). Not the other way around, as you might imagine.

To access your server, you would generate a key pair on the computer you intend to access from, then install and authorise that public key on your server.

Post Reply