ssh [username@][/path/]
ssh 可以远程登录ssh协议的主机
https://www.runoob.com/w3cnote/set-ssh-login-key.html
开启ssh服务
在终端界面中输入”vi /etc/ssh/sshd_config”。将#PasswordAuthentication yes的注释去掉
输入命令”service ssh start或/etc/init.d/ssh start”。启动ssh服务。
scp
scp免密传输文件
cd ~/.ssh
ssh-keygen -t rsa
scp id_rsa.pub username@ip:~/.ssh
cat id_rsa.pub >>authorized_keys
chmod 600 authorized_keys
https://linuxtools-rst.readthedocs.io/zh_CN/latest/tool/scp.html
https://blog.csdn.net/COCOLI_BK/article/details/90054236