Hier werden die Unterschiede zwischen zwei Versionen angezeigt.
Beide Seiten der vorigen RevisionVorhergehende ÜberarbeitungNächste Überarbeitung | Vorhergehende ÜberarbeitungNächste ÜberarbeitungBeide Seiten der Revision | ||
ssh [2008/11/17 08:50] – gerald | ssh [2009/02/04 18:05] – gerald | ||
---|---|---|---|
Zeile 2: | Zeile 2: | ||
[[SSH without password|SSH ohne Passworteingabe]] | [[SSH without password|SSH ohne Passworteingabe]] | ||
- | [[ | + | |
- | http:// | + | So habe ich Java-Software via ssh (cridmanager mit Oberfläche) zum Laufen gebracht. |
+ | |||
+ | [[http:// | ||
+ | |||
+ | == 4.2.1 XDM == | ||
+ | |||
+ | |||
+ | Um X-Logins von anderen Rechnern bei XDM zu erlauben, muss eine Änderung in / | ||
+ | < | ||
+ | #* #any host can get a login window</ | ||
+ | |||
+ | Bei XFree86 Version 4 muss ausserdem die Datei xdm-config (gleiches Verzeichnis) verändert werden: | ||
+ | |||
+ | < | ||
+ | ! Comment out this line if you want to manage X terminals with xdm | ||
+ | DisplayManager.requestPort: | ||
+ | |||
+ | wird zu: | ||
+ | < | ||
+ | ! SECURITY: do not listen for XDMCP or Chooser requests | ||
+ | ! Comment out this line if you want to manage X terminals with xdm | ||
+ | ! DisplayManager.requestPort: | ||
+ | </ | ||
+ | Der Unterschied ist nur ein ' | ||
+ | |||
+ | Nach einem Neustart von XDM ist der Applikations-Server bereit. (/ | ||
+ | |||
+ | ---- | ||
+ | |||
+ | |||
+ | ==== Port-forwarding & autossh & Pairing ==== | ||
+ | |||
+ | Quelle((http:// | ||
+ | |||
+ | |||
+ | Ok so the other day someone asked me to figure something out and here was my reply in case you happen to be interested. | ||
+ | |||
+ | The following was based on a Ubuntu 6.06 system but any distro will do as long as you can install the programs. (apt-get install is a wonderful thing) | ||
+ | |||
+ | | ||
+ | |||
+ | |||
+ | | ||
+ | |||
+ | |||
+ | |||
+ | == 1 == | ||
+ | |||
+ | ok this is the ideal time to install any missing programs | ||
+ | |||
+ | == 2 == | ||
+ | |||
+ | we will be using a key pair to authenticate the ssh session. | ||
+ | |||
+ | - type ' | ||
+ | - make sure it defaults to: '/< | ||
+ | - no passphrase (not that secure, but easy to setup) | ||
+ | - you should now have the key pair in the .ssh directory (id_rsa & id_rsa.pub) | ||
+ | - make a copy of your public key with the name ' | ||
+ | - 'cp /< | ||
+ | - copy authorized_key to the .ssh directory of the remote system. (use ' | ||
+ | - 'scp /< | ||
+ | - you may have to create the .ssh folder on the remote system if it is not there. this happen to me on my OpenBSD test box. | ||
+ | |||
+ | |||
+ | == 3 == | ||
+ | |||
+ | | ||
+ | |||
+ | - ssh -i /< | ||
+ | - when you connect you should have direct access to the system and not be prompted for a passphrase. | ||
+ | |||
+ | == 4 == | ||
+ | |||
+ | Time to forward a port | ||
+ | |||
+ | - add the port forward feature to the ssh command: '-L <local port>: | ||
+ | - '-L 1234: | ||
+ | - if forwarding is enabled on the remote system the you could use the remote system as a stepping stone to another. | ||
+ | - to enter fritz-Box from outside: '' | ||
+ | - the new command would be: | ||
+ | - ssh -i /< | ||
+ | - ie: 'ssh -i / | ||
+ | - verify it works | ||
+ | * 1.connect to the remote system | ||
+ | * 2.set your irc client to connect locally on port 1234 which should forward the request to the remote system. | ||
+ | |||
+ | == 5 == | ||
+ | |||
+ | | ||
+ | |||
+ | - Dear fellow admins, < | ||
+ | - use the autossh command to monitor the connection and reconnect when needed. (make sure you replace the ssh with autossh) | ||
+ | - ' | ||
+ | |||
+ | |||
+ | == 6 == | ||
+ | |||
+ | | ||
+ | |||
+ | - typing this out all the time sucks, so write a script and make it executable. | ||
+ | |||
+ | == 7 == | ||
+ | |||
+ | This of course is very basic instruction set. Both ssh and autossh have many options to suit your needs, but that is for you to figure out. | ||
+ | |||
+ | |||
+ |