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.
使用以下命令代替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.
相关文章推荐
- cocoapods无法使用(mac os 10.11升级导致pod: command not found)
- ssh-copy-id command not found
- ssh-copy-id 安全地复制公钥到远程服务器上
- 搭建IIS服务器80端口却已被占用的问题和用了Sc config http start= disabled命令导致HTTP服务无法启动的解决方案
- sh-copy-id命令报错:-bash: ssh-copy-id: command not found
- mac 上使用ssh-copy-id 上传公钥 实现不输入密码登录
- 利用ssh-copy-id复制公钥到多台服务器
- 利用ssh-copy-id复制公钥到多台服务器
- 在datagrid的表头上的其中一个列加checkbox而导致checkbox无法选中的问题的一种解决方案
- 解决MAC OS系统找不到ssh-copy-id命令的问题
- ssh-copy-id: command not found
- 没有默认路由导致服务器无法SSH问题
- 解决ssh无法连接服务器问题,ssh上传和下载文件详解
- [转]Win7、Windows Server 2008下无法在Windows Service中打开一个已经存在的Excel 2007文件问题的解决方案
- 新购阿里云服务器ECS创建之后无法ssh连接的问题处理
- 利用ssh-copy-id无需密码登录远程服务器
- Windows 7键盘失灵导致无法输入登录密码问题解决方案
- “Visual Studio .NET 无法创建或打开应用程序。问题很可能是因为本地WEB本地服务器上没有安装所需的组件。请运行Visual Studio .NET安装程序并添加WEB开发组件“的一种解决方案
- 关于无法加载已创建的布局文件的问题的解决方案以及已布局在对应的R文件中未生成相应ID的问题的解决
- 普通用户启动WebLogic,应用程序无法从FTP服务器目录中获取图片问题的解决方案。