2
votes
1answer
51 views

How do I fix this strange behavior with ssh, gnome terminal and gnu screen where function keys F1 through F4 are not accepted?

Here is what I am trying to do: open Gnome terminal launches with my command prompt ssh into work via VPN launch screen create two screen windows try to use F3 and F4 as "prev" and "next" with no ...
3
votes
2answers
115 views

Kill disconnected SSH session running in `screen`

I'm always forgetting to logoff when ssh-ing somewhere. After I reopen my notebook, a screen window with this running ssh is unresponsive. I have to create another window, $ killall ssh, and only then ...
1
vote
1answer
527 views

Open screen process in terminal from script

I have a minecraft server running in screen, and right now, it is just a script that starts java like so: screen -dmS mc java -Xincgc -Xms1024M -jar craftbukkit-1.6.4-b2882.jar Basically this just ...
2
votes
2answers
399 views

Find out screen id

I want to start a program with SSH using PHP, which works fine, but now I want to kill the screen with PHP, but the only thing I know is the name of the screen. How do I find out the screen ID ...
1
vote
1answer
180 views

Remotely compile and run program using ssh and screen

I'm trying to compile and run a program remotely. However, I'd like to this within a screen and also I'd like to run this using grid engine on another node after I ssh. Currently I have: ssh ...
2
votes
2answers
138 views

Is it possible to copy data from one screen session to another?

I recently needed to copy X amount of lines from a file, that I opened in vim and then paste them to another file opened in a different screen session (and different server). So on screen #1 I ran in ...
0
votes
1answer
73 views

Gnu Screen and vi - visualization issues

The scenario is as follows: gnu screen launched onto a scientific Linux distro ssh to an aix machine tried to edit a file with vi And this is what I got: "ex: 0602-108 screen is not a ...
2
votes
1answer
278 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
231 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
114 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
210 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
179 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
473 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
585 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 ...
6
votes
5answers
2k 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
2answers
815 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 ...
3
votes
2answers
446 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
411 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
592 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
2answers
302 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 ...
22
votes
4answers
5k 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
914 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
903 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, ...
2
votes
2answers
1k 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
380 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 ...
7
votes
1answer
2k 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 ...
60
votes
8answers
21k 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, ...
60
votes
6answers
18k 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 ...