Note: I replaced my actual numbers with
x's for security.
Howdy
I have a strange situation. I've setup a ssh server and I can ssh into it with no problem. e.g
Code:
ssh -p xxxxx redneck@192.168.x.xxx
However, if I try to use scp to copy a file on my computer to the ssh server. it won't allow me.
Code:
scp some_file -P xxxxx redneck@192.168.x.xxx:/home/redneck
ssh: connect to host 192.168.x.xxx port 22: Connection refused
lost connection
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.
Any ideas