Re: use alternate port with SFTP

Max Barel <[email protected]> Tue, 16 Mar 2010 00:26:15 +0100
Newsgroups gmane.comp.web.sitecopy
Message-ID <[email protected]>
--===============1660457804==
Content-Type: multipart/alternative; boundary=Apple-Mail-3-478082720


--Apple-Mail-3-478082720
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain;
	charset=windows-1252

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

Max




Le 15 mars 2010 =E0 19:31, Neil Cherry a =E9crit :

> 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:
>>=20
>>> Try rcp "sftp -oPort=3D21"=20
>>> in .sitecopyrc. "password" and "port" directives are ignored.
>>=20
>> 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 (!=3D22)
>>=20
>=20
> 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).
>=20
> --=20
> Linux Home Automation         Neil Cherry       [email protected]
> http://www.linuxha.com/                         Main site
> http://linuxha.blogspot.com/                    My HA Blog
> Author of:    	Linux Smart Homes For Dummies


--Apple-Mail-3-478082720
Content-Transfer-Encoding: quoted-printable
Content-Type: text/html;
	charset=windows-1252

<html><head></head><body style=3D"word-wrap: break-word; =
-webkit-nbsp-mode: space; -webkit-line-break: after-white-space; =
">Thanks Neil,<div>I'll look at it soon since all my scripts use =
sitecopy=85</div><div>I'll post here the patch if I =
succeed.</div><div><br><div><span class=3D"Apple-style-span" =
style=3D"border-collapse: separate; color: rgb(0, 0, 0); font-family: =
Verdana; font-size: 12px; font-style: normal; font-variant: normal; =
font-weight: normal; letter-spacing: normal; line-height: normal; =
orphans: 2; text-align: auto; text-indent: 0px; text-transform: none; =
white-space: normal; widows: 2; word-spacing: 0px; =
-webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: =
0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: =
auto; -webkit-text-stroke-width: 0; "><span class=3D"Apple-style-span" =
style=3D"border-collapse: separate; color: rgb(0, 0, 0); font-family: =
Verdana; font-size: 12px; font-style: normal; font-variant: normal; =
font-weight: normal; letter-spacing: normal; line-height: normal; =
orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; =
widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; =
-webkit-border-vertical-spacing: 0px; =
-webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: =
auto; -webkit-text-stroke-width: 0px; "><div style=3D"word-wrap: =
break-word; -webkit-nbsp-mode: space; -webkit-line-break: =
after-white-space; "><div><p style=3D"margin-top: 7px; margin-right: =
0px; margin-bottom: 0px; margin-left: 0px; "><font face=3D"Verdana" =
size=3D"3" style=3D"font: normal normal normal 12px/normal Verdana; =
">Max</font></p><br =
class=3D"Apple-interchange-newline"></div></div></span><br =
class=3D"Apple-interchange-newline"></span><br =
class=3D"Apple-interchange-newline">
</div>
<br><div><div>Le 15 mars 2010 =E0 19:31, Neil Cherry a =E9crit =
:</div><br class=3D"Apple-interchange-newline"><blockquote =
type=3D"cite"><div>On 03/10/2010 02:12 PM, Max Barel =
wrote:<br><blockquote type=3D"cite">Hi list,<br></blockquote><blockquote =
type=3D"cite">While searching for the question in title, I found this =
old reply from Nobuyuki Tsuchimura:<br></blockquote><blockquote =
type=3D"cite"><br></blockquote><blockquote type=3D"cite"><blockquote =
type=3D"cite">Try rcp "sftp -oPort=3D21" =
<br></blockquote></blockquote><blockquote type=3D"cite"><blockquote =
type=3D"cite">in .sitecopyrc. "password" and "port" directives are =
ignored.<br></blockquote></blockquote><blockquote =
type=3D"cite"><br></blockquote><blockquote type=3D"cite">I tried it but =
it doesn't works maybe because it must not be used with "protocol =
sftp".<br></blockquote><blockquote type=3D"cite">Can someone tell if =
it's possible at all to use sftp on alternate port =
(!=3D22)<br></blockquote><blockquote =
type=3D"cite"><br></blockquote><br>Yes, it's possible but it will =
require a rewrite of the sftpdriver.c<br>init() function such that you =
can pass the port number to sftp<br>(change the line from sftp to sftp =
-o port %s for example).<br><br>-- <br>Linux Home Automation =
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Neil Cherry =
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a =
href=3D"mailto:[email protected]">[email protected]</a><br><a =
href=3D"http://www.linuxha.com/">http://www.linuxha.com/</a> =
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n=
bsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Main=
 site<br><a =
href=3D"http://linuxha.blogspot.com/">http://linuxha.blogspot.com/</a> =
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n=
bsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;My HA Blog<br>Author of: =
&nbsp;&nbsp;&nbsp;<span class=3D"Apple-tab-span" =
style=3D"white-space:pre">	</span>Linux Smart Homes For =
Dummies<br></div></blockquote></div><br></div></body></html>=

--Apple-Mail-3-478082720--


--===============1660457804==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
sitecopy mailing list
[email protected]
http://lists.manyfish.co.uk/mailman/listinfo/sitecopy

--===============1660457804==--