SSH id_rsa.pub, запрашивающий парольную фразу, когда ни один не указан для keypair

Удаление папки /var/cache/apt-cacher-ng/download.virtualbox.org помогло мне устранить проблему с Failed to fetch ... Hash Sum mismatch на apt-get update, которая помешала пакет virtualbox-4.3 с сервера Oracle.

1
задан 20 June 2012 в 17:30

7 ответов

Возможно, вы неправильно используете флаг -i, введя ssh, чтобы попытаться прочитать ваш открытый ключ как закрытый ключ. Из справочная страница OpenSSH ssh(1) :

-i identity_file
        Selects a file from which the identity (private key) for public
        key authentication is read.  The default is ~/.ssh/identity for
        protocol version 1, and ~/.ssh/id_dsa, ~/.ssh/id_ecdsa and
        ~/.ssh/id_rsa for protocol version 2.  Identity files may also be
        specified on a per-host basis in the configuration file.  It is
        possible to have multiple -i options (and multiple identities
        specified in configuration files).  ssh will also try to load
        certificate information from the filename obtained by appending
        -cert.pub to identity filenames.

id_rsa является файлом идентификации, который содержит ваш секретный ключ, и должен храниться в секрете и может быть кодовым фраз, защищенный. id_rsa.pub - открытый ключ, который вы должны добавить в authorized_keys для систем, которые вы хотите использовать.

Вместо этого попробуйте -i ~/si_id_rsa.

1
ответ дан 25 July 2018 в 18:24

Возможно, вы неправильно используете флаг -i, введя ssh, чтобы попытаться прочитать ваш открытый ключ как закрытый ключ. Из справочная страница OpenSSH ssh(1) :

-i identity_file
        Selects a file from which the identity (private key) for public
        key authentication is read.  The default is ~/.ssh/identity for
        protocol version 1, and ~/.ssh/id_dsa, ~/.ssh/id_ecdsa and
        ~/.ssh/id_rsa for protocol version 2.  Identity files may also be
        specified on a per-host basis in the configuration file.  It is
        possible to have multiple -i options (and multiple identities
        specified in configuration files).  ssh will also try to load
        certificate information from the filename obtained by appending
        -cert.pub to identity filenames.

id_rsa является файлом идентификации, который содержит ваш секретный ключ, и должен храниться в секрете и может быть кодовым фраз, защищенный. id_rsa.pub - открытый ключ, который вы должны добавить в authorized_keys для систем, которые вы хотите использовать.

Вместо этого попробуйте -i ~/si_id_rsa.

1
ответ дан 2 August 2018 в 00:35

Возможно, вы неправильно используете флаг -i, введя ssh, чтобы попытаться прочитать ваш открытый ключ как закрытый ключ. Из справочная страница OpenSSH ssh(1) :

-i identity_file
        Selects a file from which the identity (private key) for public
        key authentication is read.  The default is ~/.ssh/identity for
        protocol version 1, and ~/.ssh/id_dsa, ~/.ssh/id_ecdsa and
        ~/.ssh/id_rsa for protocol version 2.  Identity files may also be
        specified on a per-host basis in the configuration file.  It is
        possible to have multiple -i options (and multiple identities
        specified in configuration files).  ssh will also try to load
        certificate information from the filename obtained by appending
        -cert.pub to identity filenames.

id_rsa является файлом идентификации, который содержит ваш секретный ключ, и должен храниться в секрете и может быть кодовым фраз, защищенный. id_rsa.pub - открытый ключ, который вы должны добавить в authorized_keys для систем, которые вы хотите использовать.

Вместо этого попробуйте -i ~/si_id_rsa.

1
ответ дан 4 August 2018 в 16:06

Возможно, вы неправильно используете флаг -i, введя ssh, чтобы попытаться прочитать ваш открытый ключ как закрытый ключ. Из справочная страница OpenSSH ssh(1) :

-i identity_file
        Selects a file from which the identity (private key) for public
        key authentication is read.  The default is ~/.ssh/identity for
        protocol version 1, and ~/.ssh/id_dsa, ~/.ssh/id_ecdsa and
        ~/.ssh/id_rsa for protocol version 2.  Identity files may also be
        specified on a per-host basis in the configuration file.  It is
        possible to have multiple -i options (and multiple identities
        specified in configuration files).  ssh will also try to load
        certificate information from the filename obtained by appending
        -cert.pub to identity filenames.

