Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
zhulj committed Jun 8, 2022
1 parent 720f2c0 commit fee26a2
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 21 deletions.
7 changes: 1 addition & 6 deletions server/app/config/storage/host-list.json
Original file line number Diff line number Diff line change
@@ -1,6 +1 @@
[
{
"host": "localhost",
"name": "local"
}
]
[]
6 changes: 3 additions & 3 deletions server/app/config/storage/key.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"pwd": "admin",
"jwtExpires": "1h",
"jwtSecret": "E54CEp8AphsSthhyE36EYjzk4R2FWTJH",
"publicKey": "-----BEGIN PUBLIC KEY-----\nMIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCaozBBZnKSH0ZigZg+kQxG/lWV\np+lppeCGFwuLFTwc49eborW1zR9zlhIwXdrwjN3Si2ROesq69NMo3biIb9HrrJ9E\nKufuKXTxceKcCSjGs98Qa6bGZjziJzXMlICYcroPrMGPotLcpz0Zu6XMM+L0AaiS\nCu7sCkFlgY5o5xGi6wIDAQAB\n-----END PUBLIC KEY-----",
"privateKey": "-----BEGIN RSA PRIVATE KEY-----\nMIICXQIBAAKBgQCaozBBZnKSH0ZigZg+kQxG/lWVp+lppeCGFwuLFTwc49eborW1\nzR9zlhIwXdrwjN3Si2ROesq69NMo3biIb9HrrJ9EKufuKXTxceKcCSjGs98Qa6bG\nZjziJzXMlICYcroPrMGPotLcpz0Zu6XMM+L0AaiSCu7sCkFlgY5o5xGi6wIDAQAB\nAoGAR7y6zyw6rGUL3vjl6uiZPHoStBmwY82LCkm4li4ks/ZS+KWUDKH7HEEbcQqp\nXfzLjzgRMYMvd2nKZ+PsDodpZ2YAoTutPI/YHou2jFhqR4Gt1HvibvGFVybfbrzV\nxvLVaQn4Rh2/SqTaDHaMgrHqmKRH0sUU42na3VKSm39YCAECQQDMrjSXEvOvKSta\nUjXF5T+6TctN33wzdk0B8vQ+Ca5ujGWcg6QeuAO2SU8cm5dSp6Ki7CENSsBsnB+6\n8i1IwvwBAkEAwWjg7UaoZ7caY2d6CKMOKXEnZTU5x3/sQD41dGkw5IHEPRxQbH27\nMP2dgCvrSJIVYqw/tUFp8ccyNkNU40xO6wJACHXm/Juu8P2dqiUdzelVAgl3Luff\nBW2Nb1gwmmPiDvXEuXyDizWGCcHsAD26OpNtWJi0IQ2G+LZXZW3fS1OsAQJBAJob\n832dG3roz0H9paNUKWikHPvr2Uo5iAn4h6dmWer561+2O+72kD2NF/6VADknDZs+\nHNVUdhKM4lmSdQVYPFkCQQC3qE0ChAbFeBwPquV+mzApezdWWKDdR+gL9UGrCWIL\nNbtRkv/HJHCqptbpUVaYPAT89Lt/TTlMP1eIYv/3t2ND\n-----END RSA PRIVATE KEY-----"
"jwtSecret": "",
"publicKey": "",
"privateKey": ""
}
12 changes: 1 addition & 11 deletions server/app/config/storage/ssh-record.json
Original file line number Diff line number Diff line change
@@ -1,11 +1 @@
[
{
"host": "localhost",
"port": 22,
"username": "ubuntu",
"type": "privateKey",
"password": "",
"privateKey": "test",
"command": ""
}
]
[]
2 changes: 1 addition & 1 deletion server/app/socket/terminal.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ const { Client: Client } = require('ssh2')
const { readSSHRecord, verifyToken } = require('../utils')

function createTerminal(socket, vps) {
vps.shell({ term: 'xterm-color', cols: 1000, rows: 30 }, (err, stream) => {
vps.shell({ term: 'xterm-color', cols: 100, rows: 30 }, (err, stream) => {
if (err) return socket.emit('output', err.toString())
stream
.on('data', (data) => {
Expand Down

0 comments on commit fee26a2

Please sign in to comment.