mirror of
https://github.com/electerm/electerm-web.git
synced 2026-04-25 05:45:55 +03:00
2
Init from url query string
ZHAO Xudong edited this page 2023-11-06 09:23:42 +08:00
const init = {
title: 'my init terminal',
user: 'root',
password: 'some-password',
host: 'xx.com',
// batchOpFile: '/abs/path/to/batch-op-list.csv',
// path: '/abs/path/to/private-key',
// passphrase: 'some-passphrase for private key',
// setEnv: 'MYENV=xxx MYENV2=yyy',
// sftpOnly: false // sftpOnly
}
const q = encodeURIComponent(JSON.stringify(init))
const url = `http://127.0.0.1:5577?init=${q}`