So i recently updated my server from 10.04 to 12.04. I had a script that I used to backup and sync my music from my laptop to the server
Code:
#!/bin/sh
LOCALDIR=/home/djyoung4/Music/
REMOTEDIR=/mnt/Storage1/Music/
SERVER=192.168.1.102
echo Syncing with $SERVER
echo Sending...
rsync --rsh=ssh -aizuKL $LOCALDIR home@$SERVER:$REMOTEDIR
echo Fetching...
rsync --rsh=ssh -aizuKL home@$SERVER:$REMOTEDIR $LOCALDIR
notify-send sync done
exit
with the update to 12.04 I cannot get the script to work correctly. I keep getting a connection refused port 22 closed
Code:
[djyoung4@archbang Documents]$ sh Musicsync.sh
Syncing with 192.168.1.102
Sending...
ssh: connect to host 192.168.1.102 port 22: Connection refused
rsync: connection unexpectedly closed (0 bytes received so far) [sender]
rsync error: unexplained error (code 255) at io.c(605) [sender=3.0.9]
Fetching...
ssh: connect to host 192.168.1.102 port 22: Connection refused
rsync: connection unexpectedly closed (0 bytes received so far) [Receiver]
rsync error: unexplained error (code 255) at io.c(605) [Receiver=3.0.9]
rsync and openssh are installed on both machines and googling has turned up nothing so far. any ideas?
I can vnc into the box no problem
Bookmarks