Aktionen

Über SSH auf AI-Lab-Rechner zugreifen: Unterschied zwischen den Versionen

Aus exmediawiki

Zeile 10: Zeile 10:
  
 
=Workflows=
 
=Workflows=
==In AI-Lab-Rechner über SSH tunneln==
 
 
detailllierte Info zu SSH: https://wiki.ubuntuusers.de/SSH/
 
detailllierte Info zu SSH: https://wiki.ubuntuusers.de/SSH/
===Von Linux zu Linux===
+
==Von Linux zu Linux==
====1. eigene ssh Konfigurationsdatei öffnen & editieren====
+
===eigene ssh Konfigurationsdatei öffnen & editieren==
 
  $ sudo [[vi|vim]] /etc/ssh/ssh_config
 
  $ sudo [[vi|vim]] /etc/ssh/ssh_config
 
die zwei zeilen in der Konfigurationsdatei:
 
die zwei zeilen in der Konfigurationsdatei:
Zeile 21: Zeile 20:
 
   ForwardX11 yes
 
   ForwardX11 yes
 
   ForwardX11Trusted yes
 
   ForwardX11Trusted yes
====2. sich über SSH auf Lab-Rechner einwählen (X-Forwarding)====
+
===sich über SSH auf Lab-Rechner einwählen (X-Forwarding)===
 
  $ ssh -X exmedialab-team@194.95.162.14
 
  $ ssh -X exmedialab-team@194.95.162.14
 
Output mit ''yes'' bestätigen
 
Output mit ''yes'' bestätigen
Zeile 40: Zeile 39:
 
   
 
   
 
  Last login: Fri Mar 29 12:38:20 2019 from 162.13.2.1
 
  Last login: Fri Mar 29 12:38:20 2019 from 162.13.2.1
===Von Mac zu Linux===
+
==Von Mac zu Linux==
====1. xquartz downloaden und installieren====
+
===xquartz downloaden und installieren===
 
Download-URL: https://www.xquartz.org/
 
Download-URL: https://www.xquartz.org/
====2. xquatz starten ''(Finder > Programme > Dienstprogramme > XQuartz)''====
+
===xquatz starten ''(Finder > Programme > Dienstprogramme > XQuartz)''===
 
ein kleines xterm fenster öffnet sich
 
ein kleines xterm fenster öffnet sich
====3. sich über SSH auf Lab-Rechner einwählen (X-Forwarding)====
+
===sich über SSH auf Lab-Rechner einwählen (X-Forwarding)===
 
type in X-Term Fenster:
 
type in X-Term Fenster:
 
  $ ssh -X exmedialab-team@194.95.162.14
 
  $ ssh -X exmedialab-team@194.95.162.14
Zeile 65: Zeile 64:
 
   
 
   
 
  Last login: Fri Mar 29 12:38:20 2019 from 162.13.2.1
 
  Last login: Fri Mar 29 12:38:20 2019 from 162.13.2.1
===Von Windows zu Linux===
+
==Von Windows zu Linux==
====1. Putty downloaden und installieren====
+
===Putty downloaden und installieren===
 
Download URL: https://www.chiark.greenend.org.uk/~sgtatham/putty/latest.html
 
Download URL: https://www.chiark.greenend.org.uk/~sgtatham/putty/latest.html
====2. Putty starten====
+
===Putty starten===
====3. Verbindung erstellen (Verbindungsdaten eintragen)====
+
===Verbindung erstellen (Verbindungsdaten eintragen)===
 
{| class="wikitable"
 
{| class="wikitable"
 
|[[Datei:Putty1.png|300px]] || [[Datei:Putty2.png|300px]]
 
|[[Datei:Putty1.png|300px]] || [[Datei:Putty2.png|300px]]
Zeile 75: Zeile 74:
 
|[[Datei:Putty3.png|300px]] || [[Datei:Putty4.png|300px]]
 
|[[Datei:Putty3.png|300px]] || [[Datei:Putty4.png|300px]]
 
|}
 
|}
====4. mit "Connect Once" einloggen und Passwort eintippen====
+
===mit "Connect Once" einloggen und Passwort eintippen===
 
Willkommensnachricht (Bsp):
 
Willkommensnachricht (Bsp):
 
  Welcome to Ubuntu 16.04.6 LTS (GNU/Linux 4.4.0-142-generic x86_64)
 
  Welcome to Ubuntu 16.04.6 LTS (GNU/Linux 4.4.0-142-generic x86_64)

Version vom 31. März 2019, 03:56 Uhr

hilfreiche Kommandos

