Linux transfer files or folders

SCP command

usage: scp [-346BCpqrv] [-c cipher] [-F ssh_config] [-i identity_file]
           [-l limit] [-o ssh_option] [-P port] [-S program]
           [[user@]host1:]file1 ... [[user@]host2:]file2

 A transfer from the server to the file server B

local file path SCP {} {} username @ server server {ip}: {} save server path

  

An error

1: a connection rejection

ssh: connect to host 192.168.136.134 port 22: Connection refused
lost connection

  No ssh enabled server B

Install ssh server

sudo apt install openssh-server

View Status

sudo service ssh status

  

Guess you like

Origin www.cnblogs.com/8000cabbage/p/12334287.html