pm2 deploy with ssh

1. login remote server without password

ssh-copy-id  name@server.com

2.generate ssh key on server

ssh-keygen - t rsa

3. copy the server ssh key to the git deploy key

4. add gitlab to the know host

ssh-keyscan -t rsa gitlab.com >> ~/.ssh/known_hosts

 

posted @ 2018-11-11 14:04  ybleeho  阅读(441)  评论(0编辑  收藏  举报