Commit d959ef51 authored by Chris Hines's avatar Chris Hines
Browse files

Update vscode.md

parent cfe321e2
Pipeline #18064 failed with stage
in 4 minutes and 11 seconds
......@@ -14,68 +14,69 @@ By default, if you follow those instructions, you will end up running the VS Cod
Please follow the excelent instructions here https://code.visualstudio.com/docs/remote/ssh#_installation ... When you get to the section "Connect to a remote host" please come back here
2. Setup ssh-agent and keys (optional HIGHLY recommended)
1. Setup ssh-agent and keys (optional HIGHLY recommended)
1. Generate a key
1. Generate a key
If you are still using passwords, you should definitly switch to keys open a terminal (mac and linux) or a powershell (windows) and run the command
If you are still using passwords, you should definitly switch to keys open a terminal (mac and linux) or a powershell (windows) and run the command
```
ssh-keygen -t ed25519
```
```
ssh-keygen -t ed25519
```
you will be asked to enter a passphrase. This is used to encrypt the output file on your computer.
you will be asked to enter a passphrase. This is used to encrypt the output file on your computer.
Next enter
Next enter
```
cat ~/.ssh/id_ed25519.pub
```
```
cat ~/.ssh/id_ed25519.pub
```
copy the line of text printed out. Using Strudel2 (beta.cloud.cvl.org.au), select Terminal -> Run on Login node
when the new window opens type
```
echo <paste the line you just copied> >> .ssh/authorized_keys
```
copy the line of text printed out. Using Strudel2 (beta.cloud.cvl.org.au), select Terminal -> Run on Login node
when the new window opens type
```
echo <paste the line you just copied> >> .ssh/authorized_keys
```
2. Setup the agent
1. Setup the agent
Windows only (the agent is already running on linux and mac)
Windows only (the agent is already running on linux and mac)
ALERT ALERT THIS DOCUMENTATION IS INCOMPLETE!!!!!
### ALERT ALERT THIS DOCUMENTATION IS INCOMPLETE!!!!!
I *think* you may have to install openssh on windows, but it may be pre-installed.
I *think* you may have to install openssh on windows, but it may be pre-installed.
```
To install the OpenSSH components:
Open Settings, select Apps > Apps & Features, then select Optional Features.
Scan the list to see if the OpenSSH is already installed. If not, at the top of the page, select Add a feature, then:
```
To install the OpenSSH components:
Open Settings, select Apps > Apps & Features, then select Optional Features.
Scan the list to see if the OpenSSH is already installed. If not, at the top of the page, select Add a feature, then:
On Windows 10, find OpenSSH Client, then click Install
```
```
Next you need to start the OpenSSH SSH agent. You have two options
Next you need to start the OpenSSH SSH agent. You have two options
### Via GUI:
### Via GUI:
I think you command
I think you command
1. Press the windows key (to begin search) and type "Services". Hit enter to open the services app
1. Press the windows key (to begin search) and type "Services". Hit enter to open the services app
2. Scroll down to OpenSSH Authentication Agent and double click
2. Scroll down to OpenSSH Authentication Agent and double click
3. Change "Startup type" to "Automatic"
3. Change "Startup type" to "Automatic"
4. Click start
4. Click start
### Via PowerShell:
Start a powershell as administrator and run the following
Start a powershell as administrator and run the following
```
Install-Module -Force OpenSSHUtils -Scope AllUsers
Get-Service -Name ssh-agent | Set-Service -StartupType Automatic
Start-Service ssh-agent
```
```
Install-Module -Force OpenSSHUtils -Scope AllUsers
Get-Service -Name ssh-agent | Set-Service -StartupType Automatic
Start-Service ssh-agent
```
Open a terminal and type `ssh-add .ssh/id_ed25519` you'll be asked for that key passphrase, but then your computer will remember the key (until the next reboot)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment