SSH delayed to the point it times out

So I just did a fresh install of garuda switching from windows. I usually just used ssh on windows and it connected pretty much instantly without any issues. However, here when I use ssh, there is basically 0 response, then after some time it just disconnects with connection timed out. I think it might be avahi problem but i am really uninformed in this kind of stuff.

I did try to turn UseDNS to no and editing some config files but nothing really changed

Ig you guys want garuda inxi a lot, so here it is

System:
  Kernel: 6.8.9-zen1-2-zen arch: x86_64 bits: 64 compiler: gcc v: 14.1.1
    clocksource: tsc avail: acpi_pm
    parameters: BOOT_IMAGE=/@/boot/vmlinuz-linux-zen
    root=UUID=aedb1709-908a-4749-84ff-a01e60bd946b rw rootflags=subvol=@
    quiet loglevel=3 ibt=off
  Desktop: Hyprland v: N/A with: waybar tools: avail: swaylock dm: SDDM
    Distro: Garuda base: Arch Linux
Machine:
  Type: Laptop System: LENOVO product: 81HN v: Lenovo V130-15IKB
    serial: <filter> Chassis: type: 10 v: Lenovo V130-15IKB serial: <filter>
  Mobo: LENOVO model: LNVNB161216 v: NO DPK serial: <filter>
    part-nu: LENOVO_MT_81HN_BU_idea_FM_V130-15IKB
    uuid: a17a34c0-0672-11ea-a904-c0b88323074d UEFI: LENOVO v: 8VCN17WW
    date: 05/02/2019
Battery:
  ID-1: BAT0 charge: 22.0 Wh (100.0%) condition: 22.0/30.6 Wh (72.0%)
    volts: 8.5 min: 7.6 model: CPT-COS L17C2PB3 type: Li-poly serial: <filter>
    status: full
CPU:
  Info: model: Intel Core i3-7020U socket: BGA1356 (U3E1) note: check bits: 64
    type: MT MCP arch: Amber/Kaby Lake note: check gen: core 7 level: v3
    note: check built: 2017 process: Intel 14nm family: 6 model-id: 0x8E (142)
    stepping: 9 microcode: 0xF4
  Topology: cpus: 1x cores: 2 tpc: 2 threads: 4 smt: enabled cache:
    L1: 128 KiB desc: d-2x32 KiB; i-2x32 KiB L2: 512 KiB desc: 2x256 KiB
    L3: 3 MiB desc: 1x3 MiB
  Speed (MHz): avg: 500 high: 800 min/max: 400/2300 base/boost: 2300/2300
    scaling: driver: intel_pstate governor: powersave volts: 0.8 V
    ext-clock: 100 MHz cores: 1: 800 2: 400 3: 400 4: 400 bogomips: 18399
  Flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx
  Vulnerabilities: <filter>
Graphics:
  Device-1: Intel HD Graphics 620 vendor: Lenovo driver: i915 v: kernel
    arch: Gen-9.5 process: Intel 14nm built: 2016-20 ports: active: eDP-1
    empty: HDMI-A-1 bus-ID: 00:02.0 chip-ID: 8086:5916 class-ID: 0300
  Device-2: Bison SunplusIT Integrated Camera driver: uvcvideo type: USB
    rev: 2.0 speed: 480 Mb/s lanes: 1 mode: 2.0 bus-ID: 1-5:3 chip-ID: 5986:2113
    class-ID: 0e02
  Display: server: X.org v: 1.21.1.13 with: Xwayland v: 23.2.6
    compositor: Hyprland driver: X: loaded: modesetting
    alternate: fbdev,intel,vesa dri: iris gpu: i915 display-ID: :1
  Monitor-1: eDP-1 model: ChiMei InnoLux 0x15db built: 2015 res: 1366x768
    dpi: 101 gamma: 1.2 size: 344x193mm (13.54x7.6") diag: 394mm (15.5")
    ratio: 16:9 modes: 1366x768
  API: Vulkan Message: No Vulkan data available.
  API: OpenGL Message: Unable to show GL data. glxinfo is missing.
