# 1.需要(git )bash
# 2.如没有没pub文件，使用bash本地生成公私钥对: ssh-keygen;
# 3.ssh-copy-id上传公钥到服务器: ssh-copy-id -i C:/Users/dell/.ssh/id_rsa.pub root@47.99.88.168
# 4.测试: test with 'ssh root@47.99.88.168'
# 如果依然需要密码
#    vim /etc/ssh/ssh_config
#    修改
#    Host *
#         RSAAuthentication yes
#         PubkeyAuthentication yes
#         GSSAPIAuthentication yes
#    其中，RSAAuthentication yes 与 PubkeyAuthentication yes 是本文件的新增内容。
mv dist gocsmb
tar -czf gocsmb.tar gocsmb
rm -rf gocsmb
scp gocsmb.tar root@120.26.174.69:/usr/share/nginx/html/gocsmb.tar
rm -rf gocsmb.tar
ssh root@120.26.174.69 'cd /usr/share/nginx/html && rm -rf gocsmb && tar -xzf gocsmb.tar && rm -rf gocsmb.tar'
echo 'done. 👉 http://120.26.174.69:9091'