F
F
fokin_nikolay19892016-03-29 11:20:40
linux
fokin_nikolay1989, 2016-03-29 11:20:40

How to change the RSA key of the server?

Such a situation, a person quit but at the same time pdsh was previously configured for authorization to servers using the rsa key, how can you now generate new rsa keys so that authorization via pdsh does not take place from this computer?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
F
fokin_nikolay1989, 2016-03-29
@fokin_nikolay1989

[email protected]: ~# ssh-keygen -t rsa -f /etc/ssh/ssh_host_rsa_key -N ''
Generating public/private rsa key pair.
/etc/ssh/ssh_host_rsa_key already exists.
Overwrite (y/n)? y
Your identification has been saved in /etc/ssh/ssh_host_rsa_key.
Your public key has been saved in /etc/ssh/ssh_host_rsa_key.pub.
The key fingerprint is:
98:95:ff:e0:32:99:f7:67:73:51:97:c3:58:5f:62:06 [email protected]
[13:38] cmd# :115
[email protected]: ~# ssh-keygen -t dsa -f /etc/ssh/ssh_host_dsa_key -N ''
Generating public/private dsa key pair.
/etc/ssh/ssh_host_dsa_key already exists.
Overwrite (y/n)? y
Your identification has been saved in /etc/ssh/ssh_host_dsa_key.
Your public key has been saved in /etc/ssh/ssh_host_dsa_key.pub.
The key fingerprint is:
ca:35:6f:87:61:a6:ab:5c:3b:37:c5:a0:9c:6f:1d:30 [email protected]

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question