Audio:
  Device-1: Intel Sunrise Point-LP HD Audio vendor: Lenovo
    driver: snd_hda_intel v: kernel alternate: snd_soc_skl,snd_soc_avs
    bus-ID: 00:1f.3 chip-ID: 8086:9d71 class-ID: 0403
  API: ALSA v: k6.8.9-zen1-2-zen status: kernel-api
    tools: alsactl,alsamixer,amixer
  Server-1: sndiod v: N/A status: off tools: aucat,midicat,sndioctl
  Server-2: PipeWire v: 1.0.5 status: n/a (root, process) with:
    1: pipewire-pulse status: active 2: wireplumber status: active
    3: pipewire-alsa type: plugin 4: pw-jack type: plugin
    tools: pactl,pw-cat,pw-cli,wpctl
Network:
  Device-1: Intel Dual Band Wireless-AC 3165 Plus Bluetooth driver: iwlwifi
    v: kernel modules: wl pcie: gen: 1 speed: 2.5 GT/s lanes: 1 bus-ID: 02:00.0
    chip-ID: 8086:3166 class-ID: 0280
  IF: wlp2s0 state: up mac: <filter>
  Device-2: Realtek RTL8111/8168/8211/8411 PCI Express Gigabit Ethernet
    vendor: Lenovo driver: r8169 v: kernel pcie: gen: 1 speed: 2.5 GT/s lanes: 1
    port: d000 bus-ID: 03:00.0 chip-ID: 10ec:8168 class-ID: 0200
  IF: enp3s0 state: down mac: <filter>
  Info: services: NetworkManager, systemd-timesyncd, wpa_supplicant
Bluetooth:
  Device-1: Intel Bluetooth wireless interface driver: btusb v: 0.8 type: USB
    rev: 2.0 speed: 12 Mb/s lanes: 1 mode: 1.1 bus-ID: 1-8:4 chip-ID: 8087:0a2a
    class-ID: e001
  Report: btmgmt ID: hci0 rfk-id: 3 state: up address: <filter> bt-v: 4.2
    lmp-v: 8 status: discoverable: no pairing: no class-ID: 6c010c
Drives:
  Local Storage: total: 119.24 GiB used: 12.49 GiB (10.5%)
  SMART Message: Required tool smartctl not installed. Check --recommends
  ID-1: /dev/sda maj-min: 8:0 vendor: Samsung model: MZ7LH128HBHQ-000L1
    size: 119.24 GiB block-size: physical: 4096 B logical: 512 B speed: 6.0 Gb/s
    tech: SSD serial: <filter> fw-rev: 2L0Q scheme: GPT
Partition:
  ID-1: / raw-size: 118.95 GiB size: 118.95 GiB (100.00%)
    used: 12.49 GiB (10.5%) fs: btrfs block-size: 4096 B dev: /dev/sda2
    maj-min: 8:2
  ID-2: /boot/efi raw-size: 300 MiB size: 299.4 MiB (99.80%)
    used: 584 KiB (0.2%) fs: vfat block-size: 512 B dev: /dev/sda1 maj-min: 8:1
  ID-3: /home raw-size: 118.95 GiB size: 118.95 GiB (100.00%)
    used: 12.49 GiB (10.5%) fs: btrfs block-size: 4096 B dev: /dev/sda2
    maj-min: 8:2
  ID-4: /var/log raw-size: 118.95 GiB size: 118.95 GiB (100.00%)
    used: 12.49 GiB (10.5%) fs: btrfs block-size: 4096 B dev: /dev/sda2
    maj-min: 8:2
  ID-5: /var/tmp raw-size: 118.95 GiB size: 118.95 GiB (100.00%)
    used: 12.49 GiB (10.5%) fs: btrfs block-size: 4096 B dev: /dev/sda2
    maj-min: 8:2
Swap:
  Kernel: swappiness: 133 (default 60) cache-pressure: 100 (default) zswap: no
  ID-1: swap-1 type: zram size: 11.03 GiB used: 0 KiB (0.0%) priority: 100
    comp: zstd avail: lzo,lzo-rle,lz4,lz4hc,842 max-streams: 4 dev: /dev/zram0
