can I use scp in same network(wifi) to send file

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??

1 Answer

Yes you can use SCP

But make sure you have ssh server running on both machine (install it if not installed)

sudo apt-get install openssh-server
6

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

You Might Also Like