4595ca4a5e
i have the program reaching out to the remote machine and creating the archive. however, it doesn't acutally grab the file and the program creates an empty archive.
13 lines
294 B
Go
13 lines
294 B
Go
package main
|
|
|
|
import "fmt"
|
|
|
|
func main() {
|
|
config := initializeConfig("config.yaml")
|
|
sshConn, sshConfig := initializeConnection(config)
|
|
clientConns := sshConn.dialConnection(sshConfig)
|
|
_ = sshConn.openSession(clientConns)
|
|
success := sshConn.executeSFTP(clientConns)
|
|
fmt.Println(success)
|
|
}
|