added sftp feature
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.
This commit is contained in:
4
main.go
4
main.go
@ -6,7 +6,7 @@ func main() {
|
||||
config := initializeConfig("config.yaml")
|
||||
sshConn, sshConfig := initializeConnection(config)
|
||||
clientConns := sshConn.dialConnection(sshConfig)
|
||||
clientSessions := sshConn.openSession(clientConns)
|
||||
success := sshConn.executeTarFile(clientSessions)
|
||||
_ = sshConn.openSession(clientConns)
|
||||
success := sshConn.executeSFTP(clientConns)
|
||||
fmt.Println(success)
|
||||
}
|
||||
|
Reference in New Issue
Block a user