On Wed, 31 Aug 2011, Lech Lorens wrote:

On 31 August 2011 05:46, Guy Halford-Thompson wrote:
Unfortunately I can't change the sshd_config, going to have to work around it for the moment.

With regard to your problem, you can probably work it around by specifying in your ~/.ssh/config that the server you are connecting to uses a non-default port. It would be something like (I'm writing from memory, forgive me if I'm wrong. Check out "man ssh_config"):

Host your.server.ip.or.name.com
Port 1234

For me personally it would actually be much more convenient than having to specify the port during every scp/ssh invocation.

Yes.  That's a good workaround.

Even better would be to give your.server.ip.or.name.com a shorter name.

For example, I have something like:

        Host home
        HostName your.server.ip.or.name.com
        Port 443

Then the very short 'scp://home/.vimrc' is my .vimrc in my home dir on your.server.ip.or.name.com over port 443

And the shortname is available via OpenSSH commands:

        ssh home
        scp file1 file2 home:

--
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

Raspunde prin e-mail lui