Skip to content

Commit

Permalink
Merge pull request #113 from EPCCed/aaron-docs
Browse files Browse the repository at this point in the history
Remove MobaXTerm from Windows Docs
  • Loading branch information
akrause2014 authored Nov 14, 2023
2 parents 727c0bc + ddd76a5 commit f3ae137
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 22 deletions.
8 changes: 8 additions & 0 deletions Brewfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
tap "homebrew/bundle"
tap "homebrew/cask"
tap "homebrew/core"
brew "git"
brew "nmap"
brew "sshuttle"
brew "wimlib"
cask "zenmap"
41 changes: 19 additions & 22 deletions docs/access/ssh.md
Original file line number Diff line number Diff line change
Expand Up @@ -77,40 +77,37 @@ Windows will require the installation of OpenSSH-Server or MobaXTerm to use SSH.
1. If ‘OpenSSH Client’ is not under ‘Installed Features’, click the ‘Add a Feature’ button
1. Search ‘OpenSSH Client’
1. Select the check box next to ‘OpenSSH Client’ and click ‘Install’
1. Once this is installed, you can reach your VM by opening CMD and running: <br> ```$ ssh -J [username]@eidf-gateway.epcc.ed.ac.uk [username]@[vm_ip]```

### Installing MobaXTerm

1. Download [MobaXTerm](https://mobaxterm.mobatek.net/) from [https://mobaxterm.mobatek.net/](https://mobaxterm.mobatek.net/)
1. Once installed click the ‘Session’ button in the top left corner
1. Click ‘SSH’
1. In the ‘Remote Host’ section, specify the VM IP
1. Click the ‘Network Settings’ Tab
1. Click the ‘SSH Gateway (jump host)’ button in the middle
1. Under Gateway Host, specify: eidf-gateway.epcc.ed.ac.uk
1. Under Username, specify your username
1. Click ‘OK’
1. Click ‘OK’ to launch the session
1. For the EIDF-Gateway and VM login prompts, use your password

## Accessing From MacOS/Linux
### Accessing EIDF via a Terminal

OpenSSH is installed on Linux and MacOS usually by default, so you can access the gateway natively from the terminal. <br>
The '-J' flag is use to specify that we will access the second specified host by jumping through the first specified host like the example below.
<i>If this is your first time connecting to EIDF, see the 'First Password Setting and Password Resets via the EIDF-Gateway' section below.</i><br>

1. Open either Powershell (the Windows Terminal) or a WSL Linux Terminal
1. Import the SSH Key you generated above: ```$ ssh-add [/path/to/sshkey]```
1. This should return "Identity added [Path to SSH Key]" if successful.
1. Login by jumping through the gateway.

```bash
ssh -J [username]@jumphost [username]@target
ssh -J [username]@eidf-gateway.epcc.ed.ac.uk [username]@[vm_ip]
```

To access EIDF Services:
## Accessing From MacOS/Linux

<i>If this is your first time connecting to EIDF, see the 'First Password Setting and Password Resets via the EIDF-Gateway' section below.</i><br>

OpenSSH is installed on Linux and MacOS usually by default, so you can access the gateway natively from the terminal. <br>
Ensure you have created and added an ssh key as specified in the 'Generating and Adding an SSH Key' section above, then run the command below. <br>

```bash
ssh -J [username]@eidf-gateway.epcc.ed.ac.uk [username]@[vm_ip]
```

## Password Resets via the EIDF-Gateway
<i>The '-J' flag is use to specify that we will access the second specified host by jumping through the first specified host.</i><br>

## First Password Setting and Password Resets via the EIDF-Gateway

You will have to connect to your VM via SSH before you can login with RDP as your initial password needs to be reset, which can only be done via SSH. You can reset your password through the SSH Gateway by connecting to it directly:
You will have to connect to your VM via SSH before you can login with RDP as your initial password needs to be reset, which can only be done via SSH. You can reset your password through the SSH Gateway by connecting to it directly.
<br>You will need to pass your accounts SSH key using either the '-i' flag or running 'ssh-add /path/to/key' first.

```bash
ssh [username]@eidf-gateway.epcc.ed.ac.uk
Expand Down

0 comments on commit f3ae137

Please sign in to comment.