Problem mit SSH Verbindung zu Host

Hey Leute

Ich habe hier ein OpenWRT Gerät, welches ich per SSH abfragen will. Ich hab den Key angelegt und abgelegt unter "/omd/sites/sitename/.ssh

Verbinde ich mich als Siteuser mit ssh root@ip werde ich nach dem Passwort gefragt.
Verbinde ich mich als Siteuser mit ssh -i /omd/sites/sitename.ssh/id_rsa_xy root@ip funktioniert es

Ein ssh -vv zeigt, dass er den Key, welches ich angelegt habe, einfach nicht nimmt. Die Berechtigungen sind identisch mit einem anderen Key, womit ich ein anderes Gerät abfrage und dort klappt es.

Woran kann das liegen bzw. welche Debug Möglichkeit bleibt mir noch?

Danke schon mal

Greetz
Ovrld

Das ist keiner der default Keynamen. Ohne Angabe eines Keys fragt SSH nur diese ab.

     -i identity_file
             Selects a file from which the identity (private key) for public key authentication
             is read.  The default is ~/.ssh/identity for protocol version 1, and ~/.ssh/id_dsa,
             ~/.ssh/id_ecdsa, ~/.ssh/id_ed25519 and ~/.ssh/id_rsa for protocol version 2.
             Identity files may also be specified on a per-host basis in the configuration file.
             It is possible to have multiple -i options (and multiple identities specified in
             configuration files).  ssh will also try to load certificate information from the
             filename obtained by appending -cert.pub to identity filenames.
2 Likes

Ach thx da hab ich gar nicht dran gedacht^^ Hab die Keys in den config Ordner gepackt und nun geht es :slight_smile: Thx

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed. Contact an admin if you think this should be re-opened.