Get your server issues fixed by our experts for a price starting at just 25 USD/Hour. Click here to register and open a ticket with us now!

Author Topic: SSH Error : The semaphore timeout period has expired  (Read 21912 times)

0 Members and 2 Guests are viewing this topic.

vinayakk

  • Guest
SSH Error : The semaphore timeout period has expired
« on: January 31, 2014, 09:59:07 am »
If you ever experienced   “The semaphore timeout period has expired”  problem during SSH, that means the SSH session times out.

Sometime it happens when you are transfering a very big CPanel account through WHM.

There is a quick fix for that. Actually, there are 2 ways to fix it. You only need to do one of them so choose whichever one is easiest for you. You’ll need root access, so for most people it’s probably safer to do the client fix rather than the server fix.

On the SERVER side, login as root and edit /etc/ssh/sshd_config and add the line:

Code: [Select]
ClientAliveInterval 60
Restart sshd on the server after you save the file.

The other way, and easier and safer way is for your desktop machine to send those keep alive messages. As root on your desktop (or client) machine, edit /etc/ssh/ssh_config and add the line:

Code: [Select]
ServerAliveInterval 60
That will send send a message to the server every 60 seconds, keeping the connection open.

 :)