Skip to main content
The 2024 Developer Survey results are live! See the results

All Questions

Tagged with
5 votes
3 answers
26k views

Kill remote process via ssh

I have a process that I want to kill remotely. I tried ssh remotehost "kill -9 $(ps -aux | grep foo | grep bar | awk '{print $2}')" but this returns the error kill: usage: kill [-s sigspec | -n ...
chrise's user avatar
  • 231
1 vote
3 answers
396 views

the difference between '..' and ".." when I use ssh usr@ip 'pscp ......'

My Server machine run Window,and it installed Cygwin. My Client machine run linux. In Clinent machine.I do this: [sikaiwei@login-1-2 v1.4]$ bash test.sh CHUN~19900405 [email protected]:/ifs2/...
orange's user avatar
  • 75
2 votes
1 answer
3k views

permission denied executing script over ssh

When a web page is loaded on server A i want it to run a script on server B. I can do this with a series of commands from server A by logging into server B and executing the script, but it needs to be ...
dab's user avatar
  • 21
2 votes
2 answers
2k views

Run ssh as a command of another ssh command

I want to run a program on a machine that I have ssh access to from a gateway machine that I can access with ssh too. When I want to run an mpi program on the target machine T, I access to the ...
0xFF's user avatar
  • 381