- ssh-keygen -t rsa
- scp C:\Users\name.ssh\id_rsa.pub name@ip:~/.ssh/
- cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys\
- notepad++ ./ssh/config
- Host name-alias
User name #远程服务器中你的用户名
Hostname 10.168.66.1 #远程服务器ip
IdentityFile C:\Users\name.ssh\id_rsa #本地私钥地址 - ssh name-alias
powershell ssh免密码登录服务器
最新推荐文章于 2024-08-03 21:25:16 发布