exercises:2021_uzh_acpc2:login
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
exercises:2021_uzh_acpc2:login [2021/04/13 11:02] – external edit 127.0.0.1 | exercises:2021_uzh_acpc2:login [2021/04/13 13:23] (current) – Use proper notes mrossmannek | ||
---|---|---|---|
Line 9: | Line 9: | ||
As mentioned in the lecture, you absolutely need a //terminal emulator//: | As mentioned in the lecture, you absolutely need a //terminal emulator//: | ||
- | * on Linux: this can be one of programs Konsole, Gnome Terminal, Terminal, XTerm, | + | * on Linux: this can be one of the commonly encountered |
- | * on Mac OS X/OSX/macOS Sierra: use the pre-installed Terminal application, | + | * on Mac OS/OSX: use the pre-installed Terminal application, |
- | * on Windows: use [[http:// | + | * on Windows |
- | optionally | + | Optionally |
- | * a X11-Server, to be able to start graphical applications on the server and have the output on your computer: | + | * a X11-Server, to be able to start graphical applications on the server and display |
* on Linux: it is enough to be logged-in in a graphical environment (Unity, Gnome, KDE, ...) | * on Linux: it is enough to be logged-in in a graphical environment (Unity, Gnome, KDE, ...) | ||
- | * on Mac OS X/OSX/macOS Sierra: you need to install [[https:// | + | * on Mac OS/OSX: you need to install [[https:// |
* on Microsoft Windows: you need to install [[https:// | * on Microsoft Windows: you need to install [[https:// | ||
* a file transfer tool to copy files from/to the server: | * a file transfer tool to copy files from/to the server: | ||
Line 23: | Line 23: | ||
* on Mac OS X/OSX/macOS Sierra: use [[https:// | * on Mac OS X/OSX/macOS Sierra: use [[https:// | ||
* one Windows: use [[https:// | * one Windows: use [[https:// | ||
+ | * //Note//: on all systems you can also use '' | ||
* a plain text editor to edit input files if you are uncomfortable with using '' | * a plain text editor to edit input files if you are uncomfortable with using '' | ||
==== Login using Linux ==== | ==== Login using Linux ==== | ||
- | * Connect to Internet (use VPN when not on the UZH network) | + | * Connect to the Internet (use the VPN when not on the UZH network) |
* Open a terminal (Konsole, xterm or similar) | * Open a terminal (Konsole, xterm or similar) | ||
- | * Connect to the server by entering the command: '' | + | * Connect to the server by entering the command: '' |
==== Login using macOS ==== | ==== Login using macOS ==== | ||
- | * Connect to Internet (use VPN when not on the UZH network) | + | * Connect to the Internet (use the VPN when not on the UZH network) |
* Open a X-Windows terminal in the X11 application if you want to run graphical applications on the server, otherwise use the pre-installed // | * Open a X-Windows terminal in the X11 application if you want to run graphical applications on the server, otherwise use the pre-installed // | ||
- | * Connect to the server by entering the command: '' | + | * Connect to the server by entering the command: '' |
==== Login using Windows with SSH (Windows 10 and later) ==== | ==== Login using Windows with SSH (Windows 10 and later) ==== | ||
- | * Connect to Internet (use VPN when not in the UZH network) | + | * Connect to the Internet (use the VPN when not on the UZH network) |
* Start VcXsrv (optional, only required if you want to run graphical applications on the server) | * Start VcXsrv (optional, only required if you want to run graphical applications on the server) | ||
* Start the Powershell console | * Start the Powershell console | ||
- | * Type the command '' | + | * Connect to the server by entering |
- | * Enter (username and) password as requested | + | |
==== Login using Windows with Putty ==== | ==== Login using Windows with Putty ==== | ||
+ | |||
+ | <note tip>If you have Windows 10, please follow the instructions above, instead!</ | ||
First configure Putty (only required on the first run) as follows: | First configure Putty (only required on the first run) as follows: | ||
- Start the application PuTTY from the Windows menu (in the folder PuTTY) | - Start the application PuTTY from the Windows menu (in the folder PuTTY) | ||
- | - Fill in the //Host Name//: '' | + | - Fill in the //Host Name//: '' |
- Set // | - Set // | ||
- | - Type '' | + | - Type '' |
- In the Category tree on the left side, select // | - In the Category tree on the left side, select // | ||
- Select the tab '' | - Select the tab '' | ||
Line 61: | Line 63: | ||
Then continue as follows to login: | Then continue as follows to login: | ||
- | * Connect to Internet (use VPN when not on the UZH network) | + | * Connect to the Internet (use the VPN when not on the UZH network) |
* Start VcXsrv (optional, only required if you want to run graphical applications on the server) | * Start VcXsrv (optional, only required if you want to run graphical applications on the server) | ||
* Start Putty | * Start Putty | ||
- | * Double click the session '' | + | * Double click the session '' |
* Enter (username and) password as requested | * Enter (username and) password as requested | ||
Line 84: | Line 86: | ||
To avoid having to type the password every time you log in (and to increase the security), a public-private key pair can be used for authentication instead. | To avoid having to type the password every time you log in (and to increase the security), a public-private key pair can be used for authentication instead. | ||
- | === Instructions for macOS and Linux === | + | === Instructions for Linux, |
+ | |||
+ | <note important> | ||
First generate a key-pair **on your local machine** by running the following in a terminal/ | First generate a key-pair **on your local machine** by running the following in a terminal/ | ||
Line 94: | Line 98: | ||
and accept the defaults proposed and do no set a password. | and accept the defaults proposed and do no set a password. | ||
- | Upload the public key **from your local machine** to tcopt2: | + | Upload the public key **from your local machine** to tcopt7: |
< | < | ||
- | $ scp ~/ | + | $ scp ~/ |
</ | </ | ||
- | Now login to '' | + | Now login to '' |
< | < | ||
Line 111: | Line 115: | ||
< | < | ||
- | $ ssh -i ~/ | + | $ ssh -i ~/ |
</ | </ | ||
=== Instructions for Windows using PuTTY === | === Instructions for Windows using PuTTY === | ||
+ | |||
+ | <note tip>If you have Windows 10, please follow the instructions above, instead!</ | ||
First login to the server as above and leave the terminal window open. | First login to the server as above and leave the terminal window open. | ||
Line 138: | Line 144: | ||
- Restart //PuTTY// | - Restart //PuTTY// | ||
- | - Select the //Session// '' | + | - Select the //Session// '' |
- Select // | - Select // | ||
- Use the // | - Use the // | ||
Line 146: | Line 152: | ||
==== Simplify the login ==== | ==== Simplify the login ==== | ||
- | The following instructions **apply to OSX and Linux**. | + | <note important> |
**On your local machine** add the following part to the file '' | **On your local machine** add the following part to the file '' | ||
< | < | ||
- | Host tcopt2 | + | Host tcopt7 |
- | HostName | + | HostName |
User studentXX | User studentXX | ||
</ | </ | ||
- | after which you will be able to connect to '' | + | after which you will be able to connect to '' |
< | < | ||
- | $ ssh tcopt2 | + | $ ssh tcopt7 |
</ | </ | ||
Line 165: | Line 171: | ||
< | < | ||
- | Host tcopt2 | + | Host tcopt7 |
- | HostName | + | HostName |
User studentXX | User studentXX | ||
IdentityFile ~/ | IdentityFile ~/ |
exercises/2021_uzh_acpc2/login.1618311776.txt.gz · Last modified: 2021/04/13 11:02 by 127.0.0.1