Skip to content

Commit

Permalink
Username for ssh computer configure
Browse files Browse the repository at this point in the history
  • Loading branch information
unkcpz committed Oct 4, 2023
1 parent edf3012 commit 0cc8749
Show file tree
Hide file tree
Showing 7 changed files with 31 additions and 6 deletions.
11 changes: 11 additions & 0 deletions daint.cscs.ch/gpu/computer-configure.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,14 @@
---
username: '{{ username }}'
safe_interval: 60
proxy_command: ssh -q -Y {username}@ela.cscs.ch netcat daint.cscs.ch 22
metadata:
tooltip: |
<p>
Setup up the SSH connection.
</p>
ssh_auth: 2FA
username:
description: The username to use for the SSH connection
type: text
key_display: SSH username
1 change: 0 additions & 1 deletion daint.cscs.ch/gpu/computer-setup.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ metadata:
The CSCS now require MFA to login, please check the <a href="https://user.cscs.ch/access/auth/mfa/" target="_blank">MFA CSCS documentation</a> for details on how to set up SSH connection. <br>
If you are using the AiiDAlab, please use the <a href="https://github.com/aiidalab/aiidalab-mfa-cscs" target="_blank">MFA CSCS plugin</a> to set SSH connection.
</p>
ssh_auth: 2FA
label:
default: daint-gpu
description: A short name to identify the computer
Expand Down
1 change: 1 addition & 0 deletions daint.cscs.ch/mc/computer-configure.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ metadata:
<p>
Setup up the SSH connection.
</p>
ssh_auth: 2FA
username:
description: The username to use for the SSH connection
type: text
Expand Down
1 change: 0 additions & 1 deletion daint.cscs.ch/mc/computer-setup.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ metadata:
The CSCS now require MFA to login, please check the <a href="https://user.cscs.ch/access/auth/mfa/" target="_blank">MFA CSCS documentation</a> for details on how to set up SSH connection. <br>
If you are using the AiiDAlab, please use the <a href="https://github.com/aiidalab/aiidalab-mfa-cscs" target="_blank">MFA CSCS plugin</a> to set SSH connection.
</p>
ssh_auth: 2FA
label:
default: daint-mc
description: A short name to identify the computer
Expand Down
10 changes: 7 additions & 3 deletions gh_page/resource.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@
"type": "string"
},
"ssh_auth": {
"type": "string"
"type": "string",
"enum": ["password", "2FA"]
}
},
"additionalProperties": {
Expand Down Expand Up @@ -129,6 +130,9 @@
"computer-configure.yml": {
"type": "object",
"properties": {
"username": {
"type": "string"
},
"safe_interval": {
"type": "integer"
},
Expand All @@ -139,8 +143,8 @@
"$ref": "#/definitions/metadata"
}
},
"required": ["safe_interval"],
"additionalProperties": false,
"required": ["safe_interval", "username"],
"additionalProperties": true,
"title": "Computer Configure"
},
"code.yml": {
Expand Down
1 change: 1 addition & 0 deletions merlin.psi.ch/cpu/computer-configure.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ metadata:
<p>
Setup up the SSH connection.
</p>
ssh_auth: password
username:
description: The username to use for the SSH connection
type: text
Expand Down
12 changes: 11 additions & 1 deletion merlin.psi.ch/gpu/computer-configure.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,13 @@
---
safe_interval: 60
proxy_command: ssh -q -Y {username}@ela.cscs.ch netcat daint.cscs.ch 22
username: '{{ username }}'
metadata:
tooltip: |
<p>
Setup up the SSH connection.
</p>
ssh_auth: password
username:
description: The username to use for the SSH connection
type: text
key_display: SSH username

0 comments on commit 0cc8749

Please sign in to comment.