Copy file with scp command - Raspberry Pi Forums


trying copy file rpi pc:

$ scp myfile.pdf user@192.168.0.83:~

ssh: connect host 192.168.0.83 port 22: connection refused

lost connection
when copying same file pc works fine:

$ scp pi@192.168.0.82:/home/pi/downloads/magpi46.pdf /home/user/desktop/
pi@192.168.0.82's password:
magpi46.pdf 100% 21mb 1.0mb/s 00:21
there reason why file can copied pc pc , not rpi pc ?

you don't have openssh-server installed on pc (only client installed). install using distro's software/package manager, or following cli quickie:

code: select all

sudo apt-get install openssh-server


raspberrypi



Comments