Sensors:
  System Temperatures: cpu: 47.0 C pch: 44.5 C mobo: N/A
  Fan Speeds (rpm): N/A
Info:
  Memory: total: 12 GiB note: est. available: 11.03 GiB used: 1.97 GiB (17.8%)
    igpu: 32 MiB
  Processes: 193 Power: uptime: 6m states: freeze,mem,disk suspend: deep
    avail: s2idle wakeups: 0 hibernate: platform avail: shutdown, reboot,
    suspend, test_resume image: 4.4 GiB services: power-profiles-daemon
    Init: systemd v: 255 default: graphical tool: systemctl
  Packages: 1356 pm: pacman pkgs: 1341 libs: 404 tools: paru,yay pm: flatpak
    pkgs: 15 Compilers: gcc: 14.1.1 Shell: garuda-inxi (sudo) default: Bash
    v: 5.2.26 running-in: kitty inxi: 3.3.34
Garuda (2.6.26-1):
  System install date:     2024-05-09
  Last full system update: 2024-05-10
  Is partially upgraded:   No
  Relevant software:       snapper NetworkManager dracut
  Windows dual boot:       No/Undetected
  Failed units:

and the -vvv log

OpenSSH_9.7p1, OpenSSL 3.3.0 9 Apr 2024
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: /etc/ssh/ssh_config line 2: include /etc/ssh/ssh_config.d/*.conf matched no files
debug2: resolve_canonicalize: hostname [IP] is address
debug3: expanded UserKnownHostsFile '~/.ssh/known_hosts' -> '/home/shade/.ssh/known_hosts'
debug3: expanded UserKnownHostsFile '~/.ssh/known_hosts2' -> '/home/shade/.ssh/known_hosts2'
debug3: channel_clear_timeouts: clearing
debug3: ssh_connect_direct: entering
debug1: Connecting to [IP] [[IP]] port 10274.
debug3: set_sock_tos: set socket 3 IP_TOS 0x48
debug1: connect to address [IP] port 10274: Connection timed out
ssh: connect to host [IP] port 10274: Connection timed out

[IP] is just the IP for ssh, idk if its safe to put it in a public form.

IDK in moment how you use it, please show full command + log next time.

Check

systemctl status sshd.service

If failed use

systemctl enable --now sshd.service
2 Likes

IST moment, was sleeping.

Anyway, the command I used-
ssh -vvv [username]@[IP] -p [Port]

I did what you told me a bit before this post while trying to troubleshoot. And it did create a systemlink instead of an error so i guess it was not created. However ssh still didnā€™t work

here systemctl status sshd.service

ā— sshd.service - OpenSSH Daemon
     Loaded: loaded (/usr/lib/systemd/system/sshd.service; enabled; preset: disabled)
     Active: active (running) since Fri 2024-05-10 09:19:02 IST; 1min 28s ago
   Main PID: 622 (sshd)
      Tasks: 1 (limit: 13519)
     Memory: 2.1M (peak: 2.2M)
        CPU: 43ms
     CGroup: /system.slice/sshd.service
             ā””ā”€622 "sshd: /usr/bin/sshd -D [listener] 0 of 10-100 startups"

May 10 09:19:02 BlackSpace systemd[1]: Started OpenSSH Daemon.
May 10 09:19:02 BlackSpace sshd[622]: Server listening on 0.0.0.0 port 22.
May 10 09:19:02 BlackSpace sshd[622]: Server listening on :: port 22.

Looks good

Status is?
Server is aktiv?
.ssh ok?


Works fine here

debug2: shell request accepted on channel 0
Last login: Wed May  8 21:51:25 2024 from 192.168.0.100

Maybe anyone else can help?

I went on testing some other public servers after this and they were now working. Most likely due to that systemctl ssh.service being enabled now.

However some power outage happened when the server owner was sleeping and then some error happened his side. Now he fixed it and I can connect to it again. So it seems that your first reply was the answer.

1 Like

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.