Tagged Questions
2
votes
1answer
47 views
Line endings when using GNU Screen
I'm seeing some slightly odd behaviour when using GNU Screen 4.00.03 on a Red Hat Enterprise Linux 6.4 system.
If I connect without Screen, looking at the logs I can see each line is terminated with ...
-1
votes
1answer
44 views
SSH screen (CentOS) crashes
I use the screen command to run a Minecraft server on my CentOS 6.4 machine.
However, once I end the SSH session, the Minecraft server and the screen will eventually simply stop such that when I come ...
2
votes
3answers
37 views
Is there a way to maintain ssh-agent connectivity in different screens?
Whenever I use ssh-agent for passwordless logins it doesn't work across different logins and screen sessions, even if they are concurrent.
I suspect it uses some shell variables that don't work ...
2
votes
3answers
45 views
Log in with specific shell at terminal login
If I log in to a system over ssh, I can use the default shell with a simple ssh user@host, or specify something like ssh user@host 'bash --norc --noprofile' or ssh user@host ksh.
Is it possible to ...
3
votes
3answers
114 views
systemd service that needs .ssh/id_dsa password
I have a systemctl service that starts a process smd-loop in a screen session. This process requires acces to remote SSH sources (for syncing purposes) and thus needs to be able to access my id_dsa ...
9
votes
1answer
301 views
Redirect linux console on boot
Is it possible on boot to redirect the console output to a screen session? The server has no monitor attached, and I'd like to be able to see the primary console output. I've seen other posts about ...
1
vote
0answers
274 views
How to efficiently use Console2 with screen/tmux/byobu?
I'm using Console 2 and msysgit's bash to SSH into my Linux machines. There, I'm using screen (but considering tmux and/or byobu), but currently simply with one single-terminal session per ...
4
votes
4answers
1k views
How to effectively use screen and SSH?
I'd like to configure SSH and screen such that a login will always reattach to a screen session. Ideally, that session would not quit but detach when I press C-d. How can this be achieved? And what ...
3
votes
1answer
308 views
GNU screen freezes trying to reattach
I have several long-running GNU screen sessions. I ssh to the box they're running on and run screen -d -r foo to detach them if they're connected anywhere else, and then attach them in my current ...
2
votes
2answers
232 views
How can I get the GNU screen command to automatically start with every BusyBox ash session?
On an embedded device with BusyBox installed I want to set it up so that the gnu screen command is automatically started when any BusyBox session is started.
I have seen that I can add the screen ...
1
vote
1answer
259 views
Detached screen on a remote host
I have a local script that runs a remote script via ssh. The local script is minecraft.php:
ssh -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -i {$this->pemkey} {$this->ssh_user} ...
2
votes
1answer
392 views
.ssh/config way to spectify pseudo-tty allocation and command execution (like screen)
Is there any way to specify, in .ssh/config, a command like:
ssh -t remote-host "screen -dR screen_name"
so I can easily access the remote screen session with ssh remote-host?
Right now I solved ...
-2
votes
1answer
142 views
Creating a backup script involving screens and java? [closed]
Hi guys I use centOS 64bit 5.7 and I need to create a backup script
What I want it to do:
screen -r example
command into java
pause for x amount of seconds
exit screen
zip/rar a folder which and ...
2
votes
2answers
180 views
Is it possible to detach a process started from one ssh session using another ssh session? [duplicate]
Possible Duplicate:
How can I disown it a running process and associate it to a new screen shell?
I started a process from one ssh session to a target machine T. The system from which I ...
17
votes
4answers
3k views
Can mouse wheel scrolling work in a /usr/bin/screen session?
Is there any way to use the mouse wheel to scroll through the output of a screen session?
I can use the keypad scroll through previous output in screen after pressing ctrl+a [. Is it possible to do ...
1
vote
4answers
735 views
How to prevent a program from dying when its ssh session dies?
I have a really old console application that I want to make a bit more resilient. The program is used this way:
the user uses a custom terminal emulator to connect to a remote machine through ssh
...
1
vote
3answers
576 views
How do i execute a remote script with 'screens'?
I need to execute a script locally. The problem is, it needs to use screen and send the ctrl d command.
How would i do this? The script will be on my local windows machine. i can use winscp, putty, ...
1
vote
2answers
678 views
How can I keep processes running on a remote server even after turning off the terminal machine?
..and then still be able to return to the same session/screen after restarting the terminal machine.
I've tried screen but once I restarted my computer screen -d showed no sessions. Nohup seems to be ...
3
votes
1answer
329 views
Why is GNU screen / byobu leaving garbage text in the shell during a reverse search?
I recently starting using GNU screen via Byobu but I think the problem is related to screen.
I first SSH into a server and then do a reverse search to run a commonly run command (dump a the ...
6
votes
1answer
1k views
Nested ssh session inside screen has no color
I am attempting to keep a nested ssh session inside of a byobu/screen window, which I also connect to over SSH with Putty on Windows.
However the nested SSH session has no color. Here's what I'm ...
34
votes
6answers
10k views
How can I disown a running process and associate it to a new screen shell?
I have a running program on a SSH shell. I want to pause it and be able to unpause its execution when I come back.
One way I thought of doing that was to transfer its ownership to a screen shell, ...
43
votes
6answers
10k views
Keep SSH Sessions running after disconnection
I sometimes have long running processes that I want to kick off before going home, so I create a SSH session to the server to start the process, but then I want to close my laptop and go home and ...