https://github.com/mamoruds/ws-212s
ssh config
https://github.com/mamoruds/ws-212s
Last synced: 4 months ago
JSON representation
ssh config
- Host: GitHub
- URL: https://github.com/mamoruds/ws-212s
- Owner: MamoruDS
- Created: 2021-03-04T16:08:29.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2021-11-16T14:30:44.000Z (over 3 years ago)
- Last Synced: 2025-01-03T16:29:30.183Z (6 months ago)
- Language: TypeScript
- Size: 21.5 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# ws-212S
```javascript
// hosts.js
const sshconf = require('./dist/main')sshconf.config.defaultUser = 'uname'
sshconf.config.allowPassword = falseconst hosts = new sshconf.Hosts()
hosts.add('VPS', {
host: 'server.your.hostname',
user: 'remote',
acceptKeys: ['id_rsa'],
allowPassword: false,
strictHostKeyChecking: false,
comment: 'vps @server.your.hostname',
})hosts.add('PI', {
host: '10.0.1.1',
allowPassword: false,
strictHostKeyChecking: false,
comment: 'raspberry pi',
})console.log(JSON.stringify(hosts.dump()))
``````
node hosts.js > hosts.json
```