ssh: connect to host localhost port 22: Connection refused
来源:互联网 发布:一点智慧软件多少钱 编辑:程序博客网 时间:2024/05/19 13:27
ssh localhost
错误信息为:ssh: connect to host localhost port 22: Connection refused
这种错误很主要的一个原因是sshd服务没有启动,先启动sshd服务后就没有问题了
www.2cto.com
1、查卡服务是否启用
ps -ef | grep ssh
2、如果没有启用 则要安装
yum install openssh-server
3、安装完之后开启
/etc/init.d/sshd start
如果/etc/init.d/sshd start出现:
Generating SSH1 RSA host key: [FAILED]
www.2cto.com
解决办法:
$ yum search openssh
$ sudo yum install openssh
$ sudo sshd service start
sshd re-exec requires execution with an absolute path
[honki@localhost ~]$ sudo service sshd start
Generating SSH1 RSA host key: [ OK ]
Generating SSH2 RSA host key: [ OK ]
Generating SSH2 DSA host key: [ OK ]
Starting sshd: [ OK ]
4、如果还是连不上 关闭防火墙
/etc/init.d/iptables stop
1 0
- 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
- cygwin 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: connect to host localhost port 22: Connection refused 问题
- ssh: connect to host localhost port 22: Connection refused
- Linux--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
- 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 问题
- 腾讯后台面试
- cocospod国外镜像源不能用
- ceph osd 更换硬盘记录
- 支付宝iOS_SDK下载真不好找
- (错误信息)--myeclipse启动报错'Building workspace' has encountered a problem.解决办法
- ssh: connect to host localhost port 22: Connection refused
- DP--矩阵连乘
- XCode快捷键
- double转BigDecimal,数变大
- ViewPager-------Fragment作为ViewPager的数据源(FragmentPagerAdapter)
- xml矢量图 svg的viewBox和vml的coordsize,虚坐标系
- UVALive 3027 Corporative Network (带权并查集)
- Android中listview的优化
- 字符归一化