Re: RSync and SSH problems

2005-07-18 Thread Wayne Davison
On Mon, Jul 18, 2005 at 05:58:12PM +0200, Olivier Thauvin wrote: Le Monday 18 July 2005 17:42, vous avez écrit : rsync -av --rsh=ssh -l sshuser *.* [EMAIL PROTECTED]::module The syntax is wrong: - ssh -l is not need as rsync will use the user in the url: Not when combined with :: syntax

Re: BUG REPORT: latest rsync misinvokes ssh with [EMAIL PROTECTED] ...

2005-06-08 Thread Wayne Davison
On Wed, Jun 08, 2005 at 02:14:05PM +1000, Cameron Simpson wrote: in short, rsync is seeing the [EMAIL PROTECTED] and invoking: ssh ali -l root rsync-daemon-invocation... This should only happen if remsh is present on your system when configure was run. This is because remsh requires

Re: BUG REPORT: latest rsync misinvokes ssh with [EMAIL PROTECTED] ...

2005-06-08 Thread Cameron Simpson
On 08Jun2005 08:38, Wayne Davison [EMAIL PROTECTED] wrote: | On Wed, Jun 08, 2005 at 02:14:05PM +1000, Cameron Simpson wrote: | in short, rsync is seeing the [EMAIL PROTECTED] and invoking: | ssh ali -l root rsync-daemon-invocation... | | This should only happen if remsh is present on your

BUG REPORT: latest rsync misinvokes ssh with [EMAIL PROTECTED] ...

2005-06-07 Thread Cameron Simpson
The latest rsync (2.6.5) seems to invoke the transport specified by $RSYNC_RSH differently. I have this set to point at an ssh wrapper script (which is now I noticed), and an strace shows this: [archives/[EMAIL PROTECTED] strace -e trace=process -f /opt/bin/rsync -avHP /mnt/phat/archives/silva

Re: rsync a remote site with ssh root login disable

2005-05-31 Thread Paul Slootman
On Mon 30 May 2005, spiv007 wrote: but if i want to go in /etc/ssh/sshd_config and disable root login how can I still rsync the remote location if sshd_config root is diables: Either consider running rsync as a daemon, or set PermitRootLogin to forced-commands-only. Implementing the last

rsync a remote site with ssh root login disable

2005-05-30 Thread spiv007
I have box1 with ssh and box2 with ssh client and rsync from box2 I run: rsync -vvprogt --delete -e /usr/bin/ssh [EMAIL PROTECTED]:/home /home and it will sync box1 /home to box2 /home with no problem but if i want to go in /etc/ssh/sshd_config and disable root login how can I still rsync

starting daemon from ssh

2005-04-28 Thread Jon Drukman
This may seem odd, but I'm trying to start rsync in daemon mode from an ssh connection... ie, something like this: ssh host1 /usr/bin/rsync --daemon --port= --config=/path/to/config.txt the reason why is i need to start it on 40 machines and manually logging into each one is a pain. even

Re: starting daemon from ssh

2005-04-28 Thread Jon Drukman
Jon Drukman wrote: This may seem odd, but I'm trying to start rsync in daemon mode from an ssh connection... ie, something like this: ssh host1 /usr/bin/rsync --daemon --port= --config=/path/to/config.txt the reason why is i need to start it on 40 machines and manually logging into each one

cygwin rsync ssh hang. Solved?

2005-04-13 Thread Mike
The legendary cygwin/rsync/ssh hang problem. I have been tracking this for a while now and can say that the latest cygwin install appears to have fixed the problem on one of the setups that has consistantly failed in the past. Have not put the update on to any production boxes yet

Re: Rsync and SSH on Windows

2005-04-03 Thread Andrew Gideon
Lewis Franklin wrote: This works well as two separate processes. However, having read the documentation it seems that I should be able to run the ssh commands inline using the -e flag. However, I have not been able to successfully sync using this method. [...] rsync -azve ssh -l ssh_user

Re: Secure Remote Backups (using SSH) - Using a backup user account

2005-03-24 Thread David Nicholls
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Martin Schröder wrote: | | Add rrsync.pl and sudo to your solution. | | Backupuser does a forced sudo (without passwd) rrsync.pl, which | locks him to reading. | | Best regards | Martin My thanks to all who replied. I went down the rrsync.pl and

rsync+auto-ssh

2005-03-24 Thread Bimal Pandit
Dear All, though my query is not directly with rsync but i thought some of the people must be using rsync ssh, so i am posting my query here, in case if there is some other group or forum pls let me know so that i won't bother people here(my apologies) actually, i am facing a very strange

Secure Remote Backups (using SSH) - Using a backup user account

2005-03-21 Thread David Nicholls
permissions of which are dwrx--, so cannot be placed into the backup group. I don't want to 'auto' ssh using the root account, for obvious reasons, I also do not think it a good idea to change the default permissions on the MailDir directories! I just wondered if some kind soul would give me

Re: Secure Remote Backups (using SSH) - Using a backup user account

2005-03-21 Thread Michael Haertjens
Hello David, Though the information here is on a BSD web site, it should apply equally to any OS. http://www.bsdnews.org/01/rsync_backups.php And if you do end up needing a root login for some reason, look into the forced-commands-only alternative for PermitRootLogin in /etc/ssh

Re: Secure Remote Backups (using SSH) - Using a backup user account

2005-03-21 Thread Martin Schröder
On 2005-03-21 21:13:38 +, David Nicholls wrote: I don't want to 'auto' ssh using the root account, for obvious reasons, I also do not think it a good idea to change the default permissions on the MailDir directories! I just wondered if some kind soul would give me a pointer! Obviously I

Re: Secure Remote Backups (using SSH) - Using a backup user account

2005-03-21 Thread Martin Schröder
On 2005-03-21 17:23:28 -0500, Michael Haertjens wrote: you go that route, you will want to run a script like the following to make sure that the only commands the root login will accept are to run rsync: Check out rrsync.pl :-) Best regards Martin PS: And learn to quote, please. --

