oi on Nostr: ``` cd /etc/ssh/ mkdir insecure_old cp ssh_host* insecure_old rm /etc/ssh/ssh_host_* ...
```
cd /etc/ssh/
mkdir insecure_old
cp ssh_host* insecure_old
rm /etc/ssh/ssh_host_*
dpkg-reconfigure openssh-server
service ssh restart
```
Change directory `cd` and make directory `mkdir` then copy these files `cp` using the wildcard for all `*` and remove `rm` then generate new ssh keys `dpkg` and `restart` the service with the old ssh keys in folder `insecure_old`.
Published at
2023-06-24 13:51:22Event JSON
{
"id": "5a5fba1196d9e21a0a7641b78ad230c1d62918fc901239f125b79862bb395734",
"pubkey": "d3070b8d93883c80d8a578387ca33ae064dc30218ad04e83bf4edb277c881fbf",
"created_at": 1687614682,
"kind": 1,
"tags": [
[
"e",
"cbed2c7c169152fde189b15ae26bc45b0e8306687abe358277e81838e4fc70b3",
"",
"root"
],
[
"e",
"3da09732a7143c74e008597ef0ff1162a8d29db00e18a96e1f277da33a71cfcf"
],
[
"e",
"3a84847f2b5057fc82c709ca980942a3857509cff386a5541dcd81f6a81ce291",
"",
"reply"
],
[
"p",
"d3070b8d93883c80d8a578387ca33ae064dc30218ad04e83bf4edb277c881fbf"
],
[
"p",
"1e95c007310ee7d3347b20ca71415532ca88ea21c963788c215560ac7a03b629"
]
],
"content": "```\ncd /etc/ssh/\n\nmkdir insecure_old\n\ncp ssh_host* insecure_old\n\nrm /etc/ssh/ssh_host_*\n\ndpkg-reconfigure openssh-server\n\nservice ssh restart\n\n\n```\n\nChange directory `cd` and make directory `mkdir` then copy these files `cp` using the wildcard for all `*` and remove `rm` then generate new ssh keys `dpkg` and `restart` the service with the old ssh keys in folder `insecure_old`. ",
"sig": "0b806e833b254330fea8afca6d00b38172af6f39fa6eb5985da668ac96eab34dae7aa95165033c690f0aad8bd58fa9ab081409f5b9d78334f027874f9ee75f93"
}