1. 程式人生 > >pm2 deploy with ssh

pm2 deploy with ssh

log one type ssh ict amp gitlab http with

1. login remote server without password

ssh-copy-id [email protected]

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

pm2 deploy with ssh