use alternate port with SFTP

Max Barel max at ac-mb.info
Mon Mar 15 19:26:15 EDT 2010


Thanks Neil,
I'll look at it soon since all my scripts use sitecopy…
I'll post here the patch if I succeed.

Max




Le 15 mars 2010 à 19:31, Neil Cherry a écrit :

> On 03/10/2010 02:12 PM, Max Barel wrote:
>> Hi list,
>> While searching for the question in title, I found this old reply from Nobuyuki Tsuchimura:
>> 
>>> Try rcp "sftp -oPort=21" 
>>> in .sitecopyrc. "password" and "port" directives are ignored.
>> 
>> I tried it but it doesn't works maybe because it must not be used with "protocol sftp".
>> Can someone tell if it's possible at all to use sftp on alternate port (!=22)
>> 
> 
> Yes, it's possible but it will require a rewrite of the sftpdriver.c
> init() function such that you can pass the port number to sftp
> (change the line from sftp to sftp -o port %s for example).
> 
> -- 
> Linux Home Automation         Neil Cherry       ncherry at linuxha.com
> http://www.linuxha.com/                         Main site
> http://linuxha.blogspot.com/                    My HA Blog
> Author of:    	Linux Smart Homes For Dummies

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.manyfish.co.uk/pipermail/sitecopy/attachments/20100316/0dea5cac/attachment.html 


More information about the sitecopy mailing list