当前位置:网站首页>ssh: connect to host 172.31.8.132 port 22: Connection refused
ssh: connect to host 172.31.8.132 port 22: Connection refused
2022-04-22 23:48:00 【Chen Hongwei】
use ssh When connecting a box, the following error is prompted
ssh [email protected]
ssh: connect to host 172.31.8.132 port 22: Connection refused
Generally speaking, this problem is because openssh-server No installation , But I checked and found openssh-server, And it has also started , After checking /etc/ssh/sshd_config file
vim /etc/ssh/sshd_config
The cause of the problem was found to be the default port 22 Someone else changed it to 2222, You can change the port number back to... By modifying the above file 22,
Or do not change the port number , that ssh Specify the port number when connecting 2222 It's fine too , If it is a command line connection , Then specify the port number with the following command .
ssh -p 2222 [email protected]
If it is xshell Wait for tools to connect , Then the default port number will be when creating a new connection 22 Change it to 2222 that will do .
reference :
ubuntu allow root user ssh Remote login _ Chen Hong Wei's blog -CSDN Blog
版权声明
本文为[Chen Hongwei]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/04/202204222346353612.html
边栏推荐
- No module named 'Django is reported when Django specifies the database_ test. settings‘
- Thread pool (easy to understand)
- 【经验分享】分享 MangoPapa 的论文学习经验
- 2面技术 HR面 offer,系列篇
- Mung bean sprouts on the 22nd day of home
- 【PCIe 实战】SNPS PCIe 开启 SRIS mode
- [annual summary] carry forward the past and forge ahead into the future: look back on the unreliable 2021 and hope for the reliable 2022
- [dvcon2020] simulation acceleration method based on multithreaded UVM test platform
- OpenCv入门(二)——仿射变换和透视变换
- grid_map(6):grid-mapping-in-ROS编译运行
猜你喜欢

unbuntu18.04 安装 gamit10.71 problem solution

80386汇编_全局描述表GDT介绍

2022年官网下安装ActiveMQ最全版与官网查阅方法

matlab-day01

共轭梯度法(Conjugate Gradients)(3)

【Objective-C 高级编程】—— GCD

LabVIEW controls computer shutdown, hibernation, logout and restart

Vulnerability exploitation and security reinforcement

OpenCv入门(二)——仿射变换和透视变换

Visual studio 2019 restore default settings
随机推荐
unbuntu18. 04 installing gamit10 71 problem solution
[Objective-C advanced programming] - GCD
[perseverance challenge] PCIe ask and answer every day (filed on February 2022)
浅谈LD_PRELOAD劫持
Webrtc series - webrtc Foundation (VII) NAT, stun and turn (1)
51 单片机学习_4-1 数码管显示
【PCIe 6.0】PCIe 6.0 新特性 - L0p 详解
技术的好文章和烂文章
IOT identity awareness
《新程序员003》正式上市,华为、阿里等 30+ 公司的云原生及数字化实战经验
[dvcon2020] acceleration of low power design level verification based on signoff abstract model
彻底解决Failed to execute goal on project xxxxx
Reg 正则表达式学习笔记
PCIe reference clock architecture
一个关于混淆的 Native 崩溃分析
Tracup|减少压力和更多的成功,帮助您摆脱工作焦虑的利器
Thread pool (easy to understand)
合并两个有序的数组
LeetCode 1446 - 1449
闭包的实现原理和作用、以及内存泄露