在ubuntu中配置SSH(解决connect to host localhost port 22: Connection refused问题)
来源:互联网 发布:网络兼职有哪些 编辑:程序博客网 时间:2024/05/17 04:11
命令:ssh localhost
错误信息:ssh: connect to host localhost port 22: Connection refused
错误原因:
1.sshd 未安装
2.sshd 未启动
解决方法:
1.确定安装sshd:
2.启动sshd:
3.检查防火墙设置,关闭防火墙:
检验方法:
输入命令:
错误信息:ssh: connect to host localhost port 22: Connection refused
错误原因:
1.sshd 未安装
2.sshd 未启动
3.防火墙
4需重新启动ssh 服务
解决方法:
1.确定安装sshd:
- $ sudo apt-get install openssh-server
- $ sudo net start sshd
- $ sudo ufw disable
输入命令:
- $ ssh localhost
若成功,则表示安装成功,且连接通过;
但是有的时候虽然成功了但是还是会出现Connection refused 问题。
运行 ps -e | grep ssh,查看是否有sshd进程
有时候虽然可以看到sshd 但是还是不能连接成功
这时候就要想到重新启动一下:sudo service ssh restart
然后在连接
0 0
- 在ubuntu中配置SSH(解决connect to host localhost port 22: Connection refused问题)
- 在ubuntu中配置SSH(解决connect to host localhost port 22: Connection refused问题)
- 在ubuntu中配置SSH(解决connect to host localhost port 22: Connection refused问题)
- 在ubuntu中配置SSH(解决connect to host localhost port 22: Connection refused问题)
- 在ubuntu中配置SSH(解决connect to host localhost port 22: Connection refused问题)
- 在ubuntu中配置SSH(解决connect to host localhost port 22: Connection refused问题)
- 在ubuntu中配置SSH(解决connect to host localhost port 22: Connection refused问题)
- 在ubuntu中配置SSH(解决connect to host localhost port 22: Connection refused问题)
- Ubuntu 安装配置SSH(ssh: connect to host localhost port 22: Connection refused问题的解决)
- Ubuntu 安装配置SSH(ssh: connect to host localhost port 22: Connection refused问题的解决)
- 在Ubuntu中ssh报错: connect to host localhost port 22: Connection refused 解决办法
- Ubuntu ssh: connect to host localhost port 22:Connection refused
- ssh: connect to host localhost port 22: Connection refused 问题
- ssh: connect to host localhost port 22: Connection refused 问题
- ssh: connect to host localhost port 22: Connection refused 问题
- ssh: connect to host localhost port 22: Connection refused 问题
- ubuntu安装配置ssh-connect to host localhost port 22: Connection refused
- 输入ssh localhost, 出现问题“ssh: connect to host localhost port 22: Connection refused”
- java中小数点位数问题
- prel 多行注释
- python 字符串转浮点数
- VirtualBox在Linux下安装增强功能时出错
- html页面优化
- 在ubuntu中配置SSH(解决connect to host localhost port 22: Connection refused问题)
- 文章标题
- NuttX_编译系统分析
- android学习笔记——回调机制
- 结合Scikit-learn介绍几种常用的特征选择方法
- 错误票据
- Java 中有三大支柱
- 关于浏览器兼容问题
- android学习笔记——Intent的解析(Intent的隐式调用)