Saturday, August 5, 2023

Kali Linux - Change SSH keys

Kali Linux - SSH Key generation and setup

All ssh keys are located in  /etc/ssh folder 

Replace new ssh key(file) for all existing key/file as ssh_host

create new folder

  • $mkdir old_keys

move existing key/files to old_keys folder

  • $mv ssh_host* /etc/ssh/old_keys

generate new keys

  • $sudo dpkg-reconfigure openssh-server

to check/compact old and new values

  • $md5sum ssh_host*
  • $md5sum oldkeys/ssh_host*

 


No comments:

Post a Comment

Kali linux - protonvpn setup

Kali linux - protonvpn setup  to configure protonvpn in kali linux download protonvpn from protonvpn official site https://protonvpn.com/sup...