Stop SSH from using ksshaskpass or any popup

You know the rules, and so do I.

System:
  Kernel: 6.1.12-zen1-1-zen arch: x86_64 bits: 64 compiler: gcc v: 12.2.1
    parameters: BOOT_IMAGE=/@/boot/vmlinuz-linux-zen
    root=UUID=4f3937b5-6c07-4580-8883-8cef1f42d4f5 rw rootflags=subvol=@
    quiet
    cryptdevice=UUID=3d769afd-2828-481c-8e36-8aba99397d5a:luks-3d769afd-2828-481c-8e36-8aba99397d5a
    root=/dev/mapper/luks-3d769afd-2828-481c-8e36-8aba99397d5a quiet splash
    rd.udev.log_priority=3 vt.global_cursor_default=0
    resume=/dev/mapper/luks-a59fcb28-cd12-4a13-abcf-1ad9ee0585a5 loglevel=3
    ibt=off
  Desktop: KDE Plasma v: 5.27.0 tk: Qt v: 5.15.8 wm: kwin_x11 vt: 1 dm: SDDM
    Distro: Garuda Linux base: Arch Linux
Machine:
  Type: Laptop System: Framework product: Laptop v: AB
    serial: <superuser required>
  Mobo: Framework model: FRANBMCP0B v: AB serial: <superuser required>
    UEFI: INSYDE v: 03.07 date: 12/14/2021
Battery:
  ID-1: BAT1 charge: 43.7 Wh (81.5%) condition: 53.6/55.0 Wh (97.4%)
    volts: 17.3 min: 15.4 model: NVT Framewo type: Li-ion serial: <filter>
    status: charging
CPU:
  Info: model: 11th Gen Intel Core i7-1165G7 bits: 64 type: MT MCP
    arch: Tiger Lake gen: core 11 level: v4 note: check built: 2020
    process: Intel 10nm family: 6 model-id: 0x8C (140) stepping: 1
    microcode: 0xA6
  Topology: cpus: 1x cores: 4 tpc: 2 threads: 8 smt: enabled cache:
    L1: 320 KiB desc: d-4x48 KiB; i-4x32 KiB L2: 5 MiB desc: 4x1.2 MiB
    L3: 12 MiB desc: 1x12 MiB
  Speed (MHz): avg: 2800 min/max: 400/4700 scaling: driver: intel_pstate
    governor: powersave cores: 1: 2800 2: 2800 3: 2800 4: 2800 5: 2800 6: 2800
    7: 2800 8: 2800 bogomips: 44851
  Flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx
  Vulnerabilities: <filter>
