while reading about file transter
in linux
I got:
We can also move files securely using Secure Copy (scp) between two networked hosts. scp uses the SSH protocol for transferring data.
To copy a local file to a remote system, at the command prompt, type scp :/home/user/ and press Enter.
and I tried this on one of me peer(in same wifi connection) and I got:
anupam@JAZZ:~$ scp data.txt divesh@192.168.1.2:Desktop/
ssh: connect to host 192.168.1.2 port 22: Connection refused
lost connection
anupam@JAZZ:~$ ssh -p 10022 divesh@192.168.1.2
ssh: connect to host 192.168.1.2 port 10022: Connection refused
anupam@JAZZ:~$ ssh -p 10022 divesh@192.168.1.2
ssh: connect to host 192.168.1.2 port 10022: Connection refused
anupam@JAZZ:~$
how can I resolve this??