This topic created in 2956 days ago, the information mentioned may be changed or developed.
趁着十一入手一台搬瓦工小鸡,寻思着搭个博客,选了 hexo 方案,最后部署的时候总说 22 端口连不上,因为服务器的 ssh 端口不是 22,好像还改不了,而部署的时候看样子又是默认按照 22 端口去 ssh 的,那该怎么改这个端口配置呢?
4 replies • 2020-02-24 11:04:10 +08:00
 |
|
rsync 的话有个 port 选项 git 就在 ssh config 里设置
|
 |
|
在 _config.yml 里添加
deploy: □□type: git □□repo: ssh://username@ip:port/path/to/remote/git □□branch: master
|