rsassh-keysdbeaverssh-tunneled25519

ssh picking wrong private key even after config file change


I am trying to connect to a database through ssh tunnel in Dbeaver. However, even after explicitly specifying private key, the ssh still looks for the wrong key (or is it wrongly encoded key) while connecting.

I have updated the config file to use the intended private key. But it somehow does not use it, or it is using a different encryption on that key.

(base) arpit@ASFD876876 .ssh % pwd
/Users/arpit/.ssh
(base) arpit@ASFD876876 .ssh % ls -ltr
total 24
-rw-------  1 arpit  test  2622 Jan 17 15:20 id_rsa
-rw-r--r--  1 arpit  test   586 Jan 17 15:20 id_rsa.pub
-rw-r--r--  1 arpit  test   135 Jan 22 13:37 config
(base) arpit@ASFD876876 .ssh % cat config 
Host *
  IdentityFile ~/.ssh/id_rsa

Host jump
  HostName jump.services
  User arpit
  IdentityFile ~/.ssh/id_rsa
(base) arpit@ASFD876876 .ssh % 

As shown below, I have given the path to rsa private key but, the test connection looks for ssh-ed25519 encrypted key.

enter image description here

I am not sure what am I missing. Kindly guide me through. Thanks


Solution

  • ssh-ed25519 is not a file name, but key type and it's not your key but the key of the remote machine
    To manually list keys of the remote host you can use

    ssh-keyscan -H jump.services