SSH client connection library can be use when you don't want to share your server's password but you need to give access to user / developer.
- git clone https://github.com/ankitvadariya/ssh-client-connection.git
- cd ssh-client-connection
- npm install or yarn install
- add server detail in server.js
host: "YOUR_HOST",
port: PORT, // Generally 22 but some server have diffrent port for security Reson
username: "USER", // any user
password: "PASSWORD" // Set password or use PrivateKey
privateKey: require("fs").readFileSync("PATH OF KEY FILE")
- yarn start
- I would like to recommand SSL if you are going to use on live envirment.
- Please use it with your own risk.
- feel free to contact me: iam@ankitvadariya.com