Hi all, i am building an authentification system based upon MIT kerberos. I set up a realm in which I can use the ftp and telnet server/clients infrastructure for the purpose of authentification. To backup my server i would like to use rsync, but instead of a ssh/rsh/stunnel with an encrypted kerberized telnet. My problem is, that i could connect manually via telnet.krb5, but if like to use it with rsync, i get an parameter error of the telnet client: rsync -av --rsh="telnet.krb5 -afx cube" host:/media /media telnet: invalid option -- - Usage: telnet [-8] [-E] [-K] [-L] [-X atype] [-a] [-d] [-e char] [-k realm] [-l user] [-f/-F] [-n tracefile] [-r] [-x] [host-name [port]] rsync: connection unexpectedly closed (0 bytes received so far) [receiver] rsync error: error in rsync protocol data stream (code 12) at io.c(434) I have tried different parameter, but also with a normal telnet got the same message. Have you any advices for my little odd problem? Thanks for your time. Dennis Guse --FHTW-University of Applied Science Berlin--
On Fri, May 12, 2006 at 09:06:48PM +0200, Dennis Guse wrote:> i would like to use rsync, but instead of a ssh/rsh/stunnel with an > encrypted kerberized telnet.The telnet command is not a remote-shell command since it has no way to specify the command+options to run on the remote system. Thus, telnet complains about the unsupported usage. ..wayne..
On Fri, 2006-05-12 at 21:06 +0200, Dennis Guse wrote:> rsync -av --rsh="telnet.krb5 -afx cube" host:/media /media > > telnet: invalid option -- -Wayne beat me to it. But I was going to say, you might be able to write a wrapper script that sends the rsync command and arguments down the telnet connection for the shell to execute and discards any extra output produced by the shell while logging in (to avoid the mystifying "is your shell clean?" message). For instance, if you know the shell on the remote host produces 10 lines of garbage during logging in, you could define something like this: telnet-rsh: #!/bin/bash host="$1" shift echo "$@" | telnet.krb5 -afx cube "$1" | tail -n +11 And then pass --rsh=telnet-rsh to rsync. It will probably take experimentation to get a clean data path for rsync. Matt