meta data for this page
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| general:computerenvironment:ssh [2021/10/14 20:09] – ingo | general:computerenvironment:ssh [2024/06/18 09:26] (current) – ingo | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ====== Remote login via SSH ====== | ====== Remote login via SSH ====== | ||
| - | [[wp> | + | [[wp> |
| + | * ssh from within our network | ||
| + | * ssh from outside of our network | ||
| + | ===== ssh connections within the network ===== | ||
| + | <wrap question></ | ||
| + | * has more computer power | ||
| + | * has more RAM | ||
| + | * is less busy | ||
| + | than the one you are sitting one. | ||
| - | ===== Things you need to have ===== | + | :!: You need |
| + | * your username | ||
| + | * your password | ||
| + | * the name or the IP address of the computer you want to connect to | ||
| + | <hidden Example> | ||
| + | * username: ingo | ||
| + | * password: 1234secret | ||
| + | * pool20 | ||
| + | < | ||
| + | ssh -u ingo pool20 | ||
| + | </ | ||
| + | You will then be prompted to provide the password for the user //ingo//. <wrap important> | ||
| + | </ | ||
| + | ===== ssh connection from outside of the network | ||
| + | For security reason, you can access our computers via ssh from outside of our network only when you have a VPN((virtual private network)) connection established. This requires a ovpn certificate provided by us. Please follow the steps below to set up the VPN. | ||
| <WRAP info> | <WRAP info> | ||
| - | - an email with a zip archive containing the openssh | + | we have provided you with a OVPN certificate, |
| - | - your user name in our system. The file name of the zip archive (without the ending | + | - Download |
| - | | + | - gunzip |
| - | | + | < |
| - | | + | gunzip *.ovpn.gz |
| - | </WRAP>Do you get the idea? <wrap tip></wrap> | + | </ |
| - | If you are unsure that you got the right username, ask the tutors. Using the wrong name will give you quite some headaches further down... | + | - Install an open VPN client on your local machine |
| - | </ | + | - Windows users: install [[https:// |
| - | - the unpacked zip archive containing the following files | + | - Mac users |
| - | - openssh (the certificate) | + | - install [[https://tunnelblick.net|Tunnelblick]] |
| - | - openssh.pub (the public key((you don't have to bother with this file)) | + | - on an iPad, you can install |
| - | - password.txt (a text file with your password for the ssh connection((this is not your password for the login within our system)) | + | |
| + | - activate the VPN connection | ||
| + | - for this, you will need the username and the password provided by us((If you are unsure that you got the right username, ask the tutors. Using the wrong name will give you quite some headaches further down.)) | ||
| - an [[general: | - an [[general: | ||
| - The [[wp> | - The [[wp> | ||
| </ | </ | ||
| + | |||
| + | ====How the login via ssh works ==== | ||
| + | If you have all the information specified above at hand, proceed to the next steps | ||
| + | * SSH from a [[general: | ||
| + | * SSH from Mac %%OS%% or Linux: Take a look at the [[https:// | ||
| + | |||
| + | === Example === | ||
| + | |||
| + | Type the following example command in the terminal window, where openssh22 is your certificate, | ||
| + | < | ||
| + | # To connect to the server | ||
| + | ssh -i pbioc_course/ | ||
| + | |||
| + | # Select a working station | ||
| + | ssh pool01 | ||
| + | |||
| + | # Copy files from your personal computer to our computer system. | ||
| + | # Syntax: scp <ssh key> <target file> <where to paste it> | ||
| + | scp -i pbioc_course/ | ||
| + | scp -i pbioc_course/ | ||
| + | </ | ||
| + | If you encounter the message " | ||
| + | < | ||
| + | chmod 400 openssh22 | ||
| + | </ | ||
| + | |||
| + | |||
| <WRAP tabs> | <WRAP tabs> | ||
| * [[general: | * [[general: | ||
| </ | </ | ||