当前位置:网站首页>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:47:00 【陈 洪 伟】
用ssh连接某个盒子的时候提示如下错误
ssh [email protected]
ssh: connect to host 172.31.8.132 port 22: Connection refused
这个问题一般来说是因为openssh-server没有安装,可是我检查了一下发现有openssh-server,并且也已经启动,经查看 /etc/ssh/sshd_config文件
vim /etc/ssh/sshd_config
发现问题原因是默认端口22被别人改成了2222,可以通过修改上述文件将端口号改回22,
或者不修改端口号的话,那ssh连接的时候指定端口号2222也可以,如果是命令行连接,那么用下面的命令指定端口号。
ssh -p 2222 [email protected]
如果是xshell等工具连接,那么创建新连接时将默认端口号22改为2222即可。
参考文献:
版权声明
本文为[陈 洪 伟]所创,转载请带上原文链接,感谢
https://cumtchw.blog.csdn.net/article/details/124339069
边栏推荐
- Classical question: a pair of rabbits give birth to a pair of rabbits every month from the third month after birth. The little rabbit grows to another pair of rabbits every month after the third month
- Write a program to realize the effect of automatic movement of the electronic clock, and provide a button to control whether the electronic clock stops moving.
- [newcoder] week 20220422
- 共轭梯度法(Conjugate Gradients)(3)
- FPGA (VI) RTL code II (complex circuit design 1)
- matlab-day01
- Financial information security training -- 22 / 4 / 19 (Part 2)
- [leetcode] binary tree, maximum depth of 104 binary tree, diameter of 543 binary tree, maximum path and sum of 124 binary tree
- LabVIEW implements application stop or exit
- Huawei machine test question -- hj76 nikochus theorem
猜你喜欢
![[PCIe 6.0] new features of PCIe 6.0 - detailed explanation of dmwr (deferred memory write)](/img/4e/980e1eacee42a431823d0576f2e200.png)
[PCIe 6.0] new features of PCIe 6.0 - detailed explanation of dmwr (deferred memory write)

【DVCon2020】采用先进 Save & Restore 技术加速仿真周转时间 (Simulation Turnaround Time)

漏洞利用与安全加固

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

Financial information security training -- 22 / 4 / 19 (Part 2)

云计算仿真框架CloudSim介绍(截图版)

LabVIEW控制电脑关机、休眠、注销和重启

2022 hard plus deshmann annual summit: release of a variety of pilot flagship to lead the high-end market
![FileNotFoundError: [Errno 2] No such file or directory: 'image/1. Jpg 'problem solving](/img/72/dca1064713646f909c4a7a8567a742.png)
FileNotFoundError: [Errno 2] No such file or directory: 'image/1. Jpg 'problem solving

Traceup | a powerful tool to reduce stress and achieve more success and help you get rid of work anxiety
随机推荐
网狐U3D客户端游戏配置加载失败Couldn‘t connect to server解决
80386汇编_全局描述表GDT介绍
LabVIEW控制电脑关机、休眠、注销和重启
Typora樣式調優
No module named 'Django is reported when Django specifies the database_ test. settings‘
物联网标识感知
[leetcode] binary tree, maximum depth of 104 binary tree, diameter of 543 binary tree, maximum path and sum of 124 binary tree
Method of shrinking master-slave nodes in redis cluster cluster
合并两个有序的数组
2 technical HR offers, series
JSON. In golang Marshall pit
LeetCode 1446 - 1449
FileNotFoundError: [Errno 2] No such file or directory: 'image/1.jpg'问题解决
Tracup|减少压力和更多的成功,帮助您摆脱工作焦虑的利器
【Turtle表白合集】“海底月是天上月,眼前人是心上人。”余生多喜乐,长平安~(附3款源码)
2022-04-22:给你一个大小为 m x n 的矩阵 board 表示甲板,其中,每个单元格可以是一艘战舰 ‘X‘ 或者是一个空位 ‘.‘ ,返回在甲板 board 上放置的 战舰 的数量。 战舰
FPGA (V) one of RTL codes (cross clock domain design)
"100 million" little technical feelings
Conjugate gradients (3)
IOT identity awareness