ange-ftp-gateway-program is a variable defined in `ange-ftp.el'.
Its value is
This variable may be risky if used as a file-local variable.
Name of program to spawn a shell on the gateway machine.
Valid candidates are rsh (remsh on some systems), telnet and rlogin.
See also the gateway variable above.
You can customize this variable.