feat(ssh): fix key store
This commit is contained in:
@ -48,6 +48,11 @@ const startSSH = (port, host, user, password, callback) => {
|
||||
ssh.stdout.on('data', (data) => {
|
||||
console.log(`ssh: ${data}`)
|
||||
checkMessage(data)
|
||||
if(data.includes('Store key in cache?'))
|
||||
{
|
||||
ssh.stdin.write("y")
|
||||
ssh.stdin.end()
|
||||
}
|
||||
})
|
||||
|
||||
ssh.stderr.on('data', (data) => {
|
||||
@ -57,6 +62,11 @@ const startSSH = (port, host, user, password, callback) => {
|
||||
{
|
||||
ssh.kill()
|
||||
}
|
||||
if(data.includes('Store key in cache?'))
|
||||
{
|
||||
ssh.stdin.write("y")
|
||||
ssh.stdin.end()
|
||||
}
|
||||
});
|
||||
|
||||
ssh.on('close', (code, signal) => {
|
||||
|
Reference in New Issue
Block a user