Graphics:
  Device-1: Intel TigerLake-LP GT2 [Iris Xe Graphics] driver: i915 v: kernel
    arch: Gen-12.1 process: Intel 10nm built: 2020-21 ports: active: eDP-1
    empty: DP-1, DP-2, DP-3, DP-4 bus-ID: 00:02.0 chip-ID: 8086:9a49
    class-ID: 0300
  Device-2: Realtek Laptop Camera type: USB driver: uvcvideo bus-ID: 3-7:3
    chip-ID: 0bda:5634 class-ID: 0e02 serial: <filter>
  Display: x11 server: X.Org v: 21.1.7 with: Xwayland v: 22.1.8
    compositor: kwin_x11 driver: X: loaded: modesetting
    alternate: fbdev,intel,vesa dri: iris gpu: i915 display-ID: :0 screens: 1
  Screen-1: 0 s-res: 2256x1504 s-dpi: 96 s-size: 596x397mm (23.46x15.63")
    s-diag: 716mm (28.19")
  Monitor-1: eDP-1 model: BOE Display 0x095f built: 2019 res: 2256x1504
    hz: 60 dpi: 201 gamma: 1.2 size: 285x190mm (11.22x7.48") diag: 343mm (13.5")
    ratio: 3:2 modes: 2256x1504
  API: OpenGL v: 4.6 Mesa 22.3.4 renderer: Mesa Intel Xe Graphics (TGL GT2)
    direct-render: Yes
Audio:
  Device-1: Intel Tiger Lake-LP Smart Sound Audio driver: snd_hda_intel
    v: kernel alternate: snd_sof_pci_intel_tgl bus-ID: 00:1f.3
    chip-ID: 8086:a0c8 class-ID: 0403
  Sound API: ALSA v: k6.1.12-zen1-1-zen running: yes
  Sound Server-1: PulseAudio v: 16.1 running: no
  Sound Server-2: PipeWire v: 0.3.65 running: yes
Network:
  Device-1: Intel Wi-Fi 6 AX210/AX211/AX411 160MHz driver: iwlwifi v: kernel
    pcie: gen: 2 speed: 5 GT/s lanes: 1 bus-ID: aa:00.0 chip-ID: 8086:2725
    class-ID: 0280
  IF: wlp170s0 state: up mac: <filter>
  Device-2: Realtek RTL8153 Gigabit Ethernet Adapter type: USB driver: r8152
    bus-ID: 2-1:4 chip-ID: 0bda:8153 class-ID: 0000 serial: <filter>
  IF: enp0s13f0u1 state: up speed: 1000 Mbps duplex: full mac: <filter>
  IF-ID-1: br-005d4b3ec748 state: down mac: <filter>
  IF-ID-2: docker0 state: down mac: <filter>
  IF-ID-3: tun0 state: unknown speed: 10 Mbps duplex: full mac: N/A
  IF-ID-4: virbr0 state: down mac: <filter>
  IF-ID-5: virbr1 state: down mac: <filter>
  IF-ID-6: virbr2 state: down mac: <filter>
Bluetooth:
  Device-1: Intel AX210 Bluetooth type: USB driver: btusb v: 0.8
    bus-ID: 3-10:5 chip-ID: 8087:0032 class-ID: e001
  Report: bt-adapter ID: hci0 rfk-id: 0 state: up address: <filter>
Drives:
  Local Storage: total: 931.51 GiB used: 123.97 GiB (13.3%)
  SMART Message: Unable to run smartctl. Root privileges required.
  ID-1: /dev/nvme0n1 maj-min: 259:0 vendor: Samsung model: SSD 980 PRO 1TB
    size: 931.51 GiB block-size: physical: 512 B logical: 512 B speed: 63.2 Gb/s
    lanes: 4 type: SSD serial: <filter> rev: 2B2QGXA7 temp: 43.9 C scheme: GPT
Partition:
  ID-1: / raw-size: 896.96 GiB size: 896.96 GiB (100.00%)
    used: 123.97 GiB (13.8%) fs: btrfs dev: /dev/dm-0 maj-min: 254:0
    mapped: luks-3d769afd-2828-481c-8e36-8aba99397d5a
  ID-2: /boot/efi raw-size: 300 MiB size: 299.4 MiB (99.80%)
    used: 752 KiB (0.2%) fs: vfat dev: /dev/nvme0n1p1 maj-min: 259:1
  ID-3: /home raw-size: 896.96 GiB size: 896.96 GiB (100.00%)
    used: 123.97 GiB (13.8%) fs: btrfs dev: /dev/dm-0 maj-min: 254:0
    mapped: luks-3d769afd-2828-481c-8e36-8aba99397d5a
  ID-4: /var/log raw-size: 896.96 GiB size: 896.96 GiB (100.00%)
    used: 123.97 GiB (13.8%) fs: btrfs dev: /dev/dm-0 maj-min: 254:0
    mapped: luks-3d769afd-2828-481c-8e36-8aba99397d5a
  ID-5: /var/tmp raw-size: 896.96 GiB size: 896.96 GiB (100.00%)
    used: 123.97 GiB (13.8%) fs: btrfs dev: /dev/dm-0 maj-min: 254:0
    mapped: luks-3d769afd-2828-481c-8e36-8aba99397d5a
Swap:
  Kernel: swappiness: 133 (default 60) cache-pressure: 100 (default)
  ID-1: swap-1 type: zram size: 31.14 GiB used: 0 KiB (0.0%) priority: 100
    dev: /dev/zram0
  ID-2: swap-2 type: partition size: 34.25 GiB used: 0 KiB (0.0%)
    priority: -2 dev: /dev/dm-1 maj-min: 254:1
    mapped: luks-a59fcb28-cd12-4a13-abcf-1ad9ee0585a5
Sensors:
  System Temperatures: cpu: 49.0 C mobo: N/A
  Fan Speeds (RPM): N/A
Info:
  Processes: 327 Uptime: 6h 17m wakeups: 18947 Memory: 31.14 GiB
  used: 10.46 GiB (33.6%) Init: systemd v: 253 default: graphical
  tool: systemctl Compilers: gcc: 12.2.1 Packages: pm: pacman pkgs: 1808
  libs: 393 tools: octopi,pamac,paru,yay Shell: fish v: 3.6.0
  running-in: konsole inxi: 3.3.25
Garuda (2.6.15-1):
  System install date:     2022-05-10
  Last full system update: 2023-02-21
  Is partially upgraded:   No
  Relevant software:       snapper NetworkManager mkinitcpio
  Windows dual boot:       No/Undetected
  Failed units:            

Stop SSH from using any popup when asking for password or knowhost

Since the latest upgrade with the removal of latte-dock and a full Garuda settings reset via. the Garuda assistant, my ssh in the Konsole is using ksshaskpass for password or known host questions.

How do I disable this?

(I got the solution already, this is a documentation topic)


some more tags for better search - please ignore:
ssh disable pop up
ssh use terminal for password input
ssh stop asking for password via popup

2 Likes

Edit the ~/.config/environment.d/garuda.conf File and delete or comment out the:

SSH_ASKPASS='/usr/bin/ksshaskpass'
SSH_ASKPASS_REQUIRE=prefer

part.

Either logout/login / reboot or use a new terminal and send these commands:

set -e SSH_ASKPASS
set -e SSH_ASKPASS_REQUIRE

Try to connect to a host and be happy you have the standard terminal input again instead of the grimsome popup. :wink:

2 Likes

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