The i3 FAQ has migrated to https://github.com/i3/i3/discussions. All content here is read-only.
Ask Your Question
0

ssh permission denied in i3

asked 2014-08-12 21:49:27 +0000

jatcheson gravatar image

sshd and ssh-agent are running.

ssh works fine when running from regular desktop (Linux Mint 17 Cinnamon) and public/private keys are in ~/.ssh, but when trying to connect under i3, I get Permission denied (publickey,keyboard-interactive).

edit retag flag offensive close merge delete

Comments

This probably has nothing to do with i3 anyway.

cee gravatar imagecee ( 2014-08-13 06:27:49 +0000 )edit

1 answer

Sort by ยป oldest newest most voted
0

answered 2014-08-13 06:26:16 +0000

cee gravatar image

What permissions do you have in ~/.ssh? It should be:

drwx------ (700) for ~/.ssh

-rw------- (600) for private keys

-rw-r--r-- (644) for public keys

What exactly are you trying? Connecting from i3 to another Device, or vice-versa?

edit flag offensive delete link more

Comments

The permissions match what I have. I am trying to connect from i3 to another Device (`gnome-keyring-d` also appears to be running).

jatcheson gravatar imagejatcheson ( 2014-08-13 07:57:28 +0000 )edit

Okay, I found the solution. I had given my keys specific names (such as `mycomputer-key` and `mycomputer-key.pub`) instead of default `id_rsa` and `id_rsa.pub`. Renaming just the private key to `id_rsa` I am now permitted to connect.

jatcheson gravatar imagejatcheson ( 2014-08-13 08:05:00 +0000 )edit

In case of keys with non-standard names you can use `ssh-add` to make them known to the `ssh-agent`: `ssh-add mycomputer-key`. In fact, I use this line to add all of my keys: `for k in ~/.ssh/*.pub; do ssh-add "${k%.pub}"; done`.

Adaephon gravatar imageAdaephon ( 2014-08-13 15:29:26 +0000 )edit

Question Tools

Stats

Asked: 2014-08-12 21:49:27 +0000

Seen: 123 times

Last updated: Aug 13 '14