Marketing Cloud の [セットアップ] にある [キー管理] ページに、サポートされていない SSH鍵をアップロードすると、エラーが返される場合があります。サポートされているのは OpenSSH で生成された鍵のみです。その他の形式(PuTTY など)を使用した場合、保存時に
'Object reference not set to an instance of an object' というエラーが発生する可能性があります。
このエラーを解決するには、OpenSSH を使用して新しい鍵を生成するか、既存の鍵を OpenSSH の RFC4253 形式に変換してください。
生成したキーを OpenSSH RFC4253 形式に変換する方法(PuTTY Key Generator コンソールを使用):
PuTTY Key Generator ( https://www.puttygen.com/ ) を開きます。
[Key] メニューから、[SSH-2 RSA] を選択します。
メイン画面の右下にある [Number of bits in a generated key] に 2048 と入力します。
[Generate] をクリックします。
鍵が生成されたら、上部のメニューバーから [Conversions] をクリックし、[Export OpenSSH Key] を選択します。
これを .ppk 形式で保存します。これが 秘密鍵になります。
次に、[Save public key] をクリックして、公開鍵を .pub 形式で保存します。
公開鍵を初めて設定する際の追加の手順については、こちらの記事を参照してください
Marketing Cloud では、秘密鍵が OpenSSH 形式である必要があります。キーペア(公開鍵と秘密鍵のペア)を生成する際は、以下のパラメーターを使用してください。
実装 (Implementation): OpenSSH
プロトコル (Protocol): SSH-2
アルゴリズム (Algorithm): RSA
ビット数 (Bits): 2048 (これ以外の強度もサポートされている場合がありますが、未検証であり、安全性が低下する可能性があります)
000380650

We use three kinds of cookies on our websites: required, functional, and advertising. You can choose whether functional and advertising cookies apply. Click on the different cookie categories to find out more about each category and to change the default settings.
Privacy Statement
Required cookies are necessary for basic website functionality. Some examples include: session cookies needed to transmit the website, authentication cookies, and security cookies.
Functional cookies enhance functions, performance, and services on the website. Some examples include: cookies used to analyze site traffic, cookies used for market research, and cookies used to display advertising that is not directed to a particular individual.
Advertising cookies track activity across websites in order to understand a viewer’s interests, and direct them specific marketing. Some examples include: cookies used for remarketing, or interest-based advertising.