Files transferred over shell protocol

Files transferred over shell protocol

"FI"les transferred over "SH"ell protocol is a protocol to use SSH or RSH to transfer files between computers and manage remote files.

The advantage of FISH is that all it requires on the server-side is an SSH or RSH implementation, Unix shell and a set of standard Unix utilities like ls, cat or dd. Optionally, there can be a special FISH server program (called "start_fish_server") on the server, which executes FISH commands instead of Unix shell and thus speeds up operations.

The protocol was designed by Pavel Machek in 1998 for Midnight Commander.

Protocol messages

Client sends text requests of the following form:

#FISH_COMMAND arguments... equivalent shell commands, which may be multi-line

Fish commands are all defined, shell equivalents may vary.Fish commands always have priority: the server is expected to execute a fish command if it understands it. If it does not, however, it can try and execute a shell command.When there is no special server program, Unix shell ignores the fish command as a comment and executes the equivalent shell command(s).

Server replies are multi-line, but always end with

### xyz

line. ### is a prefix to mark this line, xyz is the return code.Return codes are superset to those used in ftp.The codes 000 and 001 are special, their meaning depends on presence of server output before the end line.

ession initiation

The client initiates SSH or RSH connection with echo FISH:;/bin/sh as the command executed on remote machine. This should make it possible for the server to distinguish FISH connections from normal RSH or SSH.

The first two commands sent to the server are FISH and VER to negotiate FISH protocol, its version and extensions.

#FISH echo; start_fish_server; echo '### 200'

#VER 0.0.2 <...> echo '### 000'

The server may reply to VER command with a lines like VER 0.0.0 <...> ### 200which indicates supported version of the FISH protocol and supported extensions.

Implementations

*Midnight Commander
*Lftp
*fish:// KDE kioslave (with konqueror)

See also

* SSHFS

External links

* [http://cvs.savannah.gnu.org/viewcvs/mc/mc/vfs/README.fish?view=markup README.fish from Midnight Commander]
* [http://www.garni.ch/fish/ kio_fish page]
* [http://docs.kde.org/development/en/kdebase-runtime/kioslave/fish.html KDE documentation]
* [http://www.linux.org/lessons/short/fish/index.html Tutorial for the kioslave]


Wikimedia Foundation. 2010.

Look at other dictionaries:

  • Files transferred over shell protocol — Saltar a navegación, búsqueda FIles transferred over SHell protocol es un protocolo para usar SSH o RSH en la transferencia de ficheros entre máquinas, y para la gestión de ficheros remotos. La ventaja de FISH es que todo lo que necesita del lado …   Wikipedia Español

  • Files transferred over shell protocol — FISH im TCP/IP‑Protokollstapel: Anwendung FISH SSH RSH … Transport TCP Internet IP (IPv4, IPv6) …   Deutsch Wikipedia

  • Secure Shell — or SSH is a network protocol that allows data to be exchanged using a secure channel between two networked devices. RFC 4252] Used primarily on Linux and Unix based systems to access shell accounts, SSH was designed as a replacement for TELNET… …   Wikipedia

  • Secure Shell — Fonction Session à distance sécurisée Sigle SSH Port 22 RFC …   Wikipédia en Français

  • Secure Shell Filesystem — (SSHFS) es un sistema de archivos para Linux (y otros sistemas operativos con una implementación FUSE, tal como en Mac OS X), que opera sobre archivos en una computadora remota usando un entorno seguro de acceso. En la computadora local donde se… …   Wikipedia Español

  • Nautilus (file manager) — Nautilus file manager Screenshot of Nautilus 3.0.2 Developer(s) …   Wikipedia

  • FISH — steht für: FISH (Kryptologie), Codename der Alliierten für verschiedene Verschlüsselungsmethoden der deutschen Wehrmacht Fish!, Tipps zur Erleichterung des (Arbeits )alltags durch Befolgung einiger weniger Regeln und Spaß an der Arbeit Festival… …   Deutsch Wikipedia

  • FisH — steht für: FISH (Kryptologie), Codename der Alliierten für verschiedene Verschlüsselungsmethoden der deutschen Wehrmacht Fish!, Tipps zur Erleichterung des (Arbeits )alltags durch Befolgung einiger weniger Regeln und Spaß an der Arbeit Festival… …   Deutsch Wikipedia

  • SSHFS — (Secure SHell FileSystem) is a file system for Linux (and other operating systems with a FUSE implementation, such as Mac OS X or FreeBSD) capable of operating on files on a remote computer using just a secure shell login on the remote computer.… …   Wikipedia

  • Uniform Resource Identifier — Ein Uniform Resource Identifier (Abk. URI; engl. für „einheitlicher Bezeichner für Ressourcen“) ist ein Identifikator und besteht aus einer Zeichenfolge, die zur Identifizierung einer abstrakten oder physischen Ressource dient. URIs werden zur… …   Deutsch Wikipedia

Share the article and excerpts

Direct link
Do a right-click on the link above
and select “Copy Link”