您的位置:首页 > 运维架构

Mac OS ssh-copy-id Command not found 导致无法对目标服务器上传一个公钥的问题解决方案

2012-05-11 20:50 886 查看
解决Mac没有ssh-copy-id命令的问题:

使用以下命令代替ssh-copy-id:

cat ~/.ssh/id_dsa.pub | ssh hadoop@slave "umask 077; mkdir -p .ssh ; cat >> .ssh/authorized_keys"

FYI

This command will prompt you for the login password for user
hadoopon slave,
then copy the public SSH key for you, creating the correct directory and fixing the permissions as necessary.
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
相关文章推荐