tech:notes_rsh_rcp
Différences
Ci-dessous, les différences entre deux révisions de la page.
| Les deux révisions précédentesRévision précédenteProchaine révision | Révision précédente | ||
| tech:notes_rsh_rcp [2026/01/22 10:41] – Jean-Baptiste | tech:notes_rsh_rcp [2026/01/22 19:51] (Version actuelle) – Jean-Baptiste | ||
|---|---|---|---|
| Ligne 1: | Ligne 1: | ||
| < | < | ||
| - | {{tag>Brouillon | + | {{tag> |
| # Notes rsh rcp | # Notes rsh rcp | ||
| + | Voir : | ||
| + | * http:// | ||
| + | * https:// | ||
| + | * https:// | ||
| + | |||
| + | Voir aussi : | ||
| + | * https:// | ||
| ** Ne pas utilser ce truc ** | ** Ne pas utilser ce truc ** | ||
| Ligne 11: | Ligne 18: | ||
| Source : `man rsh` | Source : `man rsh` | ||
| + | |||
| + | Also note that the design of the .rhosts system is COMPLETELY INSECURE except on a carefully firewalled private network. Under all other circumstances, | ||
| + | |||
| + | Source : `man in.rshd` | ||
| + | |||
| + | |||
| + | |||
| + | rsh : Ce programme est issu du package rlogin | ||
| + | |||
| + | il faut que le compte utilisé soit reconnu par la machine distante. Pour être reconnu, l' | ||
| + | |||
| + | |||
| + | |||
| + | ## Protocole | ||
| + | |||
| + | Ports | ||
| + | ~~~ | ||
| + | rsh hostname (port 513) | ||
| + | rsh hosname commande (port 514) | ||
| + | ~~~ | ||
| ## Coté serveur | ## Coté serveur | ||
| Ligne 30: | Ligne 57: | ||
| echo " | echo " | ||
| ~~~ | ~~~ | ||
| + | |||
| + | Le fichier hosts.equiv / .rhosts autorise ou interdit à des ordinateurs et à des utilisateurs l' | ||
| `/ | `/ | ||
| Ligne 41: | Ligne 70: | ||
| ~~~ | ~~~ | ||
| + | # hostname [username] | ||
| + | |||
| somehost | somehost | ||
| somehost username | somehost username | ||
| + | |||
| ~~~ | ~~~ | ||
| + | |||
| + | For root login to succeed here with pam_securetty, | ||
| + | ~~~bash | ||
| + | echo " | ||
| + | ~~~ | ||
| Ligne 64: | Ligne 101: | ||
| ~~~bash | ~~~bash | ||
| rsh -l user localhost | rsh -l user localhost | ||
| + | rlogin -l user localhost | ||
| + | # NOTE : rsh without a command switches to rlogin. | ||
| + | |||
| + | rsh -l user localhost command | ||
| ~~~ | ~~~ | ||
| - | ## Autres | ||
| + | ### Shell meta-characters escape | ||
| + | |||
| + | Shell meta-characters which are not quoted are interpreted on local machine, while quoted meta-characters are interpreted on the remote machine | ||
| + | |||
| + | Appends the remote file remotefile to the local file localfile | ||
| ~~~bash | ~~~bash | ||
| - | echo "rsh" | + | rsh otherhost cat remotefile |
| ~~~ | ~~~ | ||
| + | |||
| + | Appends remotefile to other_remotefile | ||
| + | ~~~bash | ||
| + | rsh otherhost cat remotefile ">>" | ||
| + | ~~~ | ||
| + | |||
| + | ## Cas 1 | ||
| + | |||
| + | |||
| + | Sur le client - NOK | ||
| + | ~~~ | ||
| + | test@rsh-cli: | ||
| + | Permission denied. | ||
| + | ~~~ | ||
| + | |||
| + | Sur le serveur | ||
| + | ~~~bash | ||
| + | echo " | ||
| + | ~~~ | ||
| + | |||
| + | Sur le client - OK | ||
| + | ~~~ | ||
| + | test@rsh-cli: | ||
| + | ~~~ | ||
| + | |||
| + | |||
| + | |||
| + | ## Autres | ||
| + | |||
| Dans un conteners | Dans un conteners | ||
| Ligne 88: | Ligne 162: | ||
| # | # | ||
| ~~~ | ~~~ | ||
| + | |||
| + | |||
| + | ----- | ||
| + | |||
| + | ~~~ | ||
| + | root | ||
| + | root | ||
| + | root | ||
| + | user1 3072724 3072597 | ||
| + | ~~~ | ||
| + | |||
| + | Bizarre, je ne vois pas le process ' | ||
| + | Le dernier processus ' | ||
| + | |||
| + | ~~~ | ||
| + | # ss -tlnp |grep xinetd | ||
| + | 0 64 | ||
| + | 0 64 | ||
| + | ~~~ | ||
| + | |||
| + | `/ | ||
| + | |||
| + | ~~~ | ||
| + | # default: on | ||
| + | # description: | ||
| + | # | ||
| + | # | ||
| + | # | ||
| + | service shell | ||
| + | { | ||
| + | disable = no | ||
| + | socket_type | ||
| + | wait = no | ||
| + | user = root | ||
| + | log_on_success | ||
| + | log_on_failure | ||
| + | server | ||
| + | } | ||
| + | ~~~ | ||
| + | |||
| FIXME | FIXME | ||
tech/notes_rsh_rcp.1769074870.txt.gz · Dernière modification : de Jean-Baptiste
