Page 1 of 1

Backup over non-native ssh port

Posted: 10 Jul 2010, 15:45
by as@seem.nu
I have convinced my brother to buy a Bubba2 for his storage and backup needs. Now we are trying to setup remote backup over ssh to each others Bubba. I don't want to have port 22 open, to avoid detection by all th eport sniffers out there. For my other ssh needs I use high port numbers that are translated by my NAT firewall to port 22 on the inside.

I have tried to set up a backup job over ssh, mut the admin backup config does not allow any host notation inkluding the port number, like ip:portno or ip.portno. Is there any way configure the ssh backup (scp really) to use another port for copying data to h remote host?


cheers

aseem

Re: Backup over non-native ssh port

Posted: 10 Jul 2010, 16:04
by RandomUsername
I assume when you try adding something like hostname:port you get an invalid character error. You could try directly editing the job file. I haven't used the B2's built in backup utility in a while so I can't remember where they are exactly. Will have a look now and edit this post if I find them.

Re: Backup over non-native ssh port

Posted: 10 Jul 2010, 17:56
by as@seem.nu
Yes, thats right. I get illegal character error. I have tried to edit the jobfile directly but to no use. I tried different variants on the address, but also edited the (Edit:)target protocol to "scp -P xxxx"

E

Re: Backup over non-native ssh port

Posted: 12 Jul 2010, 09:16
by as@seem.nu
Just an update. since duplicity is used for these backup jobs, I have tried to pass params to duplicity through the 'target protocol' field in the jobdata file, but to luck. My only solution this far is to hard code the port number in the /etc/ssh/ssh_config file. I don't think this bubba will be used for any other outgoing ssh sessions, so this will have to do for now.

If you come up with a solution, I'd be glad to hear about it.



cheers