linux服务器免密钥登录
服务器端执行:
ssh-keygen -t rsa -b 4096 cat ~/.ssh/id_rsa.pub > ~/.ssh/authorized_keys chmod 600 ~/.ssh/*
下载id_rsa到需要登录的客户端通过xshell加载密钥方式
客户端端执行:
ssh-keygen -t rsa -b 4096
复制id_rsa.pub内容到服务器允许登录用户~/.ssh/authorized_keys文件
服务器端执行:
ssh-keygen -t rsa -b 4096 cat ~/.ssh/id_rsa.pub > ~/.ssh/authorized_keys chmod 600 ~/.ssh/*
下载id_rsa到需要登录的客户端通过xshell加载密钥方式
客户端端执行:
ssh-keygen -t rsa -b 4096
复制id_rsa.pub内容到服务器允许登录用户~/.ssh/authorized_keys文件