Re: Fwd: Re: rsync + ssh -o -p -g -l

2005-03-06 Thread michael mendoza
Hi, i don't write so much englisk, look at this ~in the same line #rsync -avz --stats -e ssh desc ~ [EMAIL PROTECTED]:/home/mike/Desktop/ Password: building file list ... done desc/ desc/prueba/ desc/prueba/a desc/prueba/b desc/prueba/p/ desc/prueba/p/c desc/prueba1.tar Number of files: 7

Re: Fwd: Re: rsync + ssh -o -p -g -l

2005-03-06 Thread Wayne Davison
On Sun, Mar 06, 2005 at 10:45:01AM -0600, michael mendoza wrote: [EMAIL PROTECTED] desc]# du -sh 52K . machine:/home/mike/Desktop/desc# du -sh 24K . I don't understeint that, why? in the source is 52 k and in the destination is 24k John mentioned the various things that can

Re: Fwd: Re: rsync + ssh -o -p -g -l

2005-03-05 Thread John Van Essen
(Email attachment quoted for the benefit of the mail archive...) On Thu, 3 Mar 2005, michael mendoza [EMAIL PROTECTED] wrote: Hi, thank again. I used rsync today to copy 400 MB from a pc to other pc with rsync -avz -e ssh SourceDir [EMAIL PROTECTED]:/dirDest/ but in the source pc i

Fwd: Re: rsync + ssh -o -p -g -l

2005-03-03 Thread michael mendoza
MB from a pc to other pc with rsync -avz -e ssh SourceDir [EMAIL PROTECTED]:/dirDest/ but in the source pc i write in the directory which i want copy: du -sh and i have 400 Mb but when i use rsync to copy to the other pc, and there i write du -sh i see than have 450 MB , is it normal

[Bug 2403] New: ssh port setting

2005-03-01 Thread samba-bugs
https://bugzilla.samba.org/show_bug.cgi?id=2403 Summary: ssh port setting Product: rsync Version: 2.6.4 Platform: All OS/Version: All Status: NEW Severity: enhancement Priority: P3 Component: core

[Bug 2403] ssh port setting

2005-03-01 Thread samba-bugs
||WORKSFORME --- Additional Comments From [EMAIL PROTECTED] 2005-03-01 18:09 --- It is possible: rsync -ave 'ssh -p 4242' host:/src/ /dest/ However, you're much better off using the ~/.ssh/config file to define what port host uses so you don't need to specify

rsync + ssh -o -p -g -l

2005-02-28 Thread michael mendoza
Hi, i need move 20 GB of data from a old computer to a new server and I need than the permiss of user, group, other and symlink be the same in the new server. Y try with rsync -avzpogl -e ssh archivoOrigen [EMAIL PROTECTED]:/dir2/ but when a see in the new server, the data dont have

Re: I am having a problem making a key of ssh using rsync

2005-02-26 Thread Wayne Davison
On Sat, Feb 26, 2005 at 04:34:32AM -0600, chris allen wrote: rsync works fine except it keeps asking for a password. Just to be clear: rsync isn't asking for the password, ssh is. I'd recommend testing a simpler ssh command until you get it working without a password, and then use that setup

Re: Rsync over ssh and forced commands

2005-02-24 Thread Wayne Davison
On Thu, Feb 24, 2005 at 03:18:13PM +0100, Mario Domg?rgen wrote: On the client to commando should be checked so i added a command=/usr/local/bin/check_command.sh to my authorized_keys for the tomte public key. Check to see what the /usr/local/bin/check_command.sh command is outputting, as it's

