I replaced my actual numbers with x
's for security.
I have a strange situation. I've setup a ssh server and I can ssh into it with no problem. e.g
ssh -p xxxxx email@example.com
However, if I try to use scp to copy a file on my computer to the ssh server. it won't allow me.
scp some_file -P xxxxx firstname.lastname@example.org:/home/redneck
ssh: connect to host 192.168.x.xxx port 22: Connection refused
Funny thing is my port on the ssh server is not 22, it is a 5 digit number. I've checked the man page on scp and the capital P is use for port number, so I don't know why scp thinks the port on the server is 22 which is not and why I can connect ok with ssh but not copy to the server with scp.