LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (http://www.linuxquestions.org/questions/linux-software-2/)
-   -   SSH from windows to linux not working (http://www.linuxquestions.org/questions/linux-software-2/ssh-from-windows-to-linux-not-working-264102/)

hamish 12-08-2004 02:01 PM

SSH from windows to linux not working
 
Hello

I'm in the processing of rsyncing between windows to my linux server.

I downloaded rsync from http://optics.ph.unimelb.edu.au/help...sync_pc1.html. It runs in command line from windows.

When I try and ssh into my linux server from windows, I get errors. I have put them here for you to see:
http://hamishnet.homelinux.com/~pub/ssh_errors.gif

THe local machine is called "archimedes" and the server is at 10.0.0.2

It seems to be able to establish the connection, but the server doesn't send a key. Is htis because the local version is older (1.2.26) than the server (OpenSSH 3.7.1p2)?

Thanks
Hamish

jmercier 12-08-2004 02:54 PM

sshd config.
 
Does your sshd accept version 1 keys?

Have you tried out cwRsync ? I use this for all my xp/2k --> Linux backups. It packages sshd/rsync into an installable package. Which is a little more updated than v1 ssh.


Justin

hamish 12-08-2004 03:01 PM

hey

do you need to install cygwin to install cwRsync?

hamish

jmercier 12-08-2004 03:08 PM

yes.
 
cygwin is included in the install.

Its in a nice neat package with everything needed to run rsync | ssh. :-)

Justin

hamish 12-08-2004 03:37 PM

it is a good package. I'm just having some problems configuring it.

I can move local files about, not probs, but I tried going over SSH to my server, and got a error. It says that it can't find the config file.

Therefore, I told it where it was, but that didn't work either. The error is here:
http://hamishnet.homelinux.com/~pub/cw_error.gif

One thing I haven't done is change my password and username from the default one given when the programme installed. I couldn't find where to do this.

My rsyncd.conf file is this:
Code:

use chroot = false
strict modes = false
hosts allow = *
log file = rsyncd.log
pid file = rsyncd.pid

# Module definitions
# Remember cygwin naming conventions : c:\work becomes /cygwin/c/work
#
[test]
path = /Program\ Files/cwrsnc/test
transfer logging = yes

Do i need to start the rsync daemon before I can transfer to the server?

Can you give me any hints, or show me your config file.?

I have looked at the how-to, but I dont' see my problem.

Regards,
Hamish

jmercier 12-08-2004 03:51 PM

..
 
You dont need rsyncd.conf for the client side(your windows box)

Its executed similar to your other ssh implementation.

example from the windows side, to backup all of C.

Code:

rsync -avH -e ssh /cygdrive/c user@rsyncserver:/dir

hamish 12-08-2004 03:55 PM

EDIT:

It is working now.

Solution: correct line should be rsync -e ssh -av hamish@10.0.0.2:~/rsync1

I havd two coloms (::) first time, and only one second time.

Sorry.

So the rsyncd.conf file is ONLY used by the daemon, that is, if you want to set the windows box up the server and the linux as the client. It isn't used if the linux box is the server?

Hamish

hamish 12-08-2004 03:56 PM

we must have posted at the same time :)

thanks


All times are GMT -5. The time now is 12:48 AM.