Welcome! » Log In » Create A New Profile

Using rdiff-backup with ssh that runs on a nonstandard port

Posted by Anonymous 
Using rdiff-backup with ssh that runs on a nonstandard port
April 13, 2004 12:05PM
Hello folks, I am trying to use rdiff-backup with ssh on a nonstandard port.
I tried in my backup script:

alias ssh=ssh -p 2021

I also tried creating a script named ssh containing the command:

/usr/bin/ssh $1 $2 $3 $4 $5

in a directory which preceded /usr/bin in the PATH

I am not a python programmer at all, but I also tried changing
the line:
__cmd_schema = 'ssh %s rdiff-backup --server'
in /usr/bin/rdiff-backup to
__cmd_schema = 'ssh -p 2021 %s rdiff-backup --server'

All of this to no avail. Does anyone know if there is a solution to this
problem?

Many thanks,

Rohit

PS: I am running Debian / Woody which comes with rdiff-backup 0.6.0-1
Using rdiff-backup with ssh that runs on a nonstandard port
April 13, 2004 12:13PM
use .ssh/config ... with something like:

host foobar-nonstandard
hostname foobar
port 2021

then rdiff-backup to/from foobar-nonstandard::

-dean

On Tue, 13 Apr 2004, Rohit Kumar Mehta wrote:

[quote]
Hello folks, I am trying to use rdiff-backup with ssh on a nonstandard port.
I tried in my backup script:

alias ssh=ssh -p 2021

I also tried creating a script named ssh containing the command:

/usr/bin/ssh $1 $2 $3 $4 $5

in a directory which preceded /usr/bin in the PATH

I am not a python programmer at all, but I also tried changing
the line:
__cmd_schema = 'ssh %s rdiff-backup --server'
in /usr/bin/rdiff-backup to
__cmd_schema = 'ssh -p 2021 %s rdiff-backup --server'

All of this to no avail. Does anyone know if there is a solution to this
problem?

Many thanks,

Rohit

PS: I am running Debian / Woody which comes with rdiff-backup 0.6.0-1

_______________________________________________
rdiff-backup-users mailing list at rdiff-backup-users < at > nongnu.org
http://mail.nongnu.org/mailman/listinfo/rdiff-backup-users
Wiki URL: http://rdiff-backup.solutionsfirst.com.au/index.php/RdiffBackupWiki
[/quote]
Using rdiff-backup with ssh that runs on a nonstandard port
April 13, 2004 01:05PM
That was a useful suggestion. I did what you said, and now
"ssh mytargetmachine" does in fact use the new port.
However rdiff-backup still fails with all kinds of error messages :(
It works fine on standard (22) port.

Rohit

dean gaudet wrote:

[quote]use .ssh/config ... with something like:

host foobar-nonstandard
hostname foobar
port 2021

then rdiff-backup to/from foobar-nonstandard::

-dean

On Tue, 13 Apr 2004, Rohit Kumar Mehta wrote:

[quote]Hello folks, I am trying to use rdiff-backup with ssh on a nonstandard port.
I tried in my backup script:

alias ssh=ssh -p 2021

I also tried creating a script named ssh containing the command:

/usr/bin/ssh $1 $2 $3 $4 $5

in a directory which preceded /usr/bin in the PATH

I am not a python programmer at all, but I also tried changing
the line:
__cmd_schema = 'ssh %s rdiff-backup --server'
in /usr/bin/rdiff-backup to
__cmd_schema = 'ssh -p 2021 %s rdiff-backup --server'

All of this to no avail. Does anyone know if there is a solution to this
problem?

Many thanks,

Rohit

PS: I am running Debian / Woody which comes with rdiff-backup 0.6.0-1

_______________________________________________
rdiff-backup-users mailing list at rdiff-backup-users < at > nongnu.org
http://mail.nongnu.org/mailman/listinfo/rdiff-backup-users
Wiki URL: http://rdiff-backup.solutionsfirst.com.au/index.php/RdiffBackupWiki

[/quote][/quote]
Sorry, only registered users may post in this forum.

Click here to login