From d2756608bfb2246a75204823d5d98ab66bc79bba Mon Sep 17 00:00:00 2001 From: heatherkellyucl Date: Mon, 5 Jun 2023 19:00:00 +0100 Subject: [PATCH 1/4] Create filezilla-remote-instructions.snip --- .../filezilla-remote-instructions.snip | 21 +++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 _includes/snippets_library/UCL_Myriad_sge/filezilla-remote-instructions.snip diff --git a/_includes/snippets_library/UCL_Myriad_sge/filezilla-remote-instructions.snip b/_includes/snippets_library/UCL_Myriad_sge/filezilla-remote-instructions.snip new file mode 100644 index 00000000..e2b8e267 --- /dev/null +++ b/_includes/snippets_library/UCL_Myriad_sge/filezilla-remote-instructions.snip @@ -0,0 +1,21 @@ +> ## Connecting Remotely Via an SSH Tunnel +> +> If you are remote and not using a VPN, you will need to set up an SSH tunnel +using your terminal. +> +> ``` +> {{ site.local.prompt }} ssh -L 3333:{{ site.remote.login }}:22 {{ site.remote.user }}@ssh-gateway.ucl.ac.uk -N +> ``` +> {: .language-bash} +> +> This connects the local port 3333 to the cluster's SSH port, via the +> remote gateway. The `-N` option tells it not to execute any remote +> commands. Leave this running in the terminal and in FileZilla, set +> +> * Host: `sftp://localhost` +> * User: Your cluster username +> * Password: Your cluster password (leave blank to use your SSH keys) +> * Port: 3333 +> +> Hit "Quickconnect" to connect. +{: .callout} From 561becfa750b7f97867f00fcdd8d0e735e9cbbc3 Mon Sep 17 00:00:00 2001 From: Camilla Harris <31481972+cdkharris@users.noreply.github.com> Date: Thu, 25 Jul 2024 11:00:26 +0100 Subject: [PATCH 2/4] Reference a site snippet for Filezilla in the transferring-files lesson --- _episodes/16-transferring-files.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/_episodes/16-transferring-files.md b/_episodes/16-transferring-files.md index 5548dd6d..9d07c2c8 100644 --- a/_episodes/16-transferring-files.md +++ b/_episodes/16-transferring-files.md @@ -448,6 +448,8 @@ Hit "Quickconnect" to connect. You should see your remote files appear on the right hand side of the screen. You can drag-and-drop files between the left (local) and right (remote) sides of the screen to transfer files. +{% include {{ site.snippets }}/filezilla-remote-instructions.snip %} + Finally, if you need to move large files (typically larger than a gigabyte) from one remote computer to another remote computer, SSH in to the computer hosting the files and use `scp` or `rsync` to transfer over to the other. This From 2c447a6e21c84c5d9fe93f7339fbce9295a0b713 Mon Sep 17 00:00:00 2001 From: Camilla Harris <31481972+cdkharris@users.noreply.github.com> Date: Thu, 25 Jul 2024 15:16:38 +0100 Subject: [PATCH 3/4] fix markdown and relocate UCL snippet --- _episodes/16-transferring-files.md | 2 +- .../filezilla-ssh-tunnel-instructions.snip} | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) rename _includes/snippets_library/UCL_Myriad_sge/{filezilla-remote-instructions.snip => transferring-files/filezilla-ssh-tunnel-instructions.snip} (99%) diff --git a/_episodes/16-transferring-files.md b/_episodes/16-transferring-files.md index 9d07c2c8..2e7fb689 100644 --- a/_episodes/16-transferring-files.md +++ b/_episodes/16-transferring-files.md @@ -448,7 +448,7 @@ Hit "Quickconnect" to connect. You should see your remote files appear on the right hand side of the screen. You can drag-and-drop files between the left (local) and right (remote) sides of the screen to transfer files. -{% include {{ site.snippets }}/filezilla-remote-instructions.snip %} +{% include {{ site.snippets }}/transferring-files/filezilla-ssh-tunnel-instructions.snip %} Finally, if you need to move large files (typically larger than a gigabyte) from one remote computer to another remote computer, SSH in to the computer diff --git a/_includes/snippets_library/UCL_Myriad_sge/filezilla-remote-instructions.snip b/_includes/snippets_library/UCL_Myriad_sge/transferring-files/filezilla-ssh-tunnel-instructions.snip similarity index 99% rename from _includes/snippets_library/UCL_Myriad_sge/filezilla-remote-instructions.snip rename to _includes/snippets_library/UCL_Myriad_sge/transferring-files/filezilla-ssh-tunnel-instructions.snip index e2b8e267..8f0e9e1e 100644 --- a/_includes/snippets_library/UCL_Myriad_sge/filezilla-remote-instructions.snip +++ b/_includes/snippets_library/UCL_Myriad_sge/transferring-files/filezilla-ssh-tunnel-instructions.snip @@ -7,7 +7,7 @@ using your terminal. > {{ site.local.prompt }} ssh -L 3333:{{ site.remote.login }}:22 {{ site.remote.user }}@ssh-gateway.ucl.ac.uk -N > ``` > {: .language-bash} -> +> > This connects the local port 3333 to the cluster's SSH port, via the > remote gateway. The `-N` option tells it not to execute any remote > commands. Leave this running in the terminal and in FileZilla, set From c3b35c1f35672883a154ff4b054e8259d6acba37 Mon Sep 17 00:00:00 2001 From: Camilla Harris <31481972+cdkharris@users.noreply.github.com> Date: Thu, 25 Jul 2024 15:27:19 +0100 Subject: [PATCH 4/4] New snippet files for using Fliezilla with SSH tunnels --- .../transferring-files/filezilla-ssh-tunnel-instructions.snip | 0 .../transferring-files/filezilla-ssh-tunnel-instructions.snip | 0 .../transferring-files/filezilla-ssh-tunnel-instructions.snip | 0 .../transferring-files/filezilla-ssh-tunnel-instructions.snip | 0 .../transferring-files/filezilla-ssh-tunnel-instructions.snip | 0 .../transferring-files/filezilla-ssh-tunnel-instructions.snip | 0 .../transferring-files/filezilla-ssh-tunnel-instructions.snip | 0 7 files changed, 0 insertions(+), 0 deletions(-) create mode 100644 _includes/snippets_library/Birmingham_Baskerville_slurm/transferring-files/filezilla-ssh-tunnel-instructions.snip create mode 100644 _includes/snippets_library/ComputeCanada_Graham_slurm/transferring-files/filezilla-ssh-tunnel-instructions.snip create mode 100644 _includes/snippets_library/EPCC_Cirrus_slurm/transferring-files/filezilla-ssh-tunnel-instructions.snip create mode 100644 _includes/snippets_library/HPCC_MagicCastle_slurm/transferring-files/filezilla-ssh-tunnel-instructions.snip create mode 100644 _includes/snippets_library/Magic_Castle_EESSI_slurm/transferring-files/filezilla-ssh-tunnel-instructions.snip create mode 100644 _includes/snippets_library/NIST_CTCMS_slurm/transferring-files/filezilla-ssh-tunnel-instructions.snip create mode 100644 _includes/snippets_library/Norway_SIGMA2_SAGA_slurm/transferring-files/filezilla-ssh-tunnel-instructions.snip diff --git a/_includes/snippets_library/Birmingham_Baskerville_slurm/transferring-files/filezilla-ssh-tunnel-instructions.snip b/_includes/snippets_library/Birmingham_Baskerville_slurm/transferring-files/filezilla-ssh-tunnel-instructions.snip new file mode 100644 index 00000000..e69de29b diff --git a/_includes/snippets_library/ComputeCanada_Graham_slurm/transferring-files/filezilla-ssh-tunnel-instructions.snip b/_includes/snippets_library/ComputeCanada_Graham_slurm/transferring-files/filezilla-ssh-tunnel-instructions.snip new file mode 100644 index 00000000..e69de29b diff --git a/_includes/snippets_library/EPCC_Cirrus_slurm/transferring-files/filezilla-ssh-tunnel-instructions.snip b/_includes/snippets_library/EPCC_Cirrus_slurm/transferring-files/filezilla-ssh-tunnel-instructions.snip new file mode 100644 index 00000000..e69de29b diff --git a/_includes/snippets_library/HPCC_MagicCastle_slurm/transferring-files/filezilla-ssh-tunnel-instructions.snip b/_includes/snippets_library/HPCC_MagicCastle_slurm/transferring-files/filezilla-ssh-tunnel-instructions.snip new file mode 100644 index 00000000..e69de29b diff --git a/_includes/snippets_library/Magic_Castle_EESSI_slurm/transferring-files/filezilla-ssh-tunnel-instructions.snip b/_includes/snippets_library/Magic_Castle_EESSI_slurm/transferring-files/filezilla-ssh-tunnel-instructions.snip new file mode 100644 index 00000000..e69de29b diff --git a/_includes/snippets_library/NIST_CTCMS_slurm/transferring-files/filezilla-ssh-tunnel-instructions.snip b/_includes/snippets_library/NIST_CTCMS_slurm/transferring-files/filezilla-ssh-tunnel-instructions.snip new file mode 100644 index 00000000..e69de29b diff --git a/_includes/snippets_library/Norway_SIGMA2_SAGA_slurm/transferring-files/filezilla-ssh-tunnel-instructions.snip b/_includes/snippets_library/Norway_SIGMA2_SAGA_slurm/transferring-files/filezilla-ssh-tunnel-instructions.snip new file mode 100644 index 00000000..e69de29b