Reset SSH Keys: Difference between revisions

From KlavoWiki
Jump to navigationJump to search
Created page with "To reset the SSK Keys of the Debian server. <pre> vi /usr/sbin/ssh-keys-reset </pre> <pre>#!/bin/bash rm -f /etc/ssh/ssh_host_* dpkg-reconfigure openssh-server </pre> Categ..."
 
No edit summary
 
Line 3: Line 3:
vi /usr/sbin/ssh-keys-reset
vi /usr/sbin/ssh-keys-reset
</pre>
</pre>
<pre>#!/bin/bash
 
<pre>
#!/bin/bash
rm -f /etc/ssh/ssh_host_*
rm -f /etc/ssh/ssh_host_*
dpkg-reconfigure openssh-server
dpkg-reconfigure openssh-server
</pre>
<pre>
chmod +x /usr/sbin/ssh-keys-reset
</pre>
</pre>


[[Category : Debian]] [[Category : Raspbian]]
[[Category : Debian]] [[Category : Raspbian]]

Latest revision as of 04:41, 17 March 2018

To reset the SSK Keys of the Debian server.

vi /usr/sbin/ssh-keys-reset
#!/bin/bash
rm -f /etc/ssh/ssh_host_*
dpkg-reconfigure openssh-server
chmod +x /usr/sbin/ssh-keys-reset