Koozali.org: home of the SME Server

rsync between two SME servers

Offline eiceic

  • ***
  • 118
  • +0/-0
    • http://www.eicsoftware.com
rsync between two SME servers
« on: April 05, 2007, 08:14:20 PM »
version 7.1.3 on both servers

Any idea what this Bad ttyname: -c means?

[root@rdsql files]# /usr/bin/rsync  /home/e-smith/files/ibays/offsite/files admin@mail.thedomain.com:/home/e-smith/files/ibays/rd_backup/files
admin@mail.thedomain.com's password:
Bad ttyname: -c
rsync: connection unexpectedly closed (0 bytes received so far) [sender]
rsync error: unexplained error (code 255) at io.c(453) [sender=2.6.9]


Thanks,

Chris Buechler

Offline haymann

  • *
  • 212
  • +0/-0
rsync between two SME servers
« Reply #1 on: April 05, 2007, 08:35:17 PM »
I would be interested in knowing what that means as well. A few months back I was trying to use ssh and/or scp to transfer files between two SME servers and got the same thing. I was never able to get anywhere with it.

Offline Gaston94

  • ****
  • 184
  • +0/-0
rsync between two SME servers
« Reply #2 on: April 06, 2007, 10:17:55 PM »
user admin has no default shell
no tty can be attached to a sessions started for this user, and prompting for a password is something which involve tty usage

You should either consider:
 -using a user with a valid login shell
 - configured a ssh key based connection (gather for "ssh without password" on google) and use rsync through ssh

G.

Offline eiceic

  • ***
  • 118
  • +0/-0
    • http://www.eicsoftware.com
thanks
« Reply #3 on: April 10, 2007, 11:01:04 PM »
option #1 worked great -- thanks