$ ssh username@IP-adress # Login Lab-Rechner
$ ssh -X username@IP-adress # graphical Login (X Forwarding)
$ cd  # (Change Direction) sich durch den Rechner navigieren
$ ls # (list) aktuellen Verzeichnisinhalt anzeigen
$ mkdir foldername # Ordner anlegen
$ scp ~/Bsp.jpg username@IP-adress:/home/username # Dateien zwischen eigenem und Lab-Rechner kopieren
$ vim # Bildschirmorientierter Editor
$ exit # Logout aus Lab-Rechner

Workflows

detailllierte Info zu SSH: https://wiki.ubuntuusers.de/SSH/

Von Linux zu Linux

=eigene ssh Konfigurationsdatei öffnen & editieren

$ sudo vim /etc/ssh/ssh_config

die zwei zeilen in der Konfigurationsdatei:

  # ForwardX11 no
  # ForwardX11Trusted no

wie folgt umändern:

  ForwardX11 yes
  ForwardX11Trusted yes

sich über SSH auf Lab-Rechner einwählen (X-Forwarding)

$ ssh -X exmedialab-team@194.95.162.14

Output mit yes bestätigen

The authenticity of host '194.95.162.14 (194.95.162.14)' can't be established.
ECDSA key fingerprint is SHA256:KwHC3VDTosZC1utqoAm6o7H32HLxd7O2kIylld3PFLY.
Are you sure you want to continue connecting (yes/no)? 
Please type 'yes' or 'no': yes

Passwort eintippen (der Cursor bleibt beim Tippen des Passworts still)

Warning: Permanently added '194.95.162.14' (ECDSA) to the list of known hosts.
exmedialab-team@194.95.162.14's password:

Willkommensnachricht (Bsp):

Welcome to Ubuntu 16.04.6 LTS (GNU/Linux 4.4.0-142-generic x86_64)

* Documentation:  https://help.ubuntu.com
* Management:     https://landscape.canonical.com
* Support:        https://ubuntu.com/advantage

Last login: Fri Mar 29 12:38:20 2019 from 162.13.2.1

Von Mac zu Linux

xquartz downloaden und installieren

Download-URL: https://www.xquartz.org/

xquatz starten (Finder > Programme > Dienstprogramme > XQuartz)

ein kleines xterm fenster öffnet sich

sich über SSH auf Lab-Rechner einwählen (X-Forwarding)

type in X-Term Fenster:

$ ssh -X exmedialab-team@194.95.162.14

Output mit yes bestätigen

The authenticity of host '194.95.162.14 (194.95.162.14)' can't be established.
ECDSA key fingerprint is SHA256:KwHC3VDTosZC1utqoAm6o7H32HLxd7O2kIylld3PFLY.
Are you sure you want to continue connecting (yes/no)? 
Please type 'yes' or 'no': yes

Passwort eintippen (der Cursor bleibt beim Tippen des Passworts still)

Warning: Permanently added '194.95.162.14' (ECDSA) to the list of known hosts.
exmedialab-team@194.95.162.14's password:

Willkommensnachricht (Bsp):

Welcome to Ubuntu 16.04.6 LTS (GNU/Linux 4.4.0-142-generic x86_64)

* Documentation:  https://help.ubuntu.com
* Management:     https://landscape.canonical.com
* Support:        https://ubuntu.com/advantage

Last login: Fri Mar 29 12:38:20 2019 from 162.13.2.1

Von Windows zu Linux

Putty downloaden und installieren

Download URL: https://www.chiark.greenend.org.uk/~sgtatham/putty/latest.html

Putty starten

Verbindung erstellen (Verbindungsdaten eintragen)

Putty1.png Putty2.png
Putty3.png Putty4.png

mit "Connect Once" einloggen und Passwort eintippen

Willkommensnachricht (Bsp):

Welcome to Ubuntu 16.04.6 LTS (GNU/Linux 4.4.0-142-generic x86_64)

* Documentation:  https://help.ubuntu.com
* Management:     https://landscape.canonical.com
* Support:        https://ubuntu.com/advantage

Last login: Fri Mar 29 12:38:20 2019 from 162.13.2.1

Dateien kopieren zwischen Home-Rechner und Lab-Rechner

einfaches Kopieren

$ scp ~/Bsp.jpg exmedialab-team@194.95.162.14:/home/exmedialab-team
$ scp exmedialab-team@194.95.162.14:/home/exmedialab-team/Bsp.jpg ~/

Rekursives Kopieren (Ordner+Inhalt)

$ scp -r ~/Ordnername exmedialab-team@194.95.162.14:/home/exmedialab-team
$ scp -r exmedialab-team@194.95.162.14:/home/exmedialab-team/Ordnername ~/