ssh 免密登陆配置

ssh 免密登陆配置

2020/04/10 运维 Linux

ssh 免密登陆配置

# 创建秘钥
ssh-keygen -t rsa

# 秘钥同步
ssh-copy-id -i ~/.ssh/id_rsa.pub user@server_ip

# 免密登陆测试
ssh server_ip

Search

    Table of Contents