Problems with rsync server over ssh client

2005-02-03 Thread Jeremy Hansen
I'm trying to use ssh on the client side, mainly because I want to authenticate rsync clients using LDAP. I'm having issues. It seems when I use --rsh=ssh -l username, that the rsync server is ignore my rsyncd.conf uid and gid directives. My goal is to create a dropbox repository for files

Re: Problems with rsync server over ssh client

2005-02-03 Thread Wayne Davison
On Thu, Feb 03, 2005 at 02:01:28PM -0800, Jeremy Hansen wrote: use --rsh=ssh -l username, that the rsync server is ignore my rsyncd.conf uid and gid directives. Correct. Normal users don't have unix permissions to change to another user, so rsync assumes that if you're not root (UID 0), you

Re: Rsync and SSH on Windows

2005-02-03 Thread Wayne Davison
On Tue, Feb 01, 2005 at 12:37:03PM -0800, Wayne Davison wrote: The only way to accomplish what you're doing now is to use the two separate commands you have already discovered. I hadn't noticed that you didn't specify -f in the ssh command to tell it to auto-background the port-forwarding ssh

Re: Problems with rsync server over ssh client

2005-02-03 Thread Jeremy Hansen
On 2/3/05 2:56 PM, Wayne Davison [EMAIL PROTECTED] wrote: On Thu, Feb 03, 2005 at 02:01:28PM -0800, Jeremy Hansen wrote: use --rsh=ssh -l username, that the rsync server is ignore my rsyncd.conf uid and gid directives. Correct. Normal users don't have unix permissions to change

Rsync and SSH on Windows

2005-02-01 Thread Lewis Franklin
I am writing a program that synchronizes my companies Windows laptops with our home server. Due to the nature of our proxy/firewall, I must use SSH with port forwarding to achieve this goal. Currently I establish the SSH connection using the following command: ssh [EMAIL PROTECTED] -i

Re: Rsync and SSH on Windows

2005-02-01 Thread Wayne Davison
On Tue, Feb 01, 2005 at 10:22:42AM -0600, Lewis Franklin wrote: However, having read the documentation it seems that I should be able to run the ssh commands inline using the -e flag. No, combining -e with :: syntax will start a brand new rsync on the remote machine running in daemon mode

Rsync through SSH can't find directory

2005-01-16 Thread Aaron
Up until recently, I was running a standard rsync/rsh to rsyncd server combination to sync files. Due to security concerns, I'd like to switch to rsync through ssh. I'm testing with the following from the client side: rsync --verbose --progress --stats --compress --rsh=/usr/local/bin/ssh -p

Re: Rsync through SSH can't find directory

2005-01-16 Thread Wayne Davison
On Sun, Jan 16, 2005 at 04:27:24PM -0700, Aaron wrote: rsync [...] /rsynctest/test1 [EMAIL PROTECTED]:/test1 Rsync connects fine, but then complains it can't find the directory. This is pushing file(s) from /rsynctest/test1 to /test1/test1 on the remote system, so unless that duplication of the

RE: Rsync through SSH can't find directory

2005-01-16 Thread Aaron
@lists.samba.org Subject: Re: Rsync through SSH can't find directory On Sun, Jan 16, 2005 at 04:27:24PM -0700, Aaron wrote: rsync [...] /rsynctest/test1 [EMAIL PROTECTED]:/test1 Rsync connects fine, but then complains it can't find the directory. This is pushing file(s) from /rsynctest/test1 to /test1

Chrooted rsync over ssh

2005-01-13 Thread Bob
I want this user to be allowed to use rsync over ssh, but i don't want him to have a shell access (so he can't execute anything on the server). In his home directory, there are bin, sbin, lib, usr, dev... dirs, becaus it is a jail. The ftp directory contains the files of this user

Re: rsync over ssh (server parameters)

2005-01-10 Thread Wayne Davison
On Mon, Jan 03, 2005 at 04:36:11PM +0100, Bob wrote: rsync --server --sender . /files_needed However, this syntax isn't documented anywhere. What is the aim of the '.' before the path ? The '.' is the directory that the server should push_dir() into at the very start. In all recent versions,

Using rsync daemon over ssh (was How to use rsync)

2005-01-06 Thread John Van Essen
command on second machine. rsync -av --rsh=ssh -l xidcit [EMAIL PROTECTED]::rsync-test/test1 test1 Since you are using rsync daemon over ssh, the daemon is being run as the ssh login user (xidcit) and not as root. File permissions now become important. These must be writeable by the non-root user

rsync over ssh (server parameters)

