Переключатель для установки порта в scp — верхний -корпус-P
-P port
Specifies the port to connect to on the remote host. Note that
this option is written with a capital ‘P’, because -p is already
reserved for preserving the times and modes of the file in
rcp(1).
-p Preserves modification times, access times, and modes from the
original file.
Нижний -случай -p
не принимает аргумент, поэтому 10012
рассматривается как дополнительная последовательность опций; параметры -1
и -2
являются допустимыми параметрами (, управляющими протоколом SSH ), но -0
не являются -, отсюда и ошибка.