iptables当找到匹配的规则时,就会执行相应的动作,而不会向下继续匹配.因为ssh端口开放的规则在all规则之后,所以永远都不会匹配到,也就是ssh永远被禁止. root下执行:iptables -I INPUT -p tcp --dport 22 -j ACCEPT 即可.…
使用的wifi,在wifi下IP会自动分配. 先尝试能否ping通,如果都无法ping通那先把IP配置那些先搞定ping通之后遇到此问题再来尝试解决. 查看  /etc/hosts 中配置的 IP  hostname 是否改变. 通过  ip a  查看相应的ip  与 /etc/hosts下的ip地址是否相同.保持hosts文件与ip a 中的无线IP 保持一致.…
ssh遇到这个port 22:No route to host这个问题 检查防火墙状态 (iptables -L) 检查ssh状态 (ps -elf |grep ssh) 检查网络状态(换根网线)…
hadoop集群启动的时候namenode显示Connection refused 到windows下ping  master 显示传输中过期 ip是静态的 ssh master 也是连接拒绝 重启ssh服务 发现这个问题... Sep 27 16:13:15 master sshd[1708]: Server listening on :: port 22. Sep 27 16:13:15 master systemd[1]: Started OpenSSH server daemon. Se…
一 iptables 问题 1.没有安装,可以先安装 yum install iptables 2.防火墙的开启与关闭 即时生效,重启失效 service iptables start(开启) service iptables stop(关闭) service iptables restart(重启) 永久生效 chkconfig iptables on(开启) chkconfig iptables off(关闭) 查看防火墙运行状态 service iptables status 3.清除防火…
Ubuntu下测试ssh时使用ssh localhost 命令,出现错误提示connect to host localhost port 22:Connection refused 造成这个错误的原因可能是ssh-server未安装或者未启动.ubuntu 11.10 默认安装openssh-client,但是木有安装server 运行 ps -e | grep ssh,查看是否有sshd进程 如果没有,说明server没启动,通过 /etc/init.d/ssh -start 启动server…
当执行git命令如:git clone.git pull等等 出现报错:ssh: connect to host github.com port 22: Connection timed outfatal: Could not read from remote repository.Please make sure you have the correct access rightsand the repository exists. 临时解决办法: 命令如下: $ ssh -T -p 443…
1.hadoop安装好之后,执行ssh localhost无法执行, 提示“ssh: connect to host localhost port 22: Connection refused”. 2.ps -e |grep ssh查看后只有 “3748 ?        00:00:00 ssh-agent" 3.安装 sudo apt-get install openssh-server 4.启动sshd. sudo /etc/init.d/ssh start 5.再次查看: ps -e |…
ssh本机失败(ssh: connect to host localhost port 22: Connection refused) 一. 问题描述 之前一直在服务上使用宝塔面板, 今天突发奇想, 想要在本机使用宝塔面板. (宝塔面板真的好用, 尤其对我这个zz小白来说)... 可是装好宝塔面板后, 启动面板的终端的时候, 发现输入ssh用户名密码的时候,  没有反应, 密码账号明明是对的啊!!! 有人可能要问了, 你tm在本机上使用宝塔面板, 还要使用宝塔的终端,, 不是多此一举吗!?,,,…
ssh: connect to host localhost port 22: Connection refused 我的情况是ssh server没装,查看方法: ps -e |grep ssh 1 1 如果没有sshd,说明还没有安装ssh server 解决方案: sudo apt-get install openssh-server 1 1 之后运行start-all.sh就成功了 执行jps结果: yufeng@yufeng-pc:~/hadoop/hadoop-1.2.1/bin$…