ssh本机连接connect to host localhost port 2222: Connection refused
在根据博客[https://zhuanlan.zhihu.com/p/355748937]配置和连接ssh服务的过程中,连接失败。
尝试了很多方法都不行,最后怀疑端口被占用,解决方法:
重新配置/etc/ssh/sshd_config文件。将端口修改为默认的22。
sudo vi /etc/ssh/sshd_config
然后重启ssh,改用22端口连接就可以了。
service ssh restart
ssh本机连接connect to host localhost port 2222: Connection refused相关推荐
- Ubuntu下 ssh : connect to host localhost port 22:Connection refused
Ubuntu下测试ssh时使用ssh localhost 命令,出现错误提示connect to host localhost port 22:Connection refused 造成这个错误的原因 ...
- vmware中的Ubuntu安装ssh全家桶(解决connect to host localhost port 22: Connection refused)...
2019独角兽企业重金招聘Python工程师标准>>> 网上查询过异常信息后得知系统需要安装ssh服务. 1.重现问题:ssh localhost 报错connect to host ...
- 日常问题——解决mac下 ssh: connect to host localhost port 22: Connection refused
问题描述: 今天使用ssh 登陆本地时即使用ssh localhost出现了 ssh: connect to host localhost port 22: Connection refused 错误 ...
- mac下ssh 报错:localhost: ssh: connect to host localhost port 22: Connection refused
1.美图 2.背景 mac下本地启动hadoop 本地模式 (base) lcc@lcc hadoop-2.7.4$ sh sbin/start-all.sh This script is Depre ...
- mac connect to host localhost port 22: Connection refused
在Mac OS X 10.10.5学习hadoop的过程中,输入命令ssh localhost得到 ssh: connect to host localhost port 22: Connection ...
- ssh: connect to host localhost port 22: Connection refused 问题
错误原因: 1.sshd 未安装 2.sshd 未启动 3.防火墙 4需重新启动ssh 服务 解决方法: 1.确定安装sshd: $ sudo apt-get install openssh-serv ...
- ssh: connect to host 192.***.*.* port 22: Connection refused
在从本地电脑连接远程服务器的时候,显示了ssh: connect to host 192.*.. port 22: Connection refused这个问题. 问题出现的原因是:没有安装sshd ...
- hadoop : Starting namenodes on [master] master: ssh: connect to host master port 22: Connection refu
Starting namenodes on [master] master: ssh: connect to host master port 22: Connection refused; 本人启动 ...
- ssh:connect to host xxx port 22: Connection refused---------you don‘t have permission to acccess the
在自己的Ubuntu电脑上,用ssh连接xavier NX板子的时候,突然出现了连接不上的情况,提示you don't have permission to acccess the requested ...
最新文章
- 织梦html引入html代码,织梦标签引入共html.doc
- 安卓okhttp上传jason和图片_微信图片总是「已过期或被清理」?简单 3 招,可摆脱烦恼...
- Java设计模式--使用内部类实现线程安全且懒加载的单例模式
- 产品案例:这些呼声很高功能,微信为何还不做?
- php团队奖,PHP生成奖状
- JavaScript 基础(十六):Navigator对象
- 网站后端_Python+Flask.0003.FLASK快速入门之Hello Word?
- 给小学生上计算机语言课,[程序设计]为了下一代,大家讨论一下小学生该学什么编程语言。...
- [Pytorch系列-33]:数据集 - torchvision与CIFAR10/CIFAR100详解
- 云烟阁--Java8系列之函数式接口和Lambda表达式(一)
- Linux互斥锁详细解读,看这一篇就够了
- Error 0x80240017: Failed to execute MSU package.
- java毕业设计学科竞赛管理系统Mybatis+系统+数据库+调试部署
- 低功耗产品ADC精确测量电池电压(电量)
- 复杂推理的进展与挑战——从LSAT讲起
- nyoj 145 聪明的小珂
- linux下freerdp编译,linux下安装freerdp连接windows远程桌面的好软件软件
- 什么是BIOS?为什么开机先从BIOS开始?以及操作系统启动过程
- python 日期转换
- jQuery实现的地址选择