On Thu, Mar 09, 2023 at 12:47:14PM +0100, Daniele Bonini wrote:
> 
> I'm wondering if there is any chance to change the default
> listening port for sftp-server.
> 
> NB: I'm using it on my Linoox VPS but I see from the man
> a given OpenBSD 2.8 port origin.

it is indeed possible to change the listening port. It's all in the man
page. My immediate question would be, why would you want to?

For a truly unhelpful interlude, I offer

[Thu Mar 09 13:07:40] peter@skapet:~$ grep sftp /etc/services
sftp            115/tcp

or on a nearby mac,

[Thu Mar 09 13:08:14] peter@Peters-MacBook-Pro:~$ grep sftp /etc/services
sftp            115/udp     # Simple File Transfer Protocol
sftp            115/tcp     # Simple File Transfer Protocol
utsftp          2529/udp    # UTS FTP
utsftp          2529/tcp    # UTS FTP

which hints strongly at the historical "Simple File Transfer Protocol",
described in RF913, dated September 1984 (and it is likely not what 
you want. At all).

For the actual steps involved in setting up your sshd with sftp-server,
this guide looks at first blush fairly sane: 
https://linuxhandbook.com/sftp-server-setup/

Further to the "why would you want to?" issue, I offer this from the
Hail Mary Cloud cycle: 
https://bsdly.blogspot.com/2013/02/theres-no-protection-in-high-ports.html


-- 
Peter N. M. Hansteen, member of the first RFC 1149 implementation team
https://bsdly.blogspot.com/ https://www.bsdly.net/ https://www.nuug.no/
"Remember to set the evil bit on all malicious network traffic"
delilah spamd[29949]: 85.152.224.147: disconnected after 42673 seconds.

Reply via email to