id_rsa является файлом идентификации, который содержит ваш секретный ключ, и должен храниться в секрете и может быть кодовым фраз, защищенный. id_rsa.pub - открытый ключ, который вы должны добавить в authorized_keys для систем, которые вы хотите использовать.

Вместо этого попробуйте -i ~/si_id_rsa.

1
ответ дан 6 August 2018 в 00:44

Возможно, вы неправильно используете флаг -i, введя ssh, чтобы попытаться прочитать ваш открытый ключ как закрытый ключ. Из справочная страница OpenSSH ssh(1) :

-i identity_file
        Selects a file from which the identity (private key) for public
        key authentication is read.  The default is ~/.ssh/identity for
        protocol version 1, and ~/.ssh/id_dsa, ~/.ssh/id_ecdsa and
        ~/.ssh/id_rsa for protocol version 2.  Identity files may also be
        specified on a per-host basis in the configuration file.  It is
        possible to have multiple -i options (and multiple identities
        specified in configuration files).  ssh will also try to load
        certificate information from the filename obtained by appending
        -cert.pub to identity filenames.

id_rsa является файлом идентификации, который содержит ваш секретный ключ, и должен храниться в секрете и может быть кодовым фраз, защищенный. id_rsa.pub - открытый ключ, который вы должны добавить в authorized_keys для систем, которые вы хотите использовать.

Вместо этого попробуйте -i ~/si_id_rsa.

1
ответ дан 7 August 2018 в 18:09

Возможно, вы неправильно используете флаг -i, введя ssh, чтобы попытаться прочитать ваш открытый ключ как закрытый ключ. Из справочная страница OpenSSH ssh(1) :

-i identity_file
        Selects a file from which the identity (private key) for public
        key authentication is read.  The default is ~/.ssh/identity for
        protocol version 1, and ~/.ssh/id_dsa, ~/.ssh/id_ecdsa and
        ~/.ssh/id_rsa for protocol version 2.  Identity files may also be
        specified on a per-host basis in the configuration file.  It is
        possible to have multiple -i options (and multiple identities
        specified in configuration files).  ssh will also try to load
        certificate information from the filename obtained by appending
        -cert.pub to identity filenames.

id_rsa является файлом идентификации, который содержит ваш секретный ключ, и должен храниться в секрете и может быть кодовым фраз, защищенный. id_rsa.pub - открытый ключ, который вы должны добавить в authorized_keys для систем, которые вы хотите использовать.

Вместо этого попробуйте -i ~/si_id_rsa.

1
ответ дан 10 August 2018 в 06:55

Возможно, вы неправильно используете флаг -i, введя ssh, чтобы попытаться прочитать ваш открытый ключ как закрытый ключ. Из справочная страница OpenSSH ssh(1) :

-i identity_file
        Selects a file from which the identity (private key) for public
        key authentication is read.  The default is ~/.ssh/identity for
        protocol version 1, and ~/.ssh/id_dsa, ~/.ssh/id_ecdsa and
        ~/.ssh/id_rsa for protocol version 2.  Identity files may also be
        specified on a per-host basis in the configuration file.  It is
        possible to have multiple -i options (and multiple identities
        specified in configuration files).  ssh will also try to load
        certificate information from the filename obtained by appending
        -cert.pub to identity filenames.

id_rsa является файлом идентификации, который содержит ваш секретный ключ, и должен храниться в секрете и может быть кодовым фраз, защищенный. id_rsa.pub - открытый ключ, который вы должны добавить в authorized_keys для систем, которые вы хотите использовать.

Вместо этого попробуйте -i ~/si_id_rsa.

1
ответ дан 15 August 2018 в 18:53
  • 1
    Понимаю, я, возможно, запутался. Если я создаю пару ключей ssh ​​для пользователя, мне нужно добавить этот ключ к их авторизованным ключам и предоставить им ключ для удаленного входа. id_rsa или id_rsa.pub? – Ne0 20 June 2012 в 17:59
  • 2
    Я ответил на ваш вопрос в своем редактировании. – zigg 20 June 2012 в 18:25

Другие вопросы по тегам:

Похожие вопросы: