você usa uma porta alternativa com ssh -p 2122
, mas não com scp
.
tente
sshpass -p 'myPass' scp -P 2122 ~/myDir/testPB.txt [email protected]:/chroot/tomcat/testPB
por favor note maiúsculas P
como por man scp
-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).