set up ssh
sh
vim /etc/ssh/sshd_config
PasswordAuthentication no
ChallengeResponseAuthentication no
UsePAM no
chmod 700 .ssh
chmod 600 .ssh/*vim /etc/ssh/sshd_config
PasswordAuthentication no
ChallengeResponseAuthentication no
UsePAM no
chmod 700 .ssh
chmod 600 .ssh/*on windows use psftp
sh
open root@vmdev
put xxx/id_rsa.pub
cat id_rsa.pub >> ~/.ssh/authorized_keysopen root@vmdev
put xxx/id_rsa.pub
cat id_rsa.pub >> ~/.ssh/authorized_keysuse scp
从本地拷贝到远程服务器
sh
scp -r xxx root@xxx:/rootscp -r xxx root@xxx:/root从远程服务器下载
sh
scp -r root@xxx:/root xxxscp -r root@xxx:/root xxxif you are user group and you have root
sh
chmod 777 -Rf xxxchmod 777 -Rf xxx