danfruehauf / NetworkManager-ssh

SSH VPN integration for NetworkManager
Other
253 stars 40 forks source link

Ignore username in gateway setting? #113

Open petterreinholdtsen opened 1 year ago

petterreinholdtsen commented 1 year ago

When I specify username@my-ssh-host.some.where in the gateway field of the VPN (ssh) KDE system setting for Connections, I see from the log available via journalctl that ssh try to connect to root@username@my-ssh-host.some.where instead of username@my-ssh-host.some.where, and the connection fail because of incorrect password.

I also tried to specify a host block in ~root/.ssh/config like this:

Host my-ssh-host.some.where
  User username
  IdentityFile /home/username/.ssh/id_rsa

The username part of this entry was apparently ignored, and the login failed.