Ah, sorry I wasn't too clear in my first post, thanks for clarifying.

Unfortunately I can't change the sshd_config, going to have to work
around it for the moment.

Is this something that is likely to get fixed?

Ty

On 30 August 2011 08:33, Benjamin R. Haskell <[email protected]> wrote:
> On Tue, 30 Aug 2011, Charles Campbell wrote:
>
>> guyht wrote:
>>>
>>> I am experiencing a bug where Explorer does not honour a port number when
>>> editing files over SCP.
>>>
>>> To reproduce
>>>
>>> Open a directory over scp (gvim scp://user@domain:1234//home/user/)
>>>
>>> Files and directories listed as expected...
>>>
>>> Open a file
>>>
>>> vim ignores the port number and attempts to edit the file at
>>> scp://user@domain:22//home/user/file.txt
>>>
>>
>> Hello,
>>
>> The machines I use to test netrw+scp use port#22, so what I did was
>>
>>  scp://user@domain:22//home/user/somefile
>>
>> This worked, giving me the contents of the file.
>>
>>  scp://user@domain:32//home/user/somefile
>>
>> This does not work.  The "22" was extracted properly by NetrwMethod() from
>> the first example I gave above.  So, I cannot seem to duplicate your problem
>> and will need your help.  Please read :help netrw-debug to generate a
>> debugging trace when you attempt to open a file via the non-default port
>> number.
>
> It appears we both missed something, as I also thought this was a
> "worksforme".
>
> The problem is not with opening an individual file.  It only occurs when
> opening a file from the directory listing.
>
> If I open:
>
> scp://[email protected]:443//home/bhaskell/
>
> The listing is appropriately routed via port 443 (which I use as a
> workaround for firewalls that block SSH port 22, but not HTTPS port 443).
>
> But, if I hit Enter on .vimrc in that directory, it opens:
>
> scp://[email protected]//home/bhaskell/.vimrc
>
> (falling back to the default port, not port 443)
>
> I'm using Netrw v141n
>
> If you're in control of any of your test machines, you can simply add a
> second 'Port' line to /etc/ssh/sshd_config and restart sshd.
>
> E.g. to listen on both 22 and 443:
> Port 22
> Port 443
>
> --
> Best,
> Ben
>
> --
> You received this message from the "vim_dev" maillist.
> Do not top-post! Type your reply below the text you are replying to.
> For more information, visit http://www.vim.org/maillist.php
>



-- 
Guy Halford-Thompson
Blog                  - http://www.cach.me/blog
Twitter               - https://twitter.com/mrwooster
Google Plus       - http://gplus.name/guy

-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

Raspunde prin e-mail lui