2005-01-03 Thread Bob
I would like to know if someone know the syntax while calling the server. I have seen that rsync uses ssh to launch rsync in server mode with parameters like this : rsync --server --sender . /files_needed However, this syntax isn't documented anywhere. What is the aim of the '.' before the path

[Bug 2207] New: Listing of available sync-sets is very different with or without ssh

2005-01-02 Thread samba-bugs
https://bugzilla.samba.org/show_bug.cgi?id=2207 Summary: Listing of available sync-sets is very different with or without ssh Product: rsync Version: 2.6.2 Platform: All OS/Version: All Status: NEW

Restricting rsync over ssh

2004-12-28 Thread Bob
Hi I have very special needs and i wanted to use rsync over ssh. I don't know if a solution already exists for what i want to do. I want to provide rsync over ssh to my users. Howevern i want to have the following limitations : 1. No shell access 2. Limitting users to their home directories I

Re: Restricting rsync over ssh

2004-12-28 Thread Dmitry V. Levin
Hi, On Tue, Dec 28, 2004 at 04:53:45PM +0100, Bob wrote: I have very special needs and i wanted to use rsync over ssh. I don't know if a solution already exists for what i want to do. I want to provide rsync over ssh to my users. Howevern i want to have the following limitations : 1

Re: Restricting rsync over ssh

2004-12-28 Thread Bob
of chroot ? Bob Dmitry V. Levin wrote: Hi, On Tue, Dec 28, 2004 at 04:53:45PM +0100, Bob wrote: I have very special needs and i wanted to use rsync over ssh. I don't know if a solution already exists for what i want to do. I want to provide rsync over ssh to my users. Howevern i want to have

Re: Restricting rsync over ssh

2004-12-28 Thread Dmitry V. Levin
On Tue, Dec 28, 2004 at 05:24:27PM +0100, Bob wrote: I would like to avoid using chroot because it implies my dummy-shell must run in suid root. Furthermore, it forces to create a jail with the binaries and libraries inside. I was thinking to this solution to avoid doing this. Is there any

Re: Restricting rsync over ssh

2004-12-28 Thread Alessandro Ranellucci
On 28-12-2004 at 19:12, Dmitry V. Levin wrote: Use chroot(2) to get more robust solution. See also ftp://ftp.altlinux.org/pub/people/ldv/rshell/ You may want to have a look at this shell: http://foosh.sourceforge.net/ I use it and it's nice for rsync (I can't do chroot). - Alessandro

Re: Restricting rsync over ssh

2004-12-28 Thread Martin Scharrer
On Tuesday 28 December 2004 17:12, Dmitry V. Levin wrote: I was thinking to the folowing solution, but i don't know if it is secure enough : Create a dummy-shell sor ssh login that only allow the rsync --server --sender command. Then i get the path of the wanted files, and i appened

ssh rsync problem

2004-12-21 Thread Harm Aarts
to run: [EMAIL PROTECTED]:/tmp$ rsync --verbose --progress --recursive --stats \ --rsh=/usr/bin/ssh 192.168.1.1:test /tmp/test Password: receiving file list ... rsync: link_stat /home/harm/test failed: No such file or directory (2) 0 files to consider client: nothing to do: perhaps you need

Re: ssh rsync problem

2004-12-21 Thread Remco Boom
PROTECTED]:/tmp$ rsync --verbose --progress --recursive --stats \ --rsh=/usr/bin/ssh 192.168.1.1:test /tmp/test Password: receiving file list ... rsync: link_stat /home/harm/test failed: No such file or directory (2) 0 files to consider client: nothing to do: perhaps you need to specify some

RE: SSH Tunnel Problem

2004-12-19 Thread Tevfik Karagülle
Hi, FAQ at http://www.itefix.no/phpws/index.php?module=faqFAQ_op=viewFAQ_id=27 may help. Rgrds Tev cwRsync maintainer -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of d c Sent: 19. desember 2004 04:28 To: [EMAIL PROTECTED] Subject: SSH Tunnel

Re: SSH Tunnel Problem

