Set up Identity File (i.e. ssh key) for batch submission

I use the batch command to submit job to a cluster and take advantage of the parallel computing toolbox.
I set up an ssh key pair that allows me to connect to the cluster without being prompted for my password.
When using the batch command in Matlab, I am prompted for my cluster user name, after which I can either
  1. choose a so-called identity file (i.e. private ssh key)
  2. or type my password
solution 1. works, however, I have to input user name and the file containing the private ssh key every time the batch command is used.
How could I save user name and path to these key file so that I dont have to enter them every time, even after restarting Matlab?
I imagine it should be possible to save this information in the used Cluster Profile but cannot find out where.

1 件のコメント

TZ
TZ 2021 年 11 月 8 日
To solve this I have set AdditionalProperties in my cluster profile in such order:
Name | Value | Type
ClusterHost | mycluster.de | String
IdentityFile | D:\id_rsa | String
IdentityFileHasPassphrase | false | Logical
UseIdentityFile | true | Logical
Username | joe | String
(Assuming I log onto my cluster by joe@mycluster.de and my cluster admin supplied me with a rsa private key named id_rsa which I saved on D:)

サインインしてコメントする。

回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeMATLAB Parallel Server についてさらに検索

質問済み:

2018 年 3 月 21 日

コメント済み:

TZ
2021 年 11 月 8 日

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by