ssh: connect to host 10.112.1.5 port 10083: Connection refused

ssh: connect to host 10.112.1.5 port 10083: Connection refused

1.查看已知端口占用情况

我们想知道10083端口的使用情况,或者说被谁占用了,命令如下:

 netstat -anp | grep 18003

 并没有发现什么端口占用,为什么无法访问

2.检查.ssh/config

cd /home/user/.ssh/
gedit config

 删除上面这段配置,再次SSH

ssh [email protected]

问题解决

Welcome to Ubuntu 20.04.4 LTS (GNU/Linux 5.15.0-50-generic x86_64)

 * Documentation:  https://help.ubuntu.com
 * Management:     https://landscape.canonical.com
 * Support:        https://ubuntu.com/advantage

103 updates can be applied immediately.
To see these additional updates run: apt list --upgradable


The list of available updates is more than a week old.
To check for new updates run: sudo apt update
New release '22.04.1 LTS' available.
Run 'do-release-upgrade' to upgrade to it.

Your Hardware Enablement Stack (HWE) is supported until April 2025.
Last login: Tue Nov 29 09:43:49 2022 
$ 
$ 

猜你喜欢

转载自blog.csdn.net/qq_34106574/article/details/128092152