[CentOS] Running SSH on a different port
lorenzo.quatrini at gmail.com
Mon Oct 26 20:06:28 UTC 2009
2009/10/25 Les Mikesell <lesmikesell at gmail.com>:
> 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' ....
Also, you coud set up the port on /etc/ssh/ssh_config for the name/ip
of the target machine, so you don't need to type "-o Port xxx" or "-p
xxx" every time.
The downside is that you forget the port over time, not using it.
More information about the CentOS