Skip to content

Instantly share code, notes, and snippets.

Linux (WSL) 设置

  1. 修改sshd 监听端口,避免和windows 10的22冲突

  2. 部分distro需要重新生成host证书

ssh-keygen -f /etc/ssh/ssh_host_rsa_key -N '' -t rsa
  1. 创建一个shell脚本