Hier werden die Unterschiede zwischen zwei Versionen angezeigt.
| Beide Seiten der vorigen RevisionVorhergehende ÜberarbeitungNächste Überarbeitung | Vorhergehende Überarbeitung | ||
| ssh [2008/11/17 09:02] – gerald | ssh [2024/02/29 13:36] (aktuell) – Externe Bearbeitung 127.0.0.1 | ||
|---|---|---|---|
| Zeile 2: | Zeile 2: | ||
| [[SSH without password|SSH ohne Passworteingabe]] | [[SSH without password|SSH ohne Passworteingabe]] | ||
| + | |||
| + | [[ssh: | ||
| + | |||
| + | [[ssh: | ||
| So habe ich Java-Software via ssh (cridmanager mit Oberfläche) zum Laufen gebracht. | So habe ich Java-Software via ssh (cridmanager mit Oberfläche) zum Laufen gebracht. | ||
| [[http:// | [[http:// | ||
| + | |||
| == 4.2.1 XDM == | == 4.2.1 XDM == | ||
| Zeile 29: | Zeile 34: | ||
| Nach einem Neustart von XDM ist der Applikations-Server bereit. (/ | 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. | ||
| + | |||
| + | |||
| + | |||
| + | |||