2004-12-19 Thread Wayne Davison
On Sat, Dec 18, 2004 at 07:28:24PM -0800, d c wrote: HOWEVER- I cannot connect passwordless with SSH and then connect to the rsync daemon. If you combine daemon-syntax with ssh, you spawn a new rsync daemon that will be run by the ssh program, so it needs its own rsyncd.conf file (which must

Re: SSH Tunnel Problem

2004-12-19 Thread d c
on the binary for rsync also? Thanks for the quick repsonses so far. Also- as an aside I am I better of w/ cwrsync?Wayne Davison [EMAIL PROTECTED] wrote: On Sat, Dec 18, 2004 at 07:28:24PM -0800, d c wrote: HOWEVER- I cannot connect "passwordless" with SSH and then connect to

SSH Tunnel Problem

2004-12-18 Thread d c
I have set up an Rsync server on FreeBSD 5.3 and plan on having windows clients synchronize data to it. Rsync running as a daemon works fine. I can successfully copy data up to the server and view it via scp. Also- I can connect via ssh and run rsync as well. HOWEVER- I cannot connect

Re: passing ssh password to rsync without prompting it

2004-12-02 Thread Jim Kleckner
Wayne Davison wrote: On Wed, Dec 01, 2004 at 11:02:15PM -0800, jack alex wrote: So, why it is not picking password from password file and any other idea to pass ssh password to rsync without prompting it. This is because the option only affects rsync's use of an rsync daemon. Rsync has

SV: passing ssh password to rsync without prompting it

2004-12-02 Thread Tevfik Karagulle
] Emne: Re: passing ssh password to rsync without prompting it Wayne Davison wrote: On Wed, Dec 01, 2004 at 11:02:15PM -0800, jack alex wrote: So, why it is not picking password from password file and any other idea to pass ssh password to rsync without prompting

Re: passing ssh password to rsync without prompting it

2004-12-01 Thread Wayne Davison
On Wed, Dec 01, 2004 at 11:02:15PM -0800, jack alex wrote: So, why it is not picking password from password file and any other idea to pass ssh password to rsync without prompting it. This is because the option only affects rsync's use of an rsync daemon. Rsync has no options that affect ssh's

Remote server incremental rsync +ssh ?

2004-11-17 Thread Rod Rioux
, this is to happen all over ssh. I know someone must have asked this question before, I tried looking through the mailing list but found a lot of scripts that would do this to a share/local .. but not over ssh.. Would something like this work ? rsync -backup -backup-dir=/backupstorage/Monday -e ssh -avz

rsync --rsh not reading .ssh/config

2004-11-11 Thread Bill Moseley
I've setup up a single-use key on a remote host to run rsync in server mode. I've also setup .ssh/config locally with an IdentityFile to select the single-use ssh key. This works on my Debian sid machine: rsync --rsh=ssh remove_host :: But on another machine that command (and others tried

Re: rsync --rsh not reading .ssh/config

2004-11-11 Thread Paul Slootman
On Thu 11 Nov 2004, Bill Moseley wrote: Again, the problem seems that on this machine .ssh/config is not being read, but only when ssh is run via rsync. My guess is this is just a problem with running the older rsync. Ah, you mean .ssh/config is being read, but not when ssh is run via

Re: rsync --rsh not reading .ssh/config

2004-11-11 Thread Wayne Davison
On Thu, Nov 11, 2004 at 11:01:30PM +0100, Paul Slootman wrote: When you use a double colon host::, then you're telling ssh to connect directly to the rsync daemon running on that host using port 873. In other words, ssh does not come into the equation, so it's pretty logical that the .ssh

Re: rsync --rsh not reading .ssh/config

2004-11-11 Thread Bill Moseley
On Thu, Nov 11, 2004 at 04:47:32PM -0800, Wayne Davison wrote: $ rsync -a --rsh=ssh -F $HOME/.ssh/config -i $HOME/.ssh/mysqldump remotehost:: unknown host: remotehost It looks like this command didn't even connect to the remote host, so that would explain why the access times

Re: rsync --rsh not reading .ssh/config

2004-11-11 Thread Wayne Davison
On Thu, Nov 11, 2004 at 08:26:23PM -0800, Bill Moseley wrote: So why isn't is using ssh? Because you're using an archaic version of rsync that doesn't support the feature you're trying to use. Upgrade to 2.6.3. ..wayne.. -- To unsubscribe or change options: http://lists.samba.org/mailman

Re: rsync --rsh not reading .ssh/config

2004-11-11 Thread Bill Moseley
On Thu, Nov 11, 2004 at 09:06:49PM -0800, Wayne Davison wrote: On Thu, Nov 11, 2004 at 08:26:23PM -0800, Bill Moseley wrote: So why isn't is using ssh? Because you're using an archaic version of rsync that doesn't support the feature you're trying to use. Upgrade to 2.6.3. Well, that's

Rsync ssh passwordless

2004-10-07 Thread Ryan Sommers
I'm attempting to setup rsync to do backups of a remote system. I'd like to make it passwordless. The trouble I'm running into is I run sshd with PermitRootLogin Off for obvious security reasons. This means that I can't use rsync over ssh to the root user. Instead what I thought of was sshing

Re: Rsync ssh passwordless

2004-10-07 Thread Ryan Sommers
and tell rsync to run the remote rsync command using sudo: rsync -a --rsync-path='sudo rsync' [EMAIL PROTECTED]:/path/to/stuff ./local/path ..wayne.. That works. After sending the first mail I was able to get it to work by adding '-e ssh' to the command line and changing '[EMAIL PROTECTED]:/path

Re: Rsync ssh passwordless

2004-10-07 Thread Wayne Davison
On Thu, Oct 07, 2004 at 11:18:03AM -0600, Ryan Sommers wrote: After sending the first mail I was able to get it to work by adding '-e ssh' to the command line and changing '[EMAIL PROTECTED]:/path/to/stuff' to '[EMAIL PROTECTED]::module'. Yes, that is the other choice if you want to restrict

Re: Truncated output from rsync -e ssh ... 21 | tee

2004-09-29 Thread David Evers
The attached patch fixes the problem by putting our stderr fd back into blocking I/O mode. I don't see why ssh should be playing with our stderr fd in the first place (since we're the one calling ssh, not the one being run by ssh). Does anyone see a problem with this change? With this patch

