LINUX.ORG.RU

Как бы объединить ssh и gpg?

 ,


0

2

Есть ssh ключ и gpg ключ. И тот и другой используется и приходится при старте системы вводить два пароля:

  1. ssh key(bitbucket, github)

  2. gpg key. В Имаксе

От пункт1 не избавиться. А вот как бы объединить пункт 2,3? Использовать непосредственно сам gpg не получилось т.к bitbucket не поддерживает gpg ключи в облаке. Как тогда быть? Как бы научить gpg-agent брать ключ от ssh, один раз спрашивать от него пароль и хранить где-то у себя х дней? Можно так как-то сделать или нет?. Чтобы при старте системы у меня gpg-agent спрашивал пароль и ssh не требовал у меня ввода пароля от ключа

★★★

Последнее исправление: serg002 (всего исправлений: 1)

sparks@bastet:~> man gpg-agent | grep ssh
              socket  types (e.g. ssh, extra) as long as they are identified in the environment vari‐
       ‐‐default‐cache‐ttl‐ssh n
              an entry’s maximum lifetime, use max‐cache‐ttl‐ssh.
       ‐‐max‐cache‐ttl‐ssh n
       ‐‐enable‐ssh‐support
              ssh‐agent.
              initially through the ssh‐add utility.  When a key is added, ssh‐add will ask  for  the
              ssh‐agent protocol does not contain a mechanism for telling the  agent  on  which  dis‐
              play/terminal  it  is  running,  gpg‐agent’s  ssh‐support will use the TTY or X display
       the ssh support because ssh does not know about it.  Thus if no GnuPG tool which accesses  the
       agent  has  been  run, there is no guarantee that ssh is able to use gpg‐agent for authentica‐
       with the ssh implementation putty.  This is similar to the regular ssh‐agent support but makes
       ‐‐ssh‐fingerprint‐digest
              Select  the  digest algorithm used to compute ssh fingerprints that are communicated to
       If  you  enabled  the  Ssh Agent Support, you also need to tell ssh about it by adding this to
           export SSH_AUTH_SOCK="$(gpgconf ‐‐list‐dirs agent‐ssh‐socket)"
       sshcontrol
              been enabled (see: [option ‐‐enable‐ssh‐support]). Only keys present in
              The ssh‐add tool may be used to add new entries to this file;
              default as set by ‐‐default‐cache‐ttl‐ssh.
              gpg‐agent using the option ‐c of the ssh‐add
sparks ★★★
()
  1. ssh key(bitbucket, github)

  2. gpg key. В Имаксе

От пункт1 не избавиться. А вот как бы объединить пункт 2,3? Использовать непосредственно сам gpg не получилось т.к bitbucket не поддерживает gpg ключи в облаке. Как тогда быть?

Для начала разупороться и начисто переформулировать, очистив от фантазий. Три раза читал, и все равно ни капли яснее не стало, что тебе объективно мешает юзать ключ из gpg для ssh.

t184256 ★★★★★
()