SSH登陆服务器报错:
Ncat: Proxy connection failed: Connection refused.
kex_exchange_identification: Connection closed by remote host
生成的公钥已经放到服务器上,使用私钥连接服务器,登陆服务器
ssh -i /Users/家目录/.ssh/id_rsa bigdata@192.168.129.131 -p 22
执行命令报下面的错误:
Ncat: Proxy connection failed: Connection refused.
kex_exchange_identification: Connection closed by remote host
查看私钥权限,发现id_rsa文件权限不对导致报错,根据ssh协议准则,只能拥有私钥的用户有读写权限,同组用户和其他用户都不应该有任何权限,