SSH-Zugriff von HA auf anderen PC funktioniert nur im Terminal

Hallo Bernd,

danke mit dem Tipp (-vvv). Allerdings verwirrt mich das Ergebnis noch mehr :see_no_evil_monkey:

Hier die Infos aus dem Logfile, die ich nicht verstehe bzw. wie ich sie interpretiere:

debug3: expanded UserKnownHostsFile ‘\~/.ssh/known_hosts’ → ‘/root/.ssh/known_hosts’debug3: expanded UserKnownHostsFile ‘\~/.ssh/known_hosts2’ → ‘/root/.ssh/known_hosts2’

Dies bedeutet für mich, dass die Comman-line mit dem User “root” ausgeführt wird. Ich bin in HA mit “jh” angemeldet

debug1: load_hostkeys: fopen /root/.ssh/known_hosts: No such file or directory

Dies kann ich nicht nachvollziehen.

> ➜  \~ cd /root/.ssh/
> ➜  .ssh ls -l
> total 16
> -rw-r–r--    1 root     root           130 Sep 26 21:00 environment
> -rw-------    1 root     root           660 Sep 26 21:18 known_hosts
> -rw-------    1 root     root           755 Sep 26 17:45 known_hosts.alt
> -rw-r–r--    1 root     root            94 Sep 26 21:13 known_hosts.old
> ➜  .ssh

> debug1: SSH2_MSG_KEX_ECDH_REPLY received
> debug1: Server host key: ssh-ed25519 SHA256:xzHnMN7GjVEUQEGaiiIP5/qjIyt07w/Hpxjnyj8X3hA
> debug1: load_hostkeys: fopen /root/.ssh/known_hosts: No such file or directory
> debug1: load_hostkeys: fopen /root/.ssh/known_hosts2: No such file or directory
> debug1: load_hostkeys: fopen /etc/ssh/ssh_known_hosts: No such file or directory
> debug1: load_hostkeys: fopen /etc/ssh/ssh_known_hosts2: No such file or directory
> debug3: hostkeys_find_by_key_hostfile: trying user hostfile “/root/.ssh/known_hosts”
> debug1: hostkeys_find_by_key_hostfile: hostkeys file /root/.ssh/known_hosts does not exist
> debug3: hostkeys_find_by_key_hostfile: trying user hostfile “/root/.ssh/known_hosts2”
> debug1: hostkeys_find_by_key_hostfile: hostkeys file /root/.ssh/known_hosts2 does not exist
> debug3: hostkeys_find_by_key_hostfile: trying system hostfile “/etc/ssh/ssh_known_hosts”
> debug1: hostkeys_find_by_key_hostfile: hostkeys file /etc/ssh/ssh_known_hosts does not exist
> debug3: hostkeys_find_by_key_hostfile: trying system hostfile “/etc/ssh/ssh_known_hosts2”
> debug1: hostkeys_find_by_key_hostfile: hostkeys file /etc/ssh/ssh_known_hosts2 does not exist
> debug1: read_passphrase: can’t open /dev/tty: No such device or address
> Host key verification failed.

Das System scheint also die Datei “known_hosts” nicht zu finden.

Sie ist aber definitiv vorhanden. Was nun?

Viele Grüße
Jürgen

:crayon:by HarryP: Code-/Logzeilen formatiert (bitte immer in </> einbinden)
s.a.: (Neues Update & Features - Hier in der Community 🫶)