Categories
Linux Mastering Development

Can’t connect to my ssh server with my second ssh client

I have a running Centos 8 server with enabled sshd and static ip, the problem is that I can’t connect to my ssh server from Windows 10, but I can connect using my Debian system. When trying to connect from windows using PuTTY or any other ssh client software I get “Connection time out” error.

I used firewall-cmd --zone=public --permanent --add-service=ssh command to open firewall for ssh. For connecting to ssh server I use ssh root@192.168.1.80. all 3 systems are in the same network.

This is my systemctl status sshd output:

shd.service - OpenSSH server daemon
   Loaded: loaded (/usr/lib/systemd/system/sshd.service; enabled; vendor preset: enabled)
   Active: active (running) since Thu 2020-05-21 21:33:08 EEST; 5min ago
     Docs: man:sshd(8)
           man:sshd_config(5)
 Main PID: 3803 (sshd)
    Tasks: 1 (limit: 22220)
   Memory: 3.5M
   CGroup: /system.slice/sshd.service
           └─3803 /usr/sbin/sshd -D -oCiphers=aes256-gcm@openssh.com,chacha20-poly1305@openssh.com,aes256-ctr,aes256-cbc,aes128-gcm@openssh.com,aes128-ctr,aes128-cbc -oMACs=hmac-sha2-256-etm@openssh.com,hmac-sha1-etm@openssh.com,umac->

May 21 21:33:08 localhost.localdomain systemd[1]: Starting OpenSSH server daemon...
May 21 21:33:08 localhost.localdomain sshd[3803]: Server listening on 0.0.0.0 port 22.
May 21 21:33:08 localhost.localdomain sshd[3803]: Server listening on :: port 22.
May 21 21:33:08 localhost.localdomain systemd[1]: Started OpenSSH server daemon.
May 21 21:35:13 localhost.localdomain sshd[3821]: Accepted password for root from 192.168.1.80 port 45712 ssh2
May 21 21:35:13 localhost.localdomain sshd[3821]: pam_unix(sshd:session): session opened for user root by (uid=0)[![enter image description here][1]][1]

I plugged in my WIFI adapter to my windows 10 desktop machine and I was able to connect, but then I get back to ethernet I’m presented with ssh: connect to host 192.168.1.80 port 22: Connection timed out this happens even after I reinstall my windows 10.

Centos /etc/sysconfig/network-scripts/ifcfg-enp1s0 configuration:

TYPE=Ethernet
PROXY_METHOD=none
BROWSER_ONLY=no
BOOTPROTO=none
DEFROUTE=yes
IPV4_FAILURE_FATAL=no
IPV6INIT=yes
IPV6_AUTOCONF=yes
IPV6_DEFROUTE=yes
IPV6_FAILURE_FATAL=no
IPV6_ADDR_GEN_MODE=stable-privacy
NAME=enp1s0
UUID=a62ccac2-6047-4328-8a66-3915ec7359e1
DEVICE=enp1s0
ONBOOT=yes
IPADDR=192.168.1.80
PREFIX=24
GATEWAY=192.168.1.254
DNS1=8.8.8.8
DNS2=8.8.4.4

Leave a Reply

Your email address will not be published. Required fields are marked *