1.拷贝文件夹全部内容
scp -r [本机文件夹路径] [对方服务器用户名]@[对方服务器ip地址]:[对方服务器文件夹路径]
eg:
sudo scp -r /home/jd/.conda/envs/diffan/ jd@172.21.13.234:/home/jd/.conda/envs/diffan/
2.拷贝单个文件
scp [本机文件夹路径] [对方服务器用户名]@[对方服务器ip地址]:[对方服务器文件夹路径]
eg:
sudo scp /home/jd/.conda/envs/diffan.txt jd@172.21.13.234:/home/jd/.conda/envs/diffan