feat: update document and remove some debug logging

This commit is contained in:
Justin Lin committed 2024-10-14 18:32:02 +08:00
1 parent 58354b7cd8
commit 91ebaec22c
4 files changed
+33 -7

No files matched your search

-3
View File
@@ -11,7 +11,6 @@ export async function connectToSSH(
return new Promise((resolve, reject) => {
conn
.on('ready', () => {
console.log('SSH connection ready')
conn.shell(
{
env: {
@@ -26,7 +25,6 @@ export async function connectToSSH(
reject(err)
}
stream.on('close', () => {
console.log('Stream :: close')
conn.end()
})
resolve(stream)
@@ -41,7 +39,6 @@ export async function connectToSSH(
port: 22,
username: 'commander',
privateKey: config.docker.keypair.privateKey,
debug: console.log,
timeout: 5000,
})
})