From ac81bb9a199d8294c30461e91788f8b43c882c25 Mon Sep 17 00:00:00 2001 From: Isaac Virshup Date: Wed, 20 Mar 2024 14:48:26 +0100 Subject: [PATCH] Update ssh config instructions for berlin I'm helping a colleague set up their ssh config and they got confused about which fields were supposed to be replaced in the ssh config. I remembered being confused about this when I set it up, so I figured the instructions could be more explicit. --- wiki/Compute_Center/Berlin.md | 29 +++++++++++++++-------------- 1 file changed, 15 insertions(+), 14 deletions(-) diff --git a/wiki/Compute_Center/Berlin.md b/wiki/Compute_Center/Berlin.md index 0de1c53f..683791dd 100644 --- a/wiki/Compute_Center/Berlin.md +++ b/wiki/Compute_Center/Berlin.md @@ -87,16 +87,17 @@ standard users for some common distributions: To connect via Windows 10 you can use PowerShell as OpenSSH ist already installed by default. Create the ssh config file ```$HOME\.ssh\config``` with notepad or use the PowerShell command ```Set-Content -Path $HOME\.ssh\config -Value ''``` When you use PowerShell, make sure to edit the input of the file. Fill in your information and make sure that the sections HostName, IdentityFile, User, and ProxyJump are indented with four spaces for both entries. ```bash +# Replace all fields in {curly braces} Host denbi-jumphost-01.bihealth.org HostName denbi-jumphost-01.bihealth.org - User LifeScienceLogin - IdentityFile PATH_TO_KEY + User {LifeScienceLogin} + IdentityFile {PATH_TO_KEY} -Host NAME_OF_VM # first vm - HostName 172.16.XXX.XXX - IdentityFile PATH_TO_KEY - User ubuntu / centos +Host {NAME_OF_VM} # first vm + HostName {172.16.XXX.XXX} + IdentityFile {PATH_TO_KEY} + User {ubuntu / centos} ProxyJump denbi-jumphost-01.bihealth.org ``` @@ -108,18 +109,18 @@ ssh NAME_OF_VM #### Linux .ssh/config ```bash +# Replace all fields in {curly braces} Host denbi-jumphost-01.bihealth.org HostName denbi-jumphost-01.bihealth.org - User LifeScienceLogin - IdentityFile PATH_TO_KEY + User {LifeScienceLogin} + IdentityFile {PATH_TO_KEY} ServerAliveInterval 120 -Host NAME_OF_VM - HostName 172.16.XXX.XXX - IdentityFile PATH_TO_KEY - User ubuntu / centos +Host {NAME_OF_VM} + HostName {172.16.XXX.XXX} + IdentityFile {PATH_TO_KEY} + User {ubuntu / centos} ProxyJump denbi-jumphost-01.bihealth.org - ``` #### Setting up a SOCKS proxy @@ -342,4 +343,4 @@ source openrc.sh 10. Use openstack-cli to get information about your project ```bash openstack server list -``` \ No newline at end of file +```