#  windwos ssh 创建
```sh
ssh-keygen -t rsa -b 4096 -C "zhangzhe@pc"  
# 输入路径 /c/Users/admin/.ssh/229_rsa  
# 创建的路径不能有公共的读写权限
eval "$(ssh-agent -s)" ssh-add ~/.ssh/229_rsa
ssh-copy-id -i ~/.ssh/229_rsa.pub  root@192.168.1.229
# 远程的时候可以添加密钥文件地址cd
ssh root@192.168.1.229 -i ~/.ssh/229_rsa
```

# linux ssh 创建
```sh
ssh-keygen -t rsa -b 4096 -C "zhangzhe@wsl"
# /home/z/.ssh/229_rsa
eval "$(ssh-agent -s)" ssh-add /home/z/.ssh/229_rsa
ssh-copy-id -i /home/z/.ssh/229_rsa.pub root@192.168.1.229
 # 远程的时候可以添加密钥文件地址
ssh root@192.168.1.229 -i ~/.ssh/229_rsa

ssh root@192.168.1.229 -i ~/.ssh/229_rsa "cd /disk/work/sj_git/sunnysports/;make build-data"

```
ssh-copy-id -i /root/.ssh/id_rsa.pub

# linux ssh 线上
```sh
ssh-keygen -t rsa -b 4096 -C "zhangzhe@wsl"
# /home/z/.ssh/25_rsa
eval "$(ssh-agent -s)" ssh-add /home/z/.ssh/25_rsa
ssh-copy-id -i /home/z/.ssh/25_rsa.pub root@192.144.132.25
 # 远程的时候可以添加密钥文件地址
ssh root@192.144.132.25 -i ~/.ssh/25_rsa


```

```sh
ssh-keygen -t rsa -b 4096 -C "zhangzhe@pc"  
# 输入路径 /c/Users/admin/.ssh/25_rsa  
# 创建的路径不能有公共的读写权限
eval "$(ssh-agent -s)" ssh-add ~/.ssh/id_rsa
ssh-copy-id -i ~/.ssh/25_rsa.pub  root@192.144.132.25

ssh root@106.75.209.57
# 远程的时候可以添加密钥文件地址
ssh root@192.144.132.25 -i ~/.ssh/25_rsa
```
ssh-copy-id -i ~/.ssh/id_rsa.pub  ubuntu@1.117.87.77
eval "$(ssh-agent -s)" ssh-add ~/.ssh/id_rsa
1.117.87.77
dbt@com@1234
ssh ubuntu@1.117.87.77 
ssh root@1.117.87.77 


ssh-copy-id -i /root/.ssh/id_rsa.pub root@192.144.132.25

ssh-copy-id -i ~/.ssh/id_rsa.pub  ubuntu@123.207.203.228
ssh-copy-id -i ~/.ssh/id_rsa.pub  ubuntu@106.75.209.57

ssh root@192.168.1.229 -i ~/.ssh/229_rsa

123.207.203.228



ssh-copy-id -i ~/.ssh/id_rsa.pub  ubuntu@123.207.203.228

