Linked Questions

-1
votes
2answers
2k views

How can I repeat a Linux command every minute? [duplicate]

I'd like to get a Linux command which runs in the background and writes something to the terminal screen every one minute. I am trying to keep ssh session alive, I am using Cygwin for connection to ...
122
votes
9answers
244k views

What does the Broken pipe message mean in an SSH session?

Sometimes my SSH session disconnects with a Write failed: Broken pipe message. What does it mean? And how can I keep my session open? I know about screen, but that's not the answer I'm looking for. I ...
4
votes
2answers
8k views

sshfs “Connection reset by peer” with identify file

Time to time I need create servers network - link servers and quickly copy data. I'm using for that SSH Filesystem (SSHFS) because it is simple and easy to use like connect with Secure Shell (SSH). ...
3
votes
1answer
6k views

What is default value of ServerAliveInterval?

I’m using Amazon Linux, [davea@mymachine ~]$ uname -a Linux mymachine.mydomein.org 4.4.35-45.83.amzn1.x86_64 #1 SMP Wed Jul 27 22:37:49 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux In my /etc/ssh/...
2
votes
2answers
3k views

SSH: “Connection closed by remote host” randomly while working on an interactive session

I am working on a remote server, on which I do numerical simulation using the OpenFOAM computational fluid dynamics library. I built a collection of Python scripts to automate my parametric studies ...
1
vote
1answer
4k views

When to use ClientAliveInterval versus ServerAliveInterval

I'm connecting to a linux server (GoDaddy dedicated server) via SSH to compress incremental backups either via a tar cvfj or tar cvf to make .tar.bz2 or .tar files, respectively. I've started to run ...
4
votes
1answer
722 views

OpenSSH: What is the interval for TCPKeepAlive option?

In sshd config you can specify the option TCPKeepAlive yes. These Pakets are not encrypted so the could be spoofed. With the options ClientAliveInterval ClientAliveCountMax ServerAliveInterval ...
1
vote
2answers
706 views

How do I prevent just 'exit' from being saved when I close an SSH connection?

When searching for a way to do this on Google, all I can find are ways to quit the session without saving history (like kill -9 $$), but I have the opposite problem. I want to save all of my history, ...
2
votes
1answer
320 views

SSH connection freezes on 4G Hotspot but not on any Wifi

Short Description I have been seeing an strange behaviour on my SSH connection for years but never thought of raising a question until today. I tried to search a lot about this but couldn't find any ...
2
votes
0answers
320 views

Remove inactive SSH process (on server) after connection dropped (on client)

I'm using the following command on a client for port tunneling: autossh -M 20000 -4 -N -f -R 18822:localhost:22 <user>@<vps-ip> Sometimes the client would lose connection or power for a ...
1
vote
4answers
223 views

Issue with ssh && apt-get, need advice

I decided to dust off my Beaglebone Black Rev.C and figured before I do much of anything, I should get everything up to date. I created an SD card with the new Debian 8.3 image and installed it. No ...
1
vote
1answer
217 views

ssh to remote server is timing out during the BASH script execution

I am executing a BASH shell script (downloadScript.sh) on a remote server in the below way. Since the script takes more time to execute, the remote shell is getting timed out in between. ssh -i aws....
0
votes
1answer
79 views

SSH connection gets lost, but not when logged in to MySQL

When I open an SSH connection to our database server and leave it open for a longer time, the connection gets lost at some point. I don't know why or how, but this happens a lot. I still see the ...
0
votes
1answer
32 views

How can I use ssh to send the output of a program to another computer continuously over time until connection is closed?

My first naive way would be writing the output (python script) into a file and send it via scp but given that there output is generated overtime (like inconstantly between 1s and 1 day periods) I don'...