This commit is contained in:
2025-08-28 09:17:10 +02:00
parent 049f2316bd
commit c10a7f2e7b
19 changed files with 553 additions and 497 deletions

View File

@@ -21,15 +21,7 @@ pub mut:
fn (mut executor ExecutorSSH) init() ! {
if !executor.initialized {
// if executor.ipaddr.port == 0 {
// return error('port cannot be 0.\n${executor}')
// }
// TODO: need to call code from SSHAGENT do not reimplement here, not nicely done
os.execute('pgrep -x ssh-agent || eval `ssh-agent -s`')
if executor.sshkey != '' {
osal.exec(cmd: 'ssh-add ${executor.sshkey}')!
}
$dbg;
mut addr := executor.ipaddr.addr
if addr == '' {
addr = 'localhost'