From db7f0b138a7f0f42ecd0e409de5967b302fbd07a Mon Sep 17 00:00:00 2001 From: Mark Andrew Miller Date: Fri, 4 Aug 2023 10:48:00 -0400 Subject: [PATCH 1/4] first steps in migration notes --- assets/misc/legacy_migration_notes.md | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 assets/misc/legacy_migration_notes.md diff --git a/assets/misc/legacy_migration_notes.md b/assets/misc/legacy_migration_notes.md new file mode 100644 index 0000000000..75e453294e --- /dev/null +++ b/assets/misc/legacy_migration_notes.md @@ -0,0 +1,2 @@ +1. create a 24-hour ssh key wiht NERSC sshproxy +1. ssh -i ~/.ssh/nersc -L27777:mongo-loadbalancer.nmdc.production.svc.spin.nersc.org:27017 -o ServerAliveInterval=60 mam@dtn01.nersc.gov From da26323caf48a03f7009783f079171721cf0f72f Mon Sep 17 00:00:00 2001 From: Mark Andrew Miller Date: Fri, 4 Aug 2023 11:12:45 -0400 Subject: [PATCH 2/4] more about scp, sshproxy and tunneling --- assets/misc/legacy_migration_notes.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/assets/misc/legacy_migration_notes.md b/assets/misc/legacy_migration_notes.md index 75e453294e..ffa7785b90 100644 --- a/assets/misc/legacy_migration_notes.md +++ b/assets/misc/legacy_migration_notes.md @@ -1,2 +1,4 @@ -1. create a 24-hour ssh key wiht NERSC sshproxy -1. ssh -i ~/.ssh/nersc -L27777:mongo-loadbalancer.nmdc.production.svc.spin.nersc.org:27017 -o ServerAliveInterval=60 mam@dtn01.nersc.gov +1. Learn about the NERSC sshproxy app, which generates 24-hour password-less keys: https://www.nersc.gov/assets/Uploads/Using-sshproxy.pdf +2. Download the NERSC's `sshproxy` app with the `scp` command on page 5 of the PDF. One caveat: the documentation recommends getting the app from `cori.nersc.gov`, which jhas been retired. So use `perlmutter.nersc.gov` or `dtn01.nersc.gov`. +3. Create a NERSC ssh key with the `sshproxy` command that was just downloaded. Use the `-u` option unless your NERSC username is identical to your local username. For examples, my local username is "XYZ" but my NERSC username is "xyz", so I enter `.sshproxy -u xyz` +1. create an ssh tunnel from your local computer, though `dtn01.nersc.gov` to the (production) MongoDB on mongo-loadbalancer.nmdc.production. Note that zI am recommending tunneling the MongoDB port to local port 27777. Other NMDC poeple may recommend other ports. `ssh -i ~/.ssh/nersc -L27777:mongo-loadbalancer.nmdc.production.svc.spin.nersc.org:27017 -o ServerAliveInterval=60 @dtn01.nersc.gov` From 4c81bab26905f00d91e51d8ffb4dd9bf648c3a0b Mon Sep 17 00:00:00 2001 From: Shalki Shrivastava Date: Fri, 4 Aug 2023 10:32:27 -0500 Subject: [PATCH 3/4] Fix typo --- assets/misc/legacy_migration_notes.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/assets/misc/legacy_migration_notes.md b/assets/misc/legacy_migration_notes.md index ffa7785b90..0133f14b09 100644 --- a/assets/misc/legacy_migration_notes.md +++ b/assets/misc/legacy_migration_notes.md @@ -1,4 +1,4 @@ 1. Learn about the NERSC sshproxy app, which generates 24-hour password-less keys: https://www.nersc.gov/assets/Uploads/Using-sshproxy.pdf -2. Download the NERSC's `sshproxy` app with the `scp` command on page 5 of the PDF. One caveat: the documentation recommends getting the app from `cori.nersc.gov`, which jhas been retired. So use `perlmutter.nersc.gov` or `dtn01.nersc.gov`. +2. Download the NERSC's `sshproxy` app with the `scp` command on page 5 of the PDF. One caveat: the documentation recommends getting the app from `cori.nersc.gov`, which has been retired. So use `perlmutter.nersc.gov` or `dtn01.nersc.gov`. 3. Create a NERSC ssh key with the `sshproxy` command that was just downloaded. Use the `-u` option unless your NERSC username is identical to your local username. For examples, my local username is "XYZ" but my NERSC username is "xyz", so I enter `.sshproxy -u xyz` 1. create an ssh tunnel from your local computer, though `dtn01.nersc.gov` to the (production) MongoDB on mongo-loadbalancer.nmdc.production. Note that zI am recommending tunneling the MongoDB port to local port 27777. Other NMDC poeple may recommend other ports. `ssh -i ~/.ssh/nersc -L27777:mongo-loadbalancer.nmdc.production.svc.spin.nersc.org:27017 -o ServerAliveInterval=60 @dtn01.nersc.gov` From 9904202ca9a59c17955fc82e73efdc251bc5f9c4 Mon Sep 17 00:00:00 2001 From: Shalki Shrivastava Date: Fri, 4 Aug 2023 10:38:02 -0500 Subject: [PATCH 4/4] Fix typos --- assets/misc/legacy_migration_notes.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/assets/misc/legacy_migration_notes.md b/assets/misc/legacy_migration_notes.md index 0133f14b09..ad3faeeb25 100644 --- a/assets/misc/legacy_migration_notes.md +++ b/assets/misc/legacy_migration_notes.md @@ -1,4 +1,4 @@ 1. Learn about the NERSC sshproxy app, which generates 24-hour password-less keys: https://www.nersc.gov/assets/Uploads/Using-sshproxy.pdf 2. Download the NERSC's `sshproxy` app with the `scp` command on page 5 of the PDF. One caveat: the documentation recommends getting the app from `cori.nersc.gov`, which has been retired. So use `perlmutter.nersc.gov` or `dtn01.nersc.gov`. 3. Create a NERSC ssh key with the `sshproxy` command that was just downloaded. Use the `-u` option unless your NERSC username is identical to your local username. For examples, my local username is "XYZ" but my NERSC username is "xyz", so I enter `.sshproxy -u xyz` -1. create an ssh tunnel from your local computer, though `dtn01.nersc.gov` to the (production) MongoDB on mongo-loadbalancer.nmdc.production. Note that zI am recommending tunneling the MongoDB port to local port 27777. Other NMDC poeple may recommend other ports. `ssh -i ~/.ssh/nersc -L27777:mongo-loadbalancer.nmdc.production.svc.spin.nersc.org:27017 -o ServerAliveInterval=60 @dtn01.nersc.gov` +4. Create an ssh tunnel from your local computer, through `dtn01.nersc.gov` to the (production) MongoDB on mongo-loadbalancer.nmdc.production. Note that I am recommending tunneling the MongoDB port to local port 27777. Other NMDC poeple may recommend other ports. `ssh -i ~/.ssh/nersc -L27777:mongo-loadbalancer.nmdc.production.svc.spin.nersc.org:27017 -o ServerAliveInterval=60 @dtn01.nersc.gov`