1
0
Fork 0

Add ssh command generator

master
dump_stack() 4 years ago
parent 6d7f6c5435
commit 29dbe09a94

@ -350,3 +350,13 @@ func (q *QemuSystem) Debug(conn string) {
q.debug = true
q.gdb = conn
}
func (q QemuSystem) GetSshCommand() (cmd string) {
addrPort := strings.Split(q.sshAddrPort, ":")
addr := addrPort[0]
port := addrPort[1]
cmd = "ssh -o StrictHostKeyChecking=no"
cmd += " -p " + port + " root@" + addr
return
}

Loading…
Cancel
Save