mirror of
https://gitee.com/devstar/devcontainer-tweak.git
synced 2025-04-27 03:53:09 +00:00
9 lines
129 B
Bash
9 lines
129 B
Bash
#!/bin/bash
|
|
|
|
# 1. 重新生成 SSH 密钥对
|
|
rm -f /etc/ssh/ssh_host_*
|
|
ssh-keygen -A
|
|
|
|
# 2. 启动 SSH 服务
|
|
service ssh restart
|