案例: 我一下没有设置密码的pub key, 一使用就要求: Enter passphrase for key '/root/.ssh/gitkey12.pub',   原因:本该设置私钥的地方,设置成了公钥..(错误提示,牛头不对马嘴...)     1. 解决方案 http://superuser.com/questions/508408/public-key-always-asking-for-password-and-keyphrase…
使用Git,每次都提示输入命令. 这个问题折磨很久,明明已经配置过ssh了,可是每次还要提示输入密码,从网上查查,最后一条命令解决问题: 问题提示: Enter passphrase for key 'xxxx' 输入一下命令: ssh-add -K xxx 之后就再也没遇到这种问题.   出现Could not open a connection to your authentication agent.   a.    ssh-agent bash b. Enter passphrase f…
使用ssh-genkey生成公用key,但是自己使用时会多次提示,Enter passphrase for key,这儿给出如何解决. 在${HOME}/.bashrc中增加如下代码: alias auto_passphrase=auto_passphrase         SSH_ENV=~/.ssh/environment # start the ssh-agent function start_agent {    echo "Initializing new SSH agent-&qu…
提示“Enter passphrase for key /root/.ssh/id_rsa.pub”让输入私钥,可不论输与不输都不能直接登录 解决方法: 在本地执行: eval `ssh-agent` ssh-add…
bug: Add correct host key in /root/.ssh/known_hosts to get rid of this message 解决办法: rm ~/.ssh/known_hosts 或 vim /etc/ssh/ssh_config: StrictHostKeyChecking no UserKnownHostsFile /dev/null…
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @ WARNING: UNPROTECTED PRIVATE KEY @ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ Permissions 0664 for '/home/root/.ssh/id_rsa' are too open. It is required that your private…
ligh@local-host$ ssh-copy-id -i ~/.ssh/id_rsa.pub root@192.168.0.3…
Xshell配置ssh登陆远程服务器,找不到 root/.ssh目录,报错信息如下: root@ubuntu:/home/xinxin# cd /root/.ssh/bash: cd: /root/.ssh/: No such file or directory 谷歌(参考原文:http://www.cnblogs.com/zwgblog/p/5838314.html),解决办法: 没有用root用户登录过,执行下ssh操作,就能自动生成, ssh localhost yes 输入passwor…
最近,用ssh连接github时,突然提示“Permissions 0644 for ‘/root/.ssh/id_rsa’ are too open”,并且断开连接. 仔细阅读了一下ssh文档和这句提示,大概的意思时ssh的私有密钥的权限开放尺度太大了,可以供人随意欣赏了,ssh自身的策略关闭了ssh. 解决方案:将权限由0644降低为0600 chmod 0600 ~/.ssh/id_rsa 搞定.…
中控机和远端主机配置完密钥后,在中控台上通过ansible检测联通性 ansible -i inventory.cfg all -m ping 10.1.1.1 | UNREACHABLE! => { "changed": false, "msg": "Failed to connect to the host via ssh: no such identity: /root/.ssh/id_rsa.bak: No such file or dire…