Var response = scripting.ReadUntilPrompt() Var scripting = ssh.StartScripting("sudo su USER") Then I am binding the ssh session to a SCP object and attempting the file transfer. I am creating a SSH session, logging in, executing my 'sudo su USER' command and executing a whoami to confirm the login change. I need to login with one set of credentials and then change to another set to access the file I need.Īpparently, this is not supported by SFTP, so I am using SCP instead. I am trying to download a file on a server.
0 Comments
Leave a Reply. |