Tagged Questions
1
vote
0answers
54 views
how to run ssh -t user@remote 'sudo nohup bash -c “comand”' in background
I want to run a script on a remote host with sudo priviledge,
someone suggests that I should use nohup and ssh -t, like the following command
the script ls;sleep 10;echo finish is crafted here to ...
1
vote
1answer
221 views
run a remote process via autossh in background
In Ubuntu I'm trying to run the geany editor on my local X display via the command:
autossh -o StrictHostKeyChecking=false -XCg me@otherDYNDNShost geany &
Trouble is, after the first ...
2
votes
2answers
236 views
Run program after finish ssh connection
How do I connect to ssh debian and running a program and let it continue to run after you finish my connection through ssh.
1
vote
2answers
380 views
Have bash script wait for password
I want to write a little script which sets up a socks proxy via ssh and then starts a browser using that proxy.
#!/bin/bash
ssh -D 1234 user@host #&
chromium-browser ...
7
votes
6answers
10k views
Execute remote commands, completely detaching from the ssh connection
I have 2 computers, localpc and remoteserver.
I need localpc to execute some commands on remoteserver. One of the things it needs to do is start a backup script that runs for a number of hours. I ...
3
votes
1answer
327 views
ssh “-f” don't give back hand in bash when listening to stdout/stderr
Please look at these:
## Does NOT return to the shell, but Ctrl-C can exit
ssh -S none -fNR 13018:localhost:22 example.com | cat
## Returns to the shell (no "-S none")
ssh -fNR ...
0
votes
2answers
747 views
ssh + nohup does not work
I'm trying to run a program over SSH that keeps running when I disconnect. This Stack Overflow answer gave me the following command:
nohup sleep 30 > foo.out 2> foo.err < /dev/null &
...