Teleport: tsh should display an error if gnome-keyring-daemon is used

Created on 12 Sep 2017  路  1Comment  路  Source: gravitational/teleport

Currently, tsh and gnome-keyring-daemon don't work together.
See https://github.com/gravitational/teleport/issues/768

tsh login displays You are now logged in even if ssh-add -l doesn't list anything.
Can you display a warning if tsh is used with gnome-keyring-daemon ?

feature-request tsh

Most helpful comment

I think detecting gnome-keyring is probably a losing strategy for the following reasons:

  • They may actually fix this problem in future releases, then the error will be confusing.
  • Gnome-keyring may be present but not configured to handle SSH (latest Ubuntu releases do this).

Instead, we should do this:

  1. Add the cert to the agent.
  2. Request it back (by getting them all and enumerating) to see if it was actually added.
  3. Display a warning if needed.

>All comments

I think detecting gnome-keyring is probably a losing strategy for the following reasons:

  • They may actually fix this problem in future releases, then the error will be confusing.
  • Gnome-keyring may be present but not configured to handle SSH (latest Ubuntu releases do this).

Instead, we should do this:

  1. Add the cert to the agent.
  2. Request it back (by getting them all and enumerating) to see if it was actually added.
  3. Display a warning if needed.
Was this page helpful?
0 / 5 - 0 ratings