Hello I saw that confusingly sftp requires -P, and ssh requires -p for the port number. Could they be standardised n -p ? and in the meantime, support both ? Regards, Jonny
Sorry, -p is already used in scp and sftp for another purpose. Changing its meaning would break >10 years of working scripts.
Maybe need a new letter, which is a standard that works across all Or even accept IP:port style?
-oPort=N works on both.
Darren, would the standard help be updated to show that instead?
-o is in the standard usage text for both sftp and scp. All of the arguments it can take are not because there are dozens of them and they're all documented in the man page.
Thinking like below. Likewise for SSH and SCP. usage: sftp [-1246aCfpqrv] [-B buffer_size] [-b batchfile] [-c cipher] [-D sftp_server_path] [-F ssh_config] [-i identity_file] [-l limit] [-o ssh_option] [-oPort=N] [-R num_requests] [-S program] [-s subsystem | sftp_server] host sftp [user@]host[:file ...] sftp [user@]host[:dir[/]] sftp -b batchfile [user@]ho
I don't think so, sorry.
closing resolved bugs as of 8.6p1 release