I can successfully connect to my server via ssh but when trying to run the scp command I get a connection time out.
$ scp ~/.ssh/id_rsa.pub [email protected]:id_rsa.pub
ssh: connect to host 192.168.12.2 port 22: Connection timed out
lost connection
Yes I do have openssh-client and openssh-server installed on both my machines the client and the server.
My router is also configured to forward ssh port 22 and no I don't have a firewall enabled.