Re: Truncated output from rsync -e ssh ... 21 | tee

2004-09-29 Thread David Evers
The attached patch fixes the problem by putting our stderr fd back into blocking I/O mode. A bit of digging in the openssh bugzilla throws up this: http://bugzilla.mindrot.org/show_bug.cgi?id=26 which suggests that ssh really does want to keep stderr non-blocking :-( Cheers, David

Re: Truncated output from rsync -e ssh ... 21 | tee

2004-09-29 Thread Wayne Davison
On Wed, Sep 29, 2004 at 08:44:43AM +, David Evers wrote: I'm not seeing how we know that ssh has finished messing with stderr by the time the patch comes to try to set it back to blocking. The reason there's no race is that this call comes after we've begun to talk over the socket

Truncated output from rsync -e ssh ... 21 | tee

2004-09-28 Thread David Evers
when you're doing a remote rsync over ssh AND you redirect stderr into a pipe that fills up, as in rsync -e ssh -avn host:/path /local/path 21 | tee LOG I can get the right answer by just not capturing stderr; i.e. removing the 21 and just saying rsync -avn host:/path /local/path | tee LOG

Re: Truncated output from rsync -e ssh ... 21 | tee

2004-09-28 Thread Wayne Davison
On Tue, Sep 28, 2004 at 04:10:13PM +, David Evers wrote: rsync -e ssh -avn host:/path /local/path 21 | tee LOG In my test I piped the output to (sleep 10; tail) to ensure a reproducable truncation. The attached patch fixes the problem by putting our stderr fd back into blocking I/O mode

Re: how to rsync over ssh, but login is not permit

2004-09-16 Thread Daniel Berhane
Please find a good online tutorial how to do rsync via ssh without being prompted for password (via public/private keys) at: http://www.jdmz.net/ssh/ regards, Daniel. [EMAIL PROTECTED] wrote on 16/09/2004 11:30:11: Hi, I want to backup my system via rsync over ssh, but login

Re: ssh vs /sbin/nologin

2004-09-11 Thread Wayne Davison
On Thu, Sep 09, 2004 at 06:03:49PM +0800, Jacky Kim wrote: If the shell of user alpha is /sbin/nologin When use rsync with ssh mode, is it possible for alpha to use rsync to backup data? This is an ssh question: you're asking if there is a way to limit what commands the user runs

Re: rsync with ssh mode vs. chroot

2004-09-11 Thread Wayne Davison
On Thu, Sep 09, 2004 at 06:39:00PM +0800, Jacky Kim wrote: When use rsync with daemon mode, rsync can call chroot. But with ssh mode, is it possible to use chroot? Rsync only supports chroot in daemon mode. There might be a remote- shell that supports chrooted access, but I don't know of one

Re: RSync + SSH tunneling through firewall

2004-09-09 Thread Stefaan Lhermitte
Haai Andrzej, The problem is solved. When I double checked the ssh-b file I realized I had to change the linux commands to cygwin commands. >From that moment all commands (like date, hostname...) worked on the C-host So with the key authentification and the following ssh-b script: #!/

Re: RSync + SSH tunneling through firewall

2004-09-09 Thread Stefaan Lhermitte
Yessos, very cool. It works even with rsync -auv -e ssh [EMAIL PROTECTED] ssh src_folder host_C:sdt_dir Sometimes solutions can be very simple... Unfortunartely all open positions for email postmasters are just filled in. I did my best to convince my boss, you were better, but it didn't work

ssh vs /sbin/nologin

2004-09-09 Thread Jacky Kim
If the shell of user alpha is /sbin/nologin When use rsync with ssh mode, is it possible for alpha to use rsync to backup data? I don't permit alpha to login the backup server. Thanks very much! Best Regards! Jacky Kim . -- To unsubscribe or change options: http://lists.samba.org/mailman

rsync with ssh mode vs. chroot

2004-09-09 Thread Jacky Kim
When use rsync with daemon mode, rsync can call chroot. But with ssh mode, is it possible to use chroot? Thanks very much! Best Regards! Jacky Kim . -- To unsubscribe or change options: http://lists.samba.org/mailman/listinfo/rsync Before posting, read: http://www.catb.org/~esr/faqs/smart

rsync via ssh tunnel

2004-09-08 Thread Radio Gong 2000 GmbH Co. KG [Technik]
Hi there, I want to put these two commands in just one command: ssh -i ~/.ssh/id_dsa -C -l sascha -L 873:rsync-server:873 bridge-server rsync -auz rsync://[EMAIL PROTECTED]/share /local-path How can I do this. With Option --rsh (-e) rsync wants to execute the command on the remote machine

Re: rsync via ssh tunnel

2004-09-08 Thread Wayne Davison
On Wed, Sep 08, 2004 at 09:42:32AM +0200, Radio Gong 2000 GmbH Co. KG [Technik] wrote: I want to put these two commands in just one command: ssh -i ~/.ssh/id_dsa -C -l sascha -L 873:rsync-server:873 bridge-server rsync -auz rsync://[EMAIL PROTECTED]/share /local-path This was covered a few

Re: RSync + SSH tunneling through firewall

2004-09-08 Thread Paul Slootman
On Wed 08 Sep 2004, Stefaan Lhermitte wrote: I tried to connect the tunnel with another port number. When I use port number 22 instead of 873 I can telnet to C from B. When I telnet I get SSH-1.99-OpenSSH_3.9p1. Yes, because you are connecting via the tunnel to the ssh server on C

RSync + SSH tunneling through firewall

2004-09-07 Thread Stefaan Lhermitte
Dear RSYNCians, I'm trying to rsync my labtop pc (let's assume A-computer) with my desktop pc (let's assume C-computer) through our firewall. In between there is one computer (let's assume B-computer) that has an open port, so I theoretically could connect via a tunnel. I checked the SSH

Re: RSync + SSH tunneling through firewall

2004-09-07 Thread Stefaan Lhermitte
Nope, I cannot telnet port 873. I tried "telnet C-computer" and "telnet C-computer 873" but command give the error: Connection refused. On the other hand, the SSH command from B-computer to C-computer works does give connection without any problems. Thanx in advance,

If ssh port is not 22, how does rsync specify this in command line?

2004-09-05 Thread cyclops
Dear all, I have a question. If my server's ssh port is other port than the default 22. When use rsync with ssh mode, how to specify the port ssh use with command line? I read the man page, there is a --port option, but it seems this work for the rsyncd, not for ssh/rsh. Any idea

Re: If ssh port is not 22, how does rsync specify this in command line?

2004-09-05 Thread Cam
cyclops When use rsync with ssh mode, how to specify the port ssh use with command line? I use a command that includes this: rsync ... -e 'ssh -p 1234' ... (replace the dots with your own rsync options) Hope that helps, -Cam -- To unsubscribe or change options: http://lists.samba.org/mailman

rsync and tunneling via ssh

2004-08-26 Thread Jean-Gabriel Duquesnoy
Hi, I have setup a rsync server with a rsync running as a deamon, due to security rules I cannot open the rsync standard port (873) in the firewall. We have to tunnel rsync through ssh. On the client side, which is linux kernel 2.4 I have made the following script, but ssh -i /home/ifao/bin

Re: rsync and tunneling via ssh

2004-08-26 Thread Paul Slootman
On Thu 26 Aug 2004, Jean-Gabriel Duquesnoy wrote: I have setup a rsync server with a rsync running as a deamon, due to security rules I cannot open the rsync standard port (873) in the firewall. We have to tunnel rsync through ssh. On the client side, which is linux kernel 2.4 I have made

Re: rsync and tunneling via ssh

2004-08-26 Thread Dan Pritts
On Thu, Aug 26, 2004 at 05:14:53PM +0200, Jean-Gabriel Duquesnoy wrote: Hi, I have setup a rsync server with a rsync running as a deamon, due to security rules I cannot open the rsync standard port (873) in the firewall. We have to tunnel rsync through ssh. On the client side, which

RE: rsync and tunneling via ssh

2004-08-26 Thread Jean-Gabriel Duquesnoy
] Subject: Re: rsync and tunneling via ssh On Thu, Aug 26, 2004 at 05:14:53PM +0200, Jean-Gabriel Duquesnoy wrote: Hi, I have setup a rsync server with a rsync running as a deamon, due to security rules I cannot open the rsync standard port (873) in the firewall. We have to tunnel rsync through ssh

Re: rsync and tunneling via ssh

2004-08-26 Thread Dan Pritts
server works when you are already inside the firewall? This looks like a problem on that side. If you don't have some other reason to use the rsync server, you should just use plain rsync for this. rsync -e ssh -av remotehost:/remote/path /local/path danno -- To unsubscribe or change options: http

Re: SSH and rsync server (tunnelling)

2004-08-20 Thread Lars E. D. Jensen
Lars E. D. Jensen wrote: Hi Thanks for your previous answers. Now I'm fighting with setting up ssh tunnelling with rsync Hi Just wanted to share this with other rsync through tunnelling newbies. This script will copy files from remotehostname to localhostname with permissions/ownership etc

SSH and rsync server (tunnelling)

2004-08-18 Thread Lars E. D. Jensen
Hi Thanks for your previous answers. Now I'm fighting with setting up ssh tunnelling with rsync I got a rsync server (100.100.100.100) listening on port 873. It's configured with a rsync user. (It works without ssh tunnelling) On my rsync client I issue this command: ssh -f -L

SSH and rsync server

2004-08-17 Thread Lars E. D. Jensen
Hi list I need to use rsync with ssh, but I keep getting this error message no matter what I do, I've read the mailing lists but can't figure out what needs to be done: The warning tells me that it's not possibel to use ssh?! I do this: rsync -auz --delete --rsh=ssh -l ssh_username [EMAIL

Re: SSH and rsync server

2004-08-17 Thread Widyono
On Tue, Aug 17, 2004 at 06:15:41PM +0200, Lars E. D. Jensen wrote: The warning tells me that it's not possibel to use ssh?! I do this: rsync -auz --delete --rsh=?ssh -l ssh_username [EMAIL PROTECTED]::www /var/www WARNING: --rsh or -e option ignored when connecting to rsync daemon

Re: SSH and rsync server

2004-08-17 Thread Lars E. D. Jensen
Widyono wrote: On Tue, Aug 17, 2004 at 06:15:41PM +0200, Lars E. D. Jensen wrote: The warning tells me that it's not possibel to use ssh?! I do this: rsync -auz --delete --rsh=?ssh -l ssh_username [EMAIL PROTECTED]::www /var/www WARNING: --rsh or -e option ignored when connecting to rsync daemon

Re: SSH and rsync server

2004-08-17 Thread Wayne Davison
On Tue, Aug 17, 2004 at 06:15:41PM +0200, Lars E. D. Jensen wrote: The warning tells me that it's not possibel to use ssh?! Not to connect with an existing rsync daemon. The remote-shell option tells rsync to spawn a remote-shell which runs a program (rsync). However, to connect to an existing

SV: SSH and rsync server

2004-08-17 Thread Tevfik Karagulle
Hi, So, if you want to encrypt the traffic to an existing rsync daemon, you'll need to use ssh (or maybe stunnel) to forward a local socket address to the remote machine (which allows you to tell rsync to connect to the local machine and have that connection get forwarded to the remote machine

without ssh prompt

2004-08-12 Thread Jacky Kim
When I ssh-keygen a passwordless key pair for root and give the public key to openssh server(sshsrv), then it is ok to # ssh [EMAIL PROTECTED] But when I generate a password key pair for root and give the public key to openssh server(sshsrv), then I fail to # echo rootpasswd

Re: without ssh prompt

2004-08-12 Thread Wayne Davison
On Thu, Aug 12, 2004 at 05:51:34PM +0800, Jacky Kim wrote: # echo rootpasswd | ssh [EMAIL PROTECTED] This is an ssh question, so you're better off asking it on the ssh mailing list. However, I think you're looking for the ssh-agent command. See also the keychain project for a way

Re: rsync + ssh

2004-06-21 Thread Tim Conway
Contractor - IBM Global Services desk:3032734776 [EMAIL PROTECTED] According to the manpage and other docs, it also possible to use ssh to connect to a daemon using ::. However, you must use the --rsh=ssh ... option instead of the -e. o for copying from the local machine to a remote

Re: rsync + ssh

2004-06-21 Thread Wayne Davison
On Mon, Jun 21, 2004 at 01:56:29PM -0600, Tim Conway wrote: I've known of people running a rsyncd binding on localhost and tunneling, when they were afraid of getting sniffed. I assume this is just an automation of that process? No, it uses ssh to run its own daemon process. It's just so

Rsync, Cygwin, SSH: ntsec OR nontsec?

2004-06-17 Thread Brian
. Does this have something to do with cygwin=ntsec or nontsec? I am not using either of them right now--should I? Also, I heard ssh has a problem with one of these settings. Is that still the case? Suggestions, please? Brian -- Client Info: Windows 2000 Sever

<    1   2   3   4   5   6   7   8   9   >