Ambari学习19_ssh 公钥认证报错:Permission denied (publickey,gssapi-keyex,gssapi-with-mic).解决2
来源:互联网 发布:六十甲子单双计算法 编辑:程序博客网 时间:2024/06/05 04:11
在Ambari学习6中,我们介绍了一种解决这个问题的方法,但是,后来又出现了新的问题,经常查找资料,最终找到解决方案:
down vote
I encountered the same problem with him.
ssh -i <your_keypair> root@<your_host>
I tried this but it wasn't solved.
Here's my solution
host1 ip:192.168.1.21
host2 ip:192.168.1.22
host3 ip:192.168.1.23
on host1:
rm -rf /root/.sshssh-keygen -t dsacat /root/.ssh/id_dsa.pub >> /root/.ssh/authorized_keysscp /root/.ssh/id_dsa.pub host2:/root/scp /root/.ssh/id_dsa.pub host3:/root/
on host2:
rm -rf /root/.sshssh-keygen -t dsacat /root/id_dsa.pub >> /root/.ssh/authorized_keys
on host3:
rm -rf /root/.sshssh-keygen -t dsacat /root/id_dsa.pub >> /root/.ssh/authorized_keys
host1:/root/.ssh/id_dsa This's the file which you need.
即dsa和rsa的区别。
参考资料:
http://stackoverflow.com/questions/31010016/permission-denied-publickey-gssapi-keyex-gssapi-with-mic-password-during-ambar
0 0
- Ambari学习19_ssh 公钥认证报错:Permission denied (publickey,gssapi-keyex,gssapi-with-mic).解决2
- Ambari学习6_ssh 公钥认证报错:Permission denied (publickey,gssapi-keyex,gssapi-with-mic).解决
- ssh 公钥认证报错:Permission denied (publickey,gssapi-keyex,gssapi-with-mic).解决
- CenOS ssh 公钥认证报错:Permission denied (publickey,gssapi-keyex,gssapi-with-mic).解决
- git push 代码报错 Pushing to Permission denied (publickey,gssapi-keyex,gssapi-with-mic).
- git push 代码报错 Pushing to Permission denied (publickey,gssapi-keyex,gssapi-with-mic).
- SSH-permission denied (publickey,gssapi-keyex,gssapi-with-mic,password)
- SSH提示Permission denied (publickey,gssapi-keyex,gssapi-with-mic).
- Git报错误:Permission denied (publickey,gssapi-keyex,gssapi-with-mic,password).
- 普通用户ssh免密登陆完美解决(Permission denied (publickey,gssapi-keyex,gssapi-with-mic,password))
- git clone 时报错:Permission denied (publickey,gssapi-keyex,gssapi-with-mic)
- mpi error: Permission denied (publickey,gssapi-keyex,gssapi-with-mic,password) 解决方法
- Solaris scp Permission denied (gssapi-keyex,gssapi-with-mic,publickey,keyboard-interactive)
- ssh scp出现 Permission denied (publickey,gssapi-with-mic,gssapi-keyex)问题
- Permission denied (publickey,gssapi-keyex,gssapi-with-mic).的完整解决方法
- SSH关于公钥认证Permission denied (publickey,gssapi-with-mic的问题
- SSH关于公钥认证Permission denied (publickey,gssapi-with-mic的问题
- SSH : Permission denied(publickey,gssapi-with-mic)
- 安卓图片截取返回模糊
- Android开发之如何手写代码进行页面布局
- Linux定时调用之crond
- leetcode oj java 169. Majority Element
- 在 bitmap 中玩转大波浪进度条
- Ambari学习19_ssh 公钥认证报错:Permission denied (publickey,gssapi-keyex,gssapi-with-mic).解决2
- 大数据处理堆实现N个数据找K个最大数据和堆排序
- asp时间的判断
- 数据结构学习笔记
- parse第三方服务好像要不能使用了
- 第三方开源库:个推
- 关于C++域作用符详解
- 在Ubuntu 16.04 LTS 下用Vim 打造自己的Python IDE 问题总结
- Android中dp px sp之间转化