duplicity-talk
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Duplicity-talk] Alternate Port Problem


From: edgar . soldin
Subject: Re: [Duplicity-talk] Alternate Port Problem
Date: Mon, 27 Oct 2008 15:04:23 +0100
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.17) Gecko/20080914 Thunderbird/2.0.0.17 Mnenhy/0.7.5.0

Hi Jon,

you might try *--ssh-options="-p 2222"
or
even more elegant, especially necessary if there are ssh daemons running on different ports on the same machine (e.g. forwarded port to internal server on dsl router w/ sshd):
(create &) modify ~/.ssh/config, add the following

host unique_name_here
hostname ip_or_hostname_here
Port 2222
UserKnownHostsFile ~/.ssh/uniqefilename

now on the next ssh connection simply use the **entered _unique_name_ *
*
which additionally solves "strict checking" error where the Host key verification fails. Of course you could disable strict checking ;) but why open security holes if you can work around it.

hope that helped ..ede
--

*
Hi All,

I've searched the archives and found only one post dealing with
alternate ports and it didn't seem to contain the info I am looking for.

For months now I have been using duplicity/scp to perform archive
deletion like so:

/usr/bin/duplicity remove-older-than 14D --force scp://address@hidden/backup

I want to move my backups to another server now and the new server has
SSH running on port 2222 rather than 22. I have attempted various
incarnations of:

/usr/bin/duplicity remove-older-than 14D --force
scp://address@hidden:2222//backup

But it fails with this error (on -v9):

Main action: remove-old
Running 'sftp  -oPort=2222 address@hidden:2222' (attempt #1)
State = sftp, Before = 'Connecting to server...
RSA host key for IP address '208.100.7.145' not in list of known hosts.
Couldn't stat remote file:'
Remote file or directory '/backup' does not exist

The /backup directory does exist:

sh address@hidden -p2222  ls -dal /backup
RSA host key for IP address '208.100.7.145' not in list of known hosts.
drwxr-xr-x 3 root root 4096 Oct 27 10:00 /backup

And my user in this case is root so I know I have perms for it.

Can someone shed some light for me on where I am going wrong?

Thanks,

Jon




_______________________________________________
Duplicity-talk mailing list
address@hidden
http://lists.nongnu.org/mailman/listinfo/duplicity-talk





reply via email to

[Prev in Thread] Current Thread [Next in Thread]