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

解决MAC OS系统找不到ssh-copy-id命令的问题

2012-12-11 21:38 651 查看
http://blog.csdn.net/bluerone88/article/details/7558648



解决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.
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: