You are not logged in.

#1 2020-05-06 01:46:52

snap.ve
Member
Registered: 2020-04-02
Posts: 76

[SOLVED] Problem with SSH key on another DE

Hello every one! Let me ask for your help please. I use two working environments Budgie with gnome soft and i3wm. On a working environment with Budgie, everything works fine. ssh keys automatically autostarted and i can use putty or filezilla for my some vps servers. I use selective authorization only on the public key ssh in the settings by /etc/ssh/sshd_config on my servers.
But this only works on the Budgie desktop. In i3wm DE, only the - ssh user@ip command works. If I try to run a putty, I get a notification - No supported authentication methods available (server sent: publickey) Of course, Filezilla doesn't work either.
I thought that maybe the problem is that I did not register the automatic loading of the ssh daemon in the config. I started looking for how to do this and found several methods like

eval $(ssh-agent)
ssh-add

but it doesn't work!
Prior to that, I had a problem with GPG keys for Chrome in i3wm DE. And i fixed that with add command

exec --no-startup-id /usr/bin/gnome-keyring-daemon --start --components=keyring,gpg,pkcs11,secrets,ssh

But that's strange. Why it works on GPG keys, but not on SSH keys.
Can you help me? What i'm doing wrong?

Last edited by snap.ve (2020-05-06 05:03:53)

Offline

#2 2020-05-06 04:19:40

Awebb
Member
Registered: 2010-05-06
Posts: 6,688

Re: [SOLVED] Problem with SSH key on another DE

That is the explanation. Gnome uses its own keyring daemon. if you don't use that, you'll have to set up something else. I don't know what works with putty or filezilla, never used them on Linux.

Offline

#3 2020-05-06 04:35:44

snap.ve
Member
Registered: 2020-04-02
Posts: 76

Re: [SOLVED] Problem with SSH key on another DE

Awebb wrote:

That is the explanation. Gnome uses its own keyring daemon. if you don't use that, you'll have to set up something else. I don't know what works with putty or filezilla, never used them on Linux.

Well... How then to launch gnome-keyring in i3wm, if command line exec --no-startup-id /usr/bin/gnome-keyring-daemon --start --components=keyring,gpg,pkcs11,secrets,ssh won't work with SSH key only? GPG keys works fine. What prevents this?

Last edited by snap.ve (2020-05-06 04:44:42)

Offline

#4 2020-05-06 04:44:38

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: [SOLVED] Problem with SSH key on another DE

snap.ve wrote:
Awebb wrote:

That is the explanation. Gnome uses its own keyring daemon. if you don't use that, you'll have to set up something else. I don't know what works with putty or filezilla, never used them on Linux.

Well... How then to launch gnome-keyring in i3wm...

By reading the wiki: https://wiki.archlinux.org/index.php/GN … side_GNOME


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#5 2020-05-06 04:55:36

snap.ve
Member
Registered: 2020-04-02
Posts: 76

Re: [SOLVED] Problem with SSH key on another DE

jasonwryan wrote:
snap.ve wrote:
Awebb wrote:

That is the explanation. Gnome uses its own keyring daemon. if you don't use that, you'll have to set up something else. I don't know what works with putty or filezilla, never used them on Linux.

Well... How then to launch gnome-keyring in i3wm...

By reading the wiki: https://wiki.archlinux.org/index.php/GN … side_GNOME

I read the manual and it helped me, the problem was in the wrong code line. In the beginning it was necessary to write eval $ and export SSH_AUTH_SOCK

eval $(/usr/bin/gnome-keyring-daemon --start --components=pkcs11,secrets,ssh)
export SSH_AUTH_SOCK

Offline

#6 2020-05-06 04:57:24

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: [SOLVED] Problem with SSH key on another DE

Please remember to mark your thread as [Solved] by editing your first post and prepending it to the title.


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#7 2020-05-06 05:04:08

snap.ve
Member
Registered: 2020-04-02
Posts: 76

Re: [SOLVED] Problem with SSH key on another DE

jasonwryan wrote:

Please remember to mark your thread as [Solved] by editing your first post and prepending it to the title.

Sure

Offline

Board footer

Powered by FluxBB