Don't use telnet, it is insecure protocol. Use openssh server and open ssh client.
First set ssh keys, see my howto:
SSH Public key based authentication - Howto
Once done that, run ssh command as follows
Code:
ssh you@server-name.com command1
ssh you@server-name.com cp /path/to/something /here/dest