redirecting output to file in network

Hi Experts,
Is it possible to redirect the output of an unix command to file.
when i "telnet" to a remote system and execute the redirection operation, such that the result should outputted to my system.

$ telnet IPaddr2
username : zzzzz
password : ********

IPaddr2>ls > file <- i want the "file" to be stored to my system from where i login.

Any suggestions
Thanks in Advance,
Anent

Use rsh or ssh to execute the program (only works if it doesnt require interaction).

ssh host command > outfile