Closed voody77 closed 4 years ago
Hello!
Please help me:
don't work ssh.sendfile
Fatal error: Error raised at top level: Error: couldn't open file at /Users/user/TopApi/ -- file:///Users/user/SWIFT/agent_ssh/ (code 1 = genericError)
import Shout import Foundation let ssh = try SSH(host: "host") try ssh.authenticate(username: "user", privateKey: "~/.ssh/id_rsa") let url: URL = URL(fileURLWithPath: "/Users//user/TopApi/", isDirectory: true) try? ssh.sendFile(localURL: url, remotePath: "/home/user/", permissions: .default) try ssh.execute("pwd")
What did you do to fix this @voody77 ?
Hello!
Please help me:
don't work ssh.sendfile
Fatal error: Error raised at top level: Error: couldn't open file at /Users/user/TopApi/ -- file:///Users/user/SWIFT/agent_ssh/ (code 1 = genericError)