Use the following commands to check/start/stop ssh service on the target computer(from here):
1 | sudo service ssh status |
On the destination computer, make sure you have “scp” command available and run the following command to copy files to the target computer for example:
1 | scp -pr /home/duser/下载/work tuser@target_computer_ip:/home/tuser/下载 |
And also, you can copy multiple files in one command like below(from here):
1 | scp root@10.247.103.124:/cisco-sim/bin/\{endrc,aliasrc,exitrc,configrc,zonesetrc,show.sh,memberrc,zonerc,norc\} . |