0
votes
0answers
24 views

Bash Script Display Remote Screen Session to User

I'm kind of new to bash scripting and I'm having trouble figuring out how to accomplish this. I'm working on a script that is designed to backup and manage a java application that runs within a ...
1
vote
0answers
15 views

Why when I run a program in a detached screen section it became very slow?

I am not so into Linux and I have the following situation related a strange behavior of the screen command. The situation is the following one: one a RaspBerry Pi I have installed Raspbian (that is a ...
1
vote
1answer
57 views

why does screen cause problems with sftp?

I love to use screen, but I haven't really had much experience using it over ssh. At work I recently was issued a shell account and I decided to try to configure it so that screen gets run when I ...
0
votes
0answers
58 views

prohibitive keymapping with putty, gnu screen and vim

I'm logged in to my Debian machine using putty. I have a GNU screen session open and I am running vim in it. the problem I have is that when I go to save the file using :w<enter> this appears to ...
1
vote
1answer
115 views

Tab title is wrong with ssh/screen on osx

I am doing ssh -t host screen -D -RR in OS X (10.9) terminal tabs. My ~/.screenrc is identical on all remote hosts and contain the following line: hardstatus string "%H(%n:%t)$USER %h" My ...
0
votes
4answers
405 views

Windows powershell screen equivalent

I am using a windows machine as a ssh server. I want to remotely run some tasks which takes several hours to finish. Is there any way to have persistent process even after remote ssh session is ...
2
votes
1answer
493 views

How do I stop ssh-agent from forgetting my password after I login to the screen session from SSH?

I have a screen session open in an lxterminal window. If I SSH somewhere, the first time it happens, an ssh-agent window opens and asks me for my private key passphrase, and after that ssh goes right ...
0
votes
1answer
361 views

set GNU screen background color

I would like screen to change the background color of the terminal (xterm) when started. I want to have a quick way of determining whether I am in screen or not. I often work over shh and it often ...
2
votes
2answers
1k views

automatically start screen upon ssh login

I have been reading about how to automatically start a screen when I ssh to a remote server. I would like a simple one-liner to add to my .bash_profile to start a screen when I ssh in, and NOT exit my ...
3
votes
2answers
152 views

Restart a process in detached screen via ssh

I have a server with several screens running, each with their own node server listing to different ports. I'd like to create Jenkins jobs to ssh into the box, reattach a specific screen, stop the ...
1
vote
1answer
251 views

Set gnu screen title within ssh

On my local machine, window titles within screen update nicely to the pwd. I have shelltitle '% |bash' in my .screenrc. Yet when I ssh to another host, the window title remains as the pwd from ...
1
vote
1answer
109 views

Taking a screenshot of screen session over ssh

I often log via ssh to servers just to execute screen -r and look at my irssi irc session. Then I do Ctrl-AD and logout. Is there a nice solution to wrap this into a script, so that I get to see the ...
3
votes
1answer
1k views

Why a command launched with nohup isn't able to write file after user logout?

I'm using nohup to launch matlab and run a script which requires to read and write some given files. nohup matlab -nojvm -nodisplay -r 'MyScript'& This runs smoothly while I'm logged in but as ...
1
vote
3answers
1k views

Persistent PuTTY sessions for multiple windows

I'm working in various Linux environments through PuTTY connections which break from time to time. I'm looking for a solution to make the PuTTY windows persist (e.g. if I was editing a file, then ...
1
vote
1answer
192 views

How to connect to a vim server running in a re-attached screen session?

I normally ssh -X to a remote Linux box, launch GNU screen and run vim in server mode inside screen. After detaching and re-attaching to the screen session, I cannot send files to the vim server ...
0
votes
2answers
200 views

I logon via ssh and the first command is always screen. Can I make it either reconnect to same sesson or make a new one if one does not exist?

Basically what I want to do is something like this: screen -session-name=mydefaultscreen and if the 'session name' of mydefaultscreen doesn't exist, it creates it. if it does exist already then it ...
5
votes
1answer
79 views

How to prevent gnu screen capturing the mouse?

I want to use local scrollback on my terminal, whilst using gnu screen. That's because my network connection is incredibly slow, so using screen's scrollback is very slow. Local scrollback is much ...
4
votes
1answer
402 views

Gnu screen with local scrollback buffer?

I'm using a remote server over a very slow and unreliable network connection. So, I want to use gnu screen in order not to lose what I'm doing whenever I get disconnected. But I want a local ...
1
vote
1answer
172 views

How to disable keyboard on a user using ssh?

I am trying to create an automated monitoring system that other people can see but cannot do commands. I have a problem where the user is automatically connected to a screen where the monitoring is ...
3
votes
1answer
784 views

Prevent an already running background process from being stopped after closing SSH client

I have a process running on my Linux machine (Debian squeeze) that takes hours (or days) to finish. I don't want to stop it to restart it again with screen, tmux or with an output redirect to nohup. ...
5
votes
4answers
2k views

Keep processes alive after SSH logout

Im trying to measure bandwidth, packet loss, latency and jitter between two computers on a wireless 802.11s mesh connection. Im trying to make a (my first) bash script that can do the following: ...
1
vote
1answer
930 views

Switch GNU Screen windows with F-keys on PuTTy

I'm trying to use the f-keys to switch windows on GNU Screen/PuTTy, but I can't get it to work. This is my current .screenrc: bindkey -k k1 select 1 bindkey -k k2 select 2 bindkey -k k3 select 3 ...
2
votes
2answers
820 views

Can I re-attach SSH key forwarding through a disconnected Screen session? [duplicate]

Possible Duplicate: ssh-agent key timeout with screen or tmux on bastion host I have a laptop on which I have pageant (the PuTTy SSH key agent) running. If I ssh to a system and launch ...
3
votes
1answer
691 views

ssh-agent key timeout with screen or tmux on bastion host

Normally I have ssh-agent running, I ssh to my bastion host then open a tmux session and connect to other boxes through that. Key forwarding works for any sessions that I open from that point ...
0
votes
1answer
471 views

How can I create session logs of individual SSH sessions?

Here is what I am looking for: A way to log individual SSH sessions on SunOS. I would like to have the files kept separate based upon the hostname of the device I am SSHing into. I am only using ...
1
vote
1answer
96 views

Preserving a job running outside screen in an ssh session

Let's say I've ssh'd into my box and decided to run a long job, but have forgotten to run that job inside screen. Is there anything I can do to stop the job from terminating when the ssh session ...
1
vote
2answers
871 views

Reopen screen session after connecting to server

Im working only in a screen session on my vps which runs all the time. When I connect to this server via ssh, I reattach this with a bash alias alias screenr='screen -r -d' What I want: Connecting ...
2
votes
1answer
1k views

Screen reattach: Cannot open your terminal

I am trying to use screen with another user than I logged in. The command is started with: sudo -u user /usr/bin/screen -A -m -d -S screen ./nice_command For reattaching I am using screen -x ...
1
vote
1answer
97 views

How to determine if the client on an ssh connection is using screen

I have an odd predicament. I want to detect on the remote end of an ssh connection if the client is running the terminal inside a screen session. I want to set my prompt based on this. So far I have ...
1
vote
1answer
615 views

Using fg with screen

I have a running job in a ssh terminal on an external server. I can pause it with CTRL + Z and resume it with fg. But I would like to pause it, run screen screen -S my_job and get it back in front ...
3
votes
2answers
2k views

Run 'screen -RD' automatically after connecting from PuTTY

I would like to have PuTTY automatically run screen -RD when I log in, however I would like if possible, for this to be either configured as part of PuTTY, or for the server to identify when a PuTTY ...
1
vote
0answers
183 views

$HOME is forgotten only when a remote SSHed “screen” session is detached

Whenever I detach my remote "screen" session and ctrl a-c a new window, it opens the new window with "/" as the PWD. Another extremely annoying problem is that whenever the "screen" session is ...
2
votes
4answers
2k views

is there a way to save what's printed on the display with gnu screen?

I like to save everything I do on the command line, for example when I upgrade something and want to read back how the upgrade went etc.. Usually with Mac OSX and Terminal you can scroll back as much ...
1
vote
1answer
632 views

How can I keep gnu screen from becoming unresponsive after losing my SSH connection?

I use a VPN tunnel to connect to my work network and then SSH to connect to my work PC running cygwin. Once logged in I can attach to a screen session and everything works great. Now, after a while, ...
2
votes
1answer
980 views

How do I get the F1-F12 keys to switch screens in gnu screen in cygwin when connecting via SSH?

I'm connecting to a desktop running cygwin via SSH from the terminal app in Mac OS X. I have already started screen on the cygwin side and can connect to it over the SSH session. Furthermore, I have ...
0
votes
1answer
109 views

GNU Screen, any command causes a lockup

I am ssh'd into a remote box, I think it is redhat, but I am not sure how to tell. In my home directory I went through the process of installing screen and all its dependencies from source as it is ...
8
votes
2answers
2k views

Is it a good idea to put “screen -r” in my .bashrc?

I'd like to use screen to keep ssh sessions alive on my server. It would be nice if I could automatically resume any running session for my user when I log in. The straightforward way to do this would ...
2
votes
1answer
2k views

irssi in screen reconnecting to servers when ssh connection lost

I have irssi running in screen, and I connect to it via ssh (with PuTTY). When I unexpectedly lose my ssh connection, if irssi was the active screen window, upon reconnecting/reattaching, it often ...
1
vote
1answer
3k views

Linux: wmctrl cannot open display when session initiated via ssh+screen

I'm using wmctrl on an Ubuntu machine to manage windows from a script, that I run inside a (gnu) screen. If I start the screen session from the local machine, wmctrl works fine, including if I ...
5
votes
2answers
2k views

Auto-reconnecting SSH connections with a specific 'screen' session

I typically have several terminal windows each of which is connected via ssh to a remote server. In each window I work using the gnu screen program, to ensure persistence of the interactive processes ...
3
votes
2answers
1k views

Reattaching self to screen - Linux/Ubuntu

I occasionally use screen within linux. Every now and then my connection plays up and I lose access to the ssh shell, when I try to reattach myself to the screen instance this is what I get: There ...
6
votes
6answers
1k views

Shutting down PC without killing SSH sessions

I have some heavy, long processes running on remote Linux machines. I use my laptop to SSH to these machine and run the processes from my couch. BUT, when I want to shutdown my laptop, I am in ...
1
vote
3answers
157 views

accidentally concatenate a large file on a remote system

Every once in a while on a computer I'm ssh'd into, I will accidentally type "cat largefile.txt" and my screen will start rushing with text for the next 10 minutes. I'm always working in a screen ...
1
vote
1answer
739 views

ssh from within GNU screen does not work properly

I try to start a screen session and connect to three different machines with the same user. Here is what I have in my .screenrc screen -t "machine1" 0 ssh user@machine1 screen -t "machine2" 1 ssh ...
8
votes
9answers
14k views

Running commands on Putty without fear of losing connection

How do you use the "screen" command effectively? Is it: Type "screen" Type in command Lose connection Check back on lost session How do I carry out step 4?
28
votes
9answers
9k views

How do you get screen to automatically connect to the current ssh-agent when re-attaching to an existing screen?

If you start a screen session while ssh-agent is running (from ssh -A agent forwarding), accessing ssh-agent works fine. However, if you detach from that session, log out, log in again (with ssh-agent ...
12
votes
1answer
2k views

How to prevent clearing of terminal output when I “exit” an SSH session?

This is the situation: I open a terminal in Ubuntu, and do ssh host-1, which works as expected. From host-1, I do ssh host-2, which again works fine and connects me to host-2. From host-2 I do, for ...
12
votes
2answers
3k views

Sharing a GNU Screen Session

I have a meeting with a professor coming up shortly, but he won't be at school for a face-to-face meeting, but instead will meet with me via Skype and a SSH login. I'm a heavy user of GNU Screen, but ...