Remote Access: Unterschied zwischen den Versionen

Aus Doc-Wiki
Zur Navigation springen Zur Suche springen
imported>Burghardt
 
(10 dazwischenliegende Versionen von 3 Benutzern werden nicht angezeigt)
Zeile 1: Zeile 1:
 
== Goal ==
 
== Goal ==
You might want to use our pool infrastructure - which means any pool client <tt>c001</tt> to <tt>c048</tt> - from a remote location, for example from home. This is totally fine!
+
You might want to use our pool infrastructure - which means any pool client <tt>c001.cip.loc</tt> etc. - from a remote location, for example from home. This is totally fine!
   
 
== Strategy ==
 
== Strategy ==
Currently (end of 2015) there are exactly two systems reachable from the outside world:
 
   
;login.stud.informatik.uni-goettingen.de: usable by every student. The only precondition is that you need to login ''one time'' physically on a client ''before'' attempting remote access
+
; [[Shell]]: shell.stud.informatik.uni-goettingen.de - usable by every student. These machines are powerful enough to ''not'' require you to hop forward to a physical pool client machine.
;login.informatik.uni-goettingen.de: usable ''only'' by staff members with [[Gwdg]]-Account
 
   
 
; login.informatik.uni-goettingen.de: usable ''only'' by staff members with [[Gwdg]]-Account
The login server <tt>login.stud.informatik.uni-goettingen.de</tt> is meant to be used as a gateway from the outside world to the pool - basically to any computer <tt>c001</tt> to <tt>c048</tt>.
 
  +
 
You ''might'' use those login machines as a gateway from the outside world into the pool - basically to any computer <tt>c001</tt> to <tt>c048</tt>.
   
 
This gateway approach is necessary as the pool computers have local, non-routeable IP-addresses like 172.27.x.y.
 
This gateway approach is necessary as the pool computers have local, non-routeable IP-addresses like 172.27.x.y.
Zeile 28: Zeile 28:
 
== Problems with shared resources ==
 
== Problems with shared resources ==
   
System resources are limited: <tt>login.stud.informatik.uni-goettingen.de</tt> is a shared source in more intense way than those pool computers are. There is only ''one single'' login.stud.
+
System resources are limited, those login machines are a shared source in more intense way than those pool computers are.
   
 
It is considered unfriendly behavior to stress a shared resource in such a manner that other users can not work anymore.
 
It is considered unfriendly behavior to stress a shared resource in such a manner that other users can not work anymore.
   
 
One usual trigger element for this kind or problems is [[Java]].
 
One usual trigger element for this kind or problems is [[Java]].
* Sometimes it crashes and does not clean up the allocated memory nor CPU resources. Just a very few Java processes hanging in the background can render login.stud unusable - it has to get restarted with a hard reset. (Of course other languages allow generating the same problem, but we see Java most of the time...)
+
* Sometimes it crashes and does not clean up the allocated memory nor CPU resources. Just a very few Java processes hanging in the background can render that machine unusable - it has to get restarted with a hard reset. (Of course other languages allow generating the same problem, but we see Java most of the time...)
 
* when you use [[Eclipse]] you might start background processes. Make sure to stop all of them...
 
* when you use [[Eclipse]] you might start background processes. Make sure to stop all of them...
   
Zeile 64: Zeile 64:
   
 
== See also ==
 
== See also ==
* [[Shell]] -- instead of "login."
+
* [[Shell]]
 
* [[Remote Access/Single Command]]
 
* [[Remote Access/Single Command]]
 
* [[PuTTY]]
 
* [[PuTTY]]
 
* [[FAQ]]
 
* [[FAQ]]
 
* [[Xming]]
 
* [[Xming]]
  +
* [[MobaXterm]]
   
 
== Links ==
 
== Links ==

Aktuelle Version vom 29. Juni 2020, 09:28 Uhr

Goal

You might want to use our pool infrastructure - which means any pool client c001.cip.loc etc. - from a remote location, for example from home. This is totally fine!

Strategy

Shell
shell.stud.informatik.uni-goettingen.de - usable by every student. These machines are powerful enough to not require you to hop forward to a physical pool client machine.
login.informatik.uni-goettingen.de
usable only by staff members with Gwdg-Account

You might use those login machines as a gateway from the outside world into the pool - basically to any computer c001 to c048.

This gateway approach is necessary as the pool computers have local, non-routeable IP-addresses like 172.27.x.y.

For accomplishing access to a pool machine you need to "hop" forward one time. On login you'll see a list of currently running computers. E.g.:

System load of less used clients:
c011          up      16:01,     0 users,  load 0.00, 0.01, 0.05
c018          up      15:46,     0 users,  load 0.00, 0.01, 0.05

Simply jump to any of them. "ssh c011" would work in this example.

Hint: If you know the target machine already you might combine these two separate into a single one --> Remote Access/Single Command

Usually the computers in the pool shutdown itself when nobody is logged in. To supply some computers to the above user several pool computers are running continuously to be reachable for this specific use case. This is: c031..c036 which can be found in the first row in room -1.101. These computers are usable locally also without limitation. If they are in use in the very moment when you login remotely they may not be listed as available because of this very fact.

Please note that these clients reboot automatically early in the morning to clean up things - but only if nobody is logged in...

Problems with shared resources

System resources are limited, those login machines are a shared source in more intense way than those pool computers are.

It is considered unfriendly behavior to stress a shared resource in such a manner that other users can not work anymore.

One usual trigger element for this kind or problems is Java.

  • Sometimes it crashes and does not clean up the allocated memory nor CPU resources. Just a very few Java processes hanging in the background can render that machine unusable - it has to get restarted with a hard reset. (Of course other languages allow generating the same problem, but we see Java most of the time...)
  • when you use Eclipse you might start background processes. Make sure to stop all of them...

Killing a problematic process

If you have the suspicion that you have produced such bad background processes do the following:

First get a terminal with top running

  • inside the working Desktop Environment: use a normal GUI-Terminal window to start top. How to do this depends on the Desktop Environment used. Usually there is a way to enter a command. Simply run top

Alternatively go to a "classic" physical console. This does also work very often if the GUI is not usable for some reason.

  • log off (if possible)
  • go to a normal console - press CTRL-ALT-F2 (or F1/F3/F4/F5/F6)
  • login
  • run top

In that Terminal:

  • use top to examine the running processes. For example look for "java" in the "command" column
  • note that the first column shows the process number
  • the single letter "k" (for "kill") will ask you for a process number to be killed. The second prompt will ask for the specific signal to send. The default offered is "15/sigterm", try this first (by simple pressing Enter. If this is not sufficient do the same again and enter "9" which stands for "sigkill".

Help for top:

  • press question mark ? while running top
  • read the man page (man top) for detailed description
  • If top top fails: kill everything

Only if you are sure that you are the only user on this physical machine: simple turn it off. This is acceptable because the Operating System is not stored locally but the machine performs remote boot. No files on disk can be damaged by a forced power cycle.

Problems with X forwarding

tbw

See also

Links