摘要: ## 命令 ``` # scp -i 密钥 本地地址 远程地址 scp -i ~/.ssh/pub.pem -r folder root@100.100.0.100 ``` ## 说明 ``` -1: 强制scp命令使用协议ssh1 -2: 强制scp命令使用协议ssh2 -4: 强制scp命令只使 阅读全文
posted @ 2023-06-05 17:58 hziwei 阅读(4) 评论(0) 推荐(0) 编辑
摘要: * script.sh ``` root_dir=$(cd $(dirname $0); pwd) cd $(dirname "$root_dir") ``` 阅读全文
posted @ 2023-06-05 15:39 hziwei 阅读(3) 评论(0) 推荐(0) 编辑