Questions tagged [remote-execution]

105 questions
0
votes
2 answers

How to execute multiple commands on remote host connected using dual SSH connection?

I have two remote server and i am trying to execute more than one command on a remote host to which i am connected by using ssh command. My command syntax is like: ssh -t -i key-1 user1@remote-1 "ssh -t -i key-2 user2@remote-2…
0
votes
1 answer

Remote-exec not working in Terraform with aws_instance resourse

I have this below code when I run apply it gets a timeout. An instance is created but remote-exec commands don't work. I am running this in the windows 10 machine. Terraform version is v0.12.12 provider.aws v2.33.0 resource "aws_instance" "web"…
niranjan pb
  • 1,125
  • 11
  • 14
0
votes
1 answer

Jenkins parameter Release versus Staging

I created a freestyle job in Jenkins that I just set up (latest version). I added parameters to it. One of those is a Options selection for ReleaseType with the options of Staging and Release. One of the build steps is executing a remote command on…
user856232
  • 1,073
  • 2
  • 14
  • 40
0
votes
0 answers

Run local bash script on remote host

I have this bash script that opens a terminal repeatedly with no way of closing them and keeps one after another. The goal is annoy anyone who happens to execute this program. Here's the source code of it: #!/bin/bash while true do gnome-terminal…
0
votes
0 answers

Remote host, local script, bad file descriptor

I want to execute local script on remote machine with additional file descriptors. #!/bin/bash echo "first log" echo "second log" >&3 I try to run it that way: ssh remote_host 'bash -s' < test.sh >first.log 3>second.log Only my first log is…
Алдар
  • 175
  • 8
0
votes
1 answer

Remote Execution of a PowerShell script results in "The WinRM client cannot process the request. [...] HTTPS transport must be used [...]"

I have written a PowerShell script which uninstall a program and install a newer version of the program on my servers (Update Programs). Now I want to create another script which run the aforementioned script on the servers. Consider that I have to…
A.Kazemi
  • 13
  • 1
  • 6
0
votes
1 answer

how to run a shell script on remote using salt-ssh

my web server generates a shell script with more than 100 lines of code based on complex user selections. I need to orchestrate this over several machines using salt-ssh. what I need is to copy this shell script to remote and execute it from there…
Haseeb A
  • 5,356
  • 1
  • 30
  • 34
0
votes
0 answers

VBoxManage execute .bat on guest VM

I use VBoxManage: Oracle VM VirtualBox Command Line Management Interface Version 5.1.18, while trying to remotely execute a .bat file from host to guest, I tried the following command: VBoxManage guestcontrol VMNAME --username USER
zanzi85
  • 1
  • 2
0
votes
1 answer

run a VR enabled Unity executable from a remote computer with psexec

I am using PSTools to run a VR enabled Unity executable from a remote computer. The command looks for the executable directly on the target PC's file system (psexec \remotecomputer -i -s "c:/Users/me/Desktop/Build/TestMall.exe"), where the .exe and…
0
votes
0 answers

Node.JS RemoteExec call not firing properly

Querying a database for a list of servers to perform a command on. The array is populated properly and echos out as planned, but none of the connections occur. I tried both passing the array directly into rexec and looping through a forEachAsync. …
Matt
  • 175
  • 5
0
votes
1 answer

Error: Unable to parse private key while generating public key (expected sequence), Node + Bash + Remote

Folks! I got the following error when I'm trying run my cmds with remote-exec https://www.npmjs.com/package/remote-exec. Error: Unable to parse private key while generating public key (expected sequence) Anyone know why? Thankyou! My…
0
votes
1 answer

How to execute vbs file on a remote machine

How to execute a VBScript located on a remote machine where machines are on same domain without using PsExec? I tried the following code, but no luck. Sub RunCommand(strComputer, Command) Set objWMIService = GetObject("winmgmts:" _ &…
santosh
  • 89
  • 4
  • 11
0
votes
1 answer

Run batch silently by hotkey (permissions issue?)

I am trying to control Spotify volume from inside a game without switching windows. To do this I did the following: A. Found nircmd.exe from NirSoft that can control individual program volumes in Windows B. Wrote a batch to execute the command C.…
0
votes
2 answers

How do I execute a PS1 file as a different user?

I need to be able to run a PowerShell script remotely (via Jenkins) as a different user. Since it will be executed as a Jenkins job, Get-Credential is not an option for me. Below is the script I have created but it simply does not…
Karthik
  • 97
  • 2
  • 3
  • 10
0
votes
1 answer

Remotely Open Default WebBrowser and access its methods, properties and values

What I'm trying to do is to, from a Web Service (WCF), give a remote computer (the Web Service Consumer) the instruction to open its default Web Browser (be it Internet Explorer, Firefox, Chrome, etc.), navigate to a certain web page and keep…
Arnie
  • 212
  • 1
  • 2
  • 11