网页学习体会

  • 首页
  • 个人博客
您的位置: 首页  >  IT文章  >  ubuntu ssh: connect to host port 22: Connection refused

ubuntu ssh: connect to host port 22: Connection refused

分类: IT文章 • 2022-06-30 00:11:39

这是因为默认没有安装ssh服务

apt install ssh

编辑/etc/ssh/ssh_config,这个默认是只读的,增加可写权限,把下面的一行22端口的注释去掉,表示打开

Include /etc/ssh/sshd_config.d/*.conf

Port 22
#AddressFamily any
#ListenAddress 0.0.0.0
#ListenAddress ::

重启ssh服务

/etc/init.d/ssh restart

相关推荐

  • ubuntu安装配置ssh-connect to host localhost port 22: Connection refused
  • ubuntu localhost port 22 connection refused
  • connect to host port 22: Connection refused
  • ubuntu server port 22 connection refused
  • connect to host github.com port 22: Connection refused
  • github默认端口22被占用,ssh: connect to host github.com port 22: Connection timed out
  • ssh: connect to host xx.xx.xxx.xxx port 22: Connection refused
  • ssh: connect to host localhost port 22: Connection refused
  • ssh -T git@github.com ssh: connect to host github.com port 22: Connection timed out
  • ssh: connect to host hadoop102 port 22: No route to host
  • git批量修改历史提交用户信息
  • 专有名称翻译 cast parameter argument designate Reference collapsing individual
    网站免责声明 网站地图 最新文章 用户隐私 版权申明
本站所有数据收集于网络,如果侵犯到您的权益,请联系网站进行下架处理。   

Copyright © 2018-2021   Powered By 网页学习体会    备案号:   粤ICP备20002247号