Re: [gentoo-user] remote rsync

2006-03-12 Thread Tito Valentin

Paul,

You could try it like this:

rsync -Cav --delete --progress /test -e ssh lkd5f:/test

Also, make sure that your other machine allows you to connect via ssh 
...hope this helps


Paul Stear wrote:


Hi all,
I am trying to rsync to a remote server with the command:
rsync -Cav --delete --progress /test lkd5f:/test 
but I get the following error messages:

ssh: connect to host lkd5f port 22: Connection refused
rsync: connection unexpectedly closed (0 bytes received so far) [sender]
rsync error: error in rsync protocol data stream (code 12) at io.c(434)

2 questions
1.  Should this command work?
2.  How do I prevent port 22 from refusing the connection?

I am a complete dunce with anything to do with remote machines so any help 
will be greatly received


Paul
 


--
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] remote rsync

2006-03-12 Thread Paul Stear
On Sunday 12 Mar 2006 13:06, Tito Valentin wrote:
 Paul,

 You could try it like this:

 rsync -Cav --delete --progress /test -e ssh lkd5f:/test

 Also, make sure that your other machine allows you to connect via ssh
 ...hope this helps
I tried it as you suggested but get the same errors.  I thought ssh was used 
by default.
How do I check if the remote machine allows ssh?

 Paul Stear wrote:
 Hi all,
 I am trying to rsync to a remote server with the command:
 rsync -Cav --delete --progress /test lkd5f:/test
 but I get the following error messages:
 ssh: connect to host lkd5f port 22: Connection refused
 rsync: connection unexpectedly closed (0 bytes received so far) [sender]
 rsync error: error in rsync protocol data stream (code 12) at io.c(434)
 
 2 questions
 1.   Should this command work?
 2.   How do I prevent port 22 from refusing the connection?
 
 I am a complete dunce with anything to do with remote machines so any help
 will be greatly received
 
 Paul

-- 
This message has been sent using kmail with gentoo linux
-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] remote rsync

2006-03-12 Thread Tito Valentin
Does the machine belong to you?  If so check if sshd is running like ps 
-eaf | grep ssh  If not, you may need to check with the Admin of the 
machine.  Also, your ip might be listed in the /etc/hosts.deny files to 
reject any unrecognized ip's.  You might need to be added to the 
hosts.allow.


You already know you can't get in because the error is telling you so.  
You need to find out why.  If the machine belongs to you then try what I 
suggested if not then contact the person who does if that is possible.


Paul Stear wrote:


On Sunday 12 Mar 2006 13:06, Tito Valentin wrote:
 


Paul,

You could try it like this:

rsync -Cav --delete --progress /test -e ssh lkd5f:/test

Also, make sure that your other machine allows you to connect via ssh
...hope this helps
   

I tried it as you suggested but get the same errors.  I thought ssh was used 
by default.

How do I check if the remote machine allows ssh?

 


Paul Stear wrote:
   


Hi all,
I am trying to rsync to a remote server with the command:
rsync -Cav --delete --progress /test lkd5f:/test
but I get the following error messages:
ssh: connect to host lkd5f port 22: Connection refused
rsync: connection unexpectedly closed (0 bytes received so far) [sender]
rsync error: error in rsync protocol data stream (code 12) at io.c(434)

2 questions
1.  Should this command work?
2.  How do I prevent port 22 from refusing the connection?

I am a complete dunce with anything to do with remote machines so any help
will be greatly received

Paul
 



 


--
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] remote rsync

2006-03-12 Thread Paul Stear
On Sunday 12 Mar 2006 13:30, Tito Valentin wrote:
 Does the machine belong to you?  If so check if sshd is running like ps
 -eaf | grep ssh  If not, you may need to check with the Admin of the
 machine.  Also, your ip might be listed in the /etc/hosts.deny files to
 reject any unrecognized ip's.  You might need to be added to the
 hosts.allow.
snip
I should have said before .  The machine is not a machine as such it is a 
Network Storage Link for USB 2.0 disk drives. The disks are formatted ext3 
and windows identifies the unit as a windows NT 4.9 server !!!

All I want to do is copy files from my gentoo box to the usb disk via the 
network.

I have tried mounting the disks using cifs but this produced alot of errors,  
I feel that a direct connection command would be best.
In KDE I can copy files using Konqueror to lan://pc2/ which shows my 
device.homenet.com.  If I then click on the device I get 3 icons NFS SMB HTTP
If I click on SMB the location changes to smb://device.homenet.com and I can 
copy any files I want - even links seem to work

I'm sure there must be a simple answer to this

Paul

 Paul Stear wrote:
 Hi all,
 I am trying to rsync to a remote server with the command:
 rsync -Cav --delete --progress /test lkd5f:/test
 but I get the following error messages:
 ssh: connect to host lkd5f port 22: Connection refused
 rsync: connection unexpectedly closed (0 bytes received so far) [sender]
 rsync error: error in rsync protocol data stream (code 12) at io.c(434)
 
 2 questions
 1. Should this command work?
 2. How do I prevent port 22 from refusing the connection?
 
 I am a complete dunce with anything to do with remote machines so any
  help will be greatly received
 
 Paul

-- 
This message has been sent using kmail with gentoo linux
-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] remote rsync

2006-03-12 Thread Sascha Lucas

On Sun, 12 Mar 2006, Paul Stear wrote:


In KDE I can copy files using Konqueror to lan://pc2/ which shows my
device.homenet.com.  If I then click on the device I get 3 icons NFS SMB HTTP
If I click on SMB the location changes to smb://device.homenet.com and I can
copy any files I want - even links seem to work


you can use network filesystems NFS or SMB. Make sure you compiled support 
into your kernel.


then try:

mount -t smbfs //netbios_name_of_server_or_ip/name_of_share /local_dir

or

mount -t nfs dns_server_name_or_ip:/remote_dir /local_dir


rsync -Cav --delete --progress /test lkd5f:/test


after mount run:

rsync -Cav --delete --progress /test /local_dir

to use advantages of rsync, or just use cp etc.

Sascha.

--
gentoo-user@gentoo.org mailing list