[CentOS] Running SSH on a different port

Les Mikesell lesmikesell at gmail.com
Sun Oct 25 16:26:02 UTC 2009


Gilbert Sebenste wrote:
> On Sat, 24 Oct 2009, Philip Gwyn wrote:
> 
>> On 24-Oct-2009 Oliver Ransom wrote:
>>> I don't think there are any ramifications/disadvantages of running the
>>> SSH daemon on a non standard port.
> 
> Unless I want to sftp. It always looks for port 22; if I do:
> 
> sftp SERVER
> 
> It will deny me if SERVER is anything but port 22. Doing a man sftp yields 
> no help on how to solve that. Any ideas?

I usually prefer rsync over ssh for file transfers where possible.  There it 
would be rsync -e 'ssh -p nnn' ....

-- 
   Les Mikesell
    lesmikesell at gmail.com



More information